Hello,
I'm running CentOS 7.4 with KVM and some virtual machines. I have a RAW logical volume that's xTB in size (say 1TB) and is attached to a Windows virtual machine. That raw drive is then formatted inside the Windows VM to the proper usable format.
I want to extend that logical volume by xTB (say 2TB) so it will be 3TB. I'm able to easily do this without a problem and I can see the new size when I run lvs at the CentOS level.
The issue i'm running into is that the Windows VM doesn't see the new size of RAW logical volume; only the previous size. I'm wondering what I'm missing or doing incorrectly to allow the Windows VM to see the newly added space.
This is my first post here so any help from the community would be greatly appreciated. Thanks in advance for any advice and/or suggestions.
RAW Logical Volume: Size Expansion for a VM
Re: RAW Logical Volume: Size Expansion for a VM
If your guest was a linux one then you could run virsh blockresize $vm $device and that would notify the guest that its disk had changed and it would pick it up automatically. Last time I tried that with a Windows guest it immediately rebooted and picked up the changed disk size post-reboot. Not quite the effect that I was expecting But that's what it requires, just a reboot. The blockresize is meant to do it without the reboot but Windows apparently doesn't understand it and it reboots anyway. I believe it's just a reboot required but it may need a virtual power-off/power-on to pick it up.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: RAW Logical Volume: Size Expansion for a VM
I've used the second answer and it works for Linux, but I have never done it on my Windows machines.
Edit: I just realized you mentioned raw disk. I doubt the solution will help you,, but you can test on a test VM.
Edit: I just realized you mentioned raw disk. I doubt the solution will help you,, but you can test on a test VM.
Re: RAW Logical Volume: Size Expansion for a VM
This was the fix I needed, thanks so much!!!!
The VM didn't reboot and all I needed to do inside the Windows VM was run 'Update-HostStorageCache' to read in the new disk size. Really appreciate the response on this.
The VM didn't reboot and all I needed to do inside the Windows VM was run 'Update-HostStorageCache' to read in the new disk size. Really appreciate the response on this.