开发者

Kvm disk increase

开发者 https://www.devze.com 2023-01-11 23:59 出处:网络
How c开发者_JAVA百科an I increase the size of a disk allocated to a KVM machine ? It can be lvm, raw file etc.

How c开发者_JAVA百科an I increase the size of a disk allocated to a KVM machine ? It can be lvm, raw file etc.

thanks


and if it isn't lvm, you can use qemu-img to resize the disk, after that you need to start os (or usb qemu-nbd) to start the virtual machine, grow the partition and filesystem too.


If it's LVM, then you simply use lvresize to resize the disk.

Something like this:

lzresize -L +5G /dev/pv_name/vol_name

And then, once done, run:

resize2fs /dev/pv_name/vol_name

Just substitute "pv_name" & "vol_name" with your actual LVM names

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号