r/openstack • u/Such_Patient8602 • Jan 30 '25
Online cinder disk extensions?
Is it possible to perform disk/volume extensions on volumes attacked to a running instance?
So I can do: $ cinder extend <disk guid> <size in gb>
And the volume will be extended. But the instance/guest is unaware of this - I must power cycle the instance for the change to be seen by the instance OS. Probing virtio / scsi port does not detect any changes.
This all seems to be merged ages ago:
https://review.opendev.org/c/openstack/nova/+/454322
https://review.opendev.org/c/openstack/devstack/+/480778
https://review.opendev.org/c/openstack/tempest/+/480746
https://review.opendev.org/c/openstack/cinder/+/454287
https://review.opendev.org/c/openstack/cinder-specs/+/866718
Are we missing something?
I'm just a cloud janitor focused on having our stuff go wroom wroom without deep access in our infra.
running on Ussuri
Cheers
4
u/enricokern Jan 30 '25
hmm works for me flawless with all instances. Just need to run growpart, resize2fs on linux to extend the size. What OS do you use and what storage backend?
2
u/przemekkuczynski Jan 30 '25
What disk names are ?
This works for me on Ubuntu to online extension
echo 1 > /sys/class/block/sda/device/rescan
parted -l
parted /dev/sda
unit s print free (note of the end sector of the last line)
resizepart 3
partprobe -s
pvresize /dev/sda3
lvextend -r -L 200G /dev/system/var (25 na 100G)
lvextend -r -L 10G /dev/system/varlog (5 na 10G)
2
u/snippy-bacon0h Jan 30 '25
Check the logs for the cinder-volume service and see if you have any errors. Cinder should make a API call to the os-server-external-events endpoint that the Nova API exposes that would trigger a rescan of the block sevices for the instance.
Also update your deployment, the version is very old and might contain bugs related to this