Andre Goree
2018-Apr-11 17:30 UTC
[libvirt-users] Possible to resize a Windows guest's disk while online?
I'm looking for a way to online resize a Windows disk -- i.e., be able to resize the disk without shutting down, rebooting, or detaching the disk. Is this at all possible? Or am I just barking up the wrong tree? I'm not finding a way to do this and even Amazon has a weird workaround, in which the user must write data to the newly resized-drive in order to recognize the new size without taking the disk or the VM offline. [Obligatory] YAY Microsoft. -- Andre Goree -=-=-=-=-=- Email - andre at drenet.net Website - http://blog.drenet.net PGP key - http://www.drenet.net/pubkey.html -=-=-=-=-=-
Martin Kletzander
2018-Apr-17 13:56 UTC
Re: [libvirt-users] Possible to resize a Windows guest's disk while online?
On Wed, Apr 11, 2018 at 01:30:26PM -0400, Andre Goree wrote:>I'm looking for a way to online resize a Windows disk -- i.e., be able >to resize the disk without shutting down, rebooting, or detaching the >disk. >virsh blockresize $domain $disk $size and then resize the disk in the disk managing utility inside the guest. I don't thinkg qemu-guest-agent can do that for you.>Is this at all possible? Or am I just barking up the wrong tree? I'm >not finding a way to do this and even Amazon has a weird workaround, in >which the user must write data to the newly resized-drive in order to >recognize the new size without taking the disk or the VM offline. > >[Obligatory] YAY Microsoft. > > >-- >Andre Goree >-=-=-=-=-=- >Email - andre at drenet.net >Website - http://blog.drenet.net >PGP key - http://www.drenet.net/pubkey.html >-=-=-=-=-=- > >_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-users
Andre Goree
2018-Apr-20 18:03 UTC
Re: [libvirt-users] Possible to resize a Windows guest's disk while online?
On 2018/04/17 9:56 am, Martin Kletzander wrote:> On Wed, Apr 11, 2018 at 01:30:26PM -0400, Andre Goree wrote: >> I'm looking for a way to online resize a Windows disk -- i.e., be able >> to resize the disk without shutting down, rebooting, or detaching the >> disk. >> > > virsh blockresize $domain $disk $size > > and then resize the disk in the disk managing utility inside the guest. > I don't > thinkg qemu-guest-agent can do that for you. >Thanks, yeah this was actually more a question about the Windows guest specifically, which I suppose should not have been answered on this list haha. Just thought that maybe I'm not the only one who's ever tried to resize an RBD disk (didn't mention Ceph in my OP) while it was still attached to a Windows Server 2016, and have that guest immediately realize the additional disk space -- even if necessary to use Disk Management > Action > Rescan Disks (which works on 2k8 & 2k12, but does nothing on 2k16). Frustration ensues, lel -- Andre Goree -=-=-=-=-=- Email - andre at drenet.net Website - http://blog.drenet.net PGP key - http://www.drenet.net/pubkey.html -=-=-=-=-=-