Resizing instances is done without resizing the disk

asked 2019-10-30 01:16:32 -0600

mohammad gravatar image

Resizing instances is done without resizing the disk. Even the RAM and CPU change, but the disk doesn't resize.

I did the installation both manually and using packstack. I use CentOS Linux release 7.6.1810 (Core) and openstack Rocky 3.16.2 . AND I used both lvm and ceph as a storage (Each time separately)

But this problem still exists and I have "no errors" in the logs. Can anyone help me ?

edit retag flag offensive close merge delete


Does the new flavor offer a larger disk? Usually, you'll have to resize the physical volume inside the instance before you can use the additional space. So after resize the underlying disk (e.g. /dev/vda) should be larger (check with lsblk), then you need to extend partitions (fdisk) ...

eblock gravatar imageeblock ( 2019-10-30 03:45:05 -0600 )edit

and only after that you can run pvresize and lvresize. If this doesn't apply to your case and the underlying disk really stays the same you'll have to provide more details and turn on debug logs for nova.

eblock gravatar imageeblock ( 2019-10-30 03:47:13 -0600 )edit

Yes the new flavor offer a larger disk. i turn on debug logs for nova . but i have no error.

The Qcow2 disk, does not resize. Evan i create image from instance and launch it with new flavor,But again The disk, does not resize. I think this is a bug :(

mohammad gravatar imagemohammad ( 2019-10-30 04:24:15 -0600 )edit

I use both ubuntu and centos. Also lvresize operation is ok.

mohammad gravatar imagemohammad ( 2019-11-14 01:47:58 -0600 )edit

I don't think it's a bug. There are several options to resize disks during instance creation, e.g. using cloud-init.

eblock gravatar imageeblock ( 2019-12-04 04:02:52 -0600 )edit