VM Disk extend not reflected in VM oS

Hi All, I extended a VM disk via oVirt Manager (4.4.8) without error, but when I checked the VM (fdisk & lsblk) the size has not changed. Any help as always would be appreciated. Kind Regards Simon...

Once upon a time, simon@justconnect.ie <simon@justconnect.ie> said:
I extended a VM disk via oVirt Manager (4.4.8) without error, but when I checked the VM (fdisk & lsblk) the size has not changed.
Any help as always would be appreciated.
What is the OS running in the VM, and what type of disk is it (virtio, virtio-scsi, IDE)? Newer Linux versions should see a virtio/virtio-scsi disk size change immediately. Some older versions had ways to trigger a rescan to see the size change, while some required a reboot. -- Chris Adams <cma@cmadams.net>

In a production environment that is not possible until next week. I have increased disks of live VMs before without any issue so don't understand why the backend shows an increase but is not visible on the VM.

Manual rescan the SCSI bus, for each <hostX> echo "- - -" > /sys/class/scsi_host/<hostX>/scan Regards Angus ________________________________ From: simon@justconnect.ie <simon@justconnect.ie> Sent: Friday, February 25, 2022 3:32:01 PM To: users@ovirt.org <users@ovirt.org> Subject: [ovirt-users] Re: VM Disk extend not reflected in VM oS In a production environment that is not possible until next week. I have increased disks of live VMs before without any issue so don't understand why the backend shows an increase but is not visible on the VM. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.... oVirt Code of Conduct: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.... List Archives: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ovir...

Once upon a time, simon@justconnect.ie <simon@justconnect.ie> said:
CentOS 7 - VirtIO_SCSI Disk is pre-allocated and is the OS disk.
Is it reasonbly up-to-date? I think early releases of CentOS 7 wouldn't see a change "live". Since it is virtio-scsi, you can try forcing the kernel to re-check it. For device "sda", do: echo 1 > /sys/block/sda/device/rescan This is non-interrupting and should be safe to do on a live system. -- Chris Adams <cma@cmadams.net>

Thanks All, Rescans and reboot didn't resolve this - disk size increase still not seen by OS. Any other suggestions? Regards Simon...

Can you summarize how you expanded the disk,what you see in UI and the output of 'lsblk' (in the guest )? Best Regards,Strahil Nikolov Thanks All, Rescans and reboot didn't resolve this - disk size increase still not seen by OS. Any other suggestions? Regards Simon... _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/HYDINHGAK4NTYT...

Hi Strahil, Clicked edit on the VMs disk and then entered the required size to extend the disk in "Extend size by (GiB)" window. The UI showed the correct size of the disk but lsblk on the Guest failed to show any changes.

Can you provide the lsblk output ?Most probably changing the size outside of oVirt might cause huge issues, but I think you can try to do a storage migration (if you have a second Datastore) and then expand. Best Regards,Strahil Nikolov On Tue, Mar 8, 2022 at 22:31, simon@justconnect.ie<simon@justconnect.ie> wrote: Hi Strahil, Clicked edit on the VMs disk and then entered the required size to extend the disk in "Extend size by (GiB)" window. The UI showed the correct size of the disk but lsblk on the Guest failed to show any changes. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/I2CHVVMLLQCOGC...

Hi Strahil, Apologies for the delay. # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk `-sda1 8:1 0 100G 0 part |-vg00-root 253:4 0 99G 0 lvm / `-vg00-swap_1 253:5 0 980M 0 lvm [SWAP] sdb 8:16 0 100G 0 disk `-sdb1 8:17 0 100G 0 part |-vg_02-lv_nfs-real 253:0 0 95G 0 lvm | |-vg_02-lv_nfs 253:1 0 95G 0 lvm /nfs | `-vg_02-lv_nfs_snap 253:3 0 95G 0 lvm `-vg_02-lv_nfs_snap-cow 253:2 0 1G 0 lvm `-vg_02-lv_nfs_snap 253:3 0 95G 0 lvm sr0 11:0 1 1024M 0 rom We have tried all manner of rescans ( https://serverfault.com/questions/306737/how-do-i-get-centos-vm-to-re-read-i... ) but nothing shows the additional space allocated. Regards Simon
participants (5)
-
Angus Clarke
-
Chris Adams
-
Derek Atkins
-
simon@justconnect.ie
-
Strahil Nikolov