开发者

Kvm disk increase

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜