(외부메일) [heat][heat-cinder] How can I use the Cinder volume extend in Heat?
On Tue, Sep 10, 2024, at 5:06 AM, 박광우 wrote:
Hello, This is kwangwoo Park.
I hope this email finds you well.
Could you please let me know "How can I use the Cinder volume extend in Heat?"
I change the Cinder volume size using Heat, cinder volume is attach after detach.
I wonder how I can increase it without doing this. In other words, How possible to use the extend function of cinder api v.3.42.
As far as I know, it is not supported in the current Caracal version. I wonder when Cinder API v3.42 will be supported in the future.
I don't know what the answer to your specific questions are, but did want to describe how we use Cinder volumes and increase the storage sizes related to them. The magic is all in Linux Logical Volume Manager (LVM). LVM enables us to add new Cinder volumes to instances that can be used to increase the capacity of a logical volume or replace the backing physical volume of a logical volume with a larger one. For example if we have a 60GB volume today but want 70GB we can add a 10GB volume to LVM and then expand the logical volume to include that additional space. Alternatively, we can add a new 70GB volume to LVM, migrate the contents from the 60GB volume over to the 70GB volume, then finally remove and cleanup the now unused 60GB volume.
I look forward to hearing from you.
Have a nice day.
First of all, please consider keeping openstack-discuss in TO/CC of your mail because it is usually the key how mail filter expect. As you described cinder supports extending an attached volume in API version 3.42 and later, but unfortunately the implementation of heat is not yet aligned with that capability and still assumes that extending a volume requires volume detach/attach. So I'm afraid it's not currently possible to do live extension by heat. However in theory heat should not manipulate volume size unless you again modify the size property (or probably run stack check which is currently discouraged) so you can probably use the cinder API directly to extend attached volumes. On 9/12/24 04:08, Clark Boylan wrote:
On Tue, Sep 10, 2024, at 5:06 AM, 박광우 wrote:
Hello, This is kwangwoo Park.
I hope this email finds you well.
Could you please let me know "How can I use the Cinder volume extend in Heat?"
I change the Cinder volume size using Heat, cinder volume is attach after detach.
I wonder how I can increase it without doing this. In other words, How possible to use the extend function of cinder api v.3.42.
As far as I know, it is not supported in the current Caracal version. I wonder when Cinder API v3.42 will be supported in the future.
I don't know what the answer to your specific questions are, but did want to describe how we use Cinder volumes and increase the storage sizes related to them. The magic is all in Linux Logical Volume Manager (LVM). LVM enables us to add new Cinder volumes to instances that can be used to increase the capacity of a logical volume or replace the backing physical volume of a logical volume with a larger one.
For example if we have a 60GB volume today but want 70GB we can add a 10GB volume to LVM and then expand the logical volume to include that additional space. Alternatively, we can add a new 70GB volume to LVM, migrate the contents from the 60GB volume over to the 70GB volume, then finally remove and cleanup the now unused 60GB volume.
I look forward to hearing from you.
Have a nice day.
I spent some time this week and created the patches to support volume online extension. We are currently at the rc phase for 2024.2 so it's too later to merge this for 2024.2 but hopefully we can add that capability in 2025.1 . On 9/14/24 01:28, Takashi Kajinami wrote:
First of all, please consider keeping openstack-discuss in TO/CC of your mail because it is usually the key how mail filter expect.
As you described cinder supports extending an attached volume in API version 3.42 and later, but unfortunately the implementation of heat is not yet aligned with that capability and still assumes that extending a volume requires volume detach/attach. So I'm afraid it's not currently possible to do live extension by heat. However in theory heat should not manipulate volume size unless you again modify the size property (or probably run stack check which is currently discouraged) so you can probably use the cinder API directly to extend attached volumes.
On 9/12/24 04:08, Clark Boylan wrote:
On Tue, Sep 10, 2024, at 5:06 AM, 박광우 wrote:
Hello, This is kwangwoo Park.
I hope this email finds you well.
Could you please let me know "How can I use the Cinder volume extend in Heat?"
I change the Cinder volume size using Heat, cinder volume is attach after detach.
I wonder how I can increase it without doing this. In other words, How possible to use the extend function of cinder api v.3.42.
As far as I know, it is not supported in the current Caracal version. I wonder when Cinder API v3.42 will be supported in the future.
I don't know what the answer to your specific questions are, but did want to describe how we use Cinder volumes and increase the storage sizes related to them. The magic is all in Linux Logical Volume Manager (LVM). LVM enables us to add new Cinder volumes to instances that can be used to increase the capacity of a logical volume or replace the backing physical volume of a logical volume with a larger one.
For example if we have a 60GB volume today but want 70GB we can add a 10GB volume to LVM and then expand the logical volume to include that additional space. Alternatively, we can add a new 70GB volume to LVM, migrate the contents from the 60GB volume over to the 70GB volume, then finally remove and cleanup the now unused 60GB volume.
I look forward to hearing from you.
Have a nice day.
participants (3)
-
Clark Boylan
-
Takashi Kajinami
-
박광우