KVM disk image resize error

C

cakamen

Guest
Hi,

I am using
qemu-img resize vm-103-disk-1.raw +100G
It's OK. (image resized)

But, step 2 error.

lvresize -L+1G /dev/xxxxxx/diskimage (example command)

I am using
lvresize -L+100G /dev/vm-103-disk-1.raw/diskimage
Volume group "vm-103-disk-1.raw" not found

What is problem?
 
If you read my guide in the forum there is an updated guide here

http://pve.proxmox.com/wiki/Resizing_disks

The lvresize command should only used if you use a LVM storage backend instead of files (which you use).

But you would need to resize the partitions and filesystems in the guest system now.

Best regards
 
You should NOT use it. You have already resized your disk.

It is only used IF
"In case of a remote disk on LVM storage " - in that case xxx is btw the lvm volumegroup name.
 
with fdisk 214 GB
123.JPG

with df -h 100 GB
1234.JPG
 
Last edited by a moderator:
Ok i assume this is your guest

You ned the last bit of the guide

"Linux client with LVM"

You need to run a

pvresize /dev/hda2

lvresize /dev/mapp...

resize2fs /

Best regards
 
Ok i assume this is your guest

You ned the last bit of the guide

"Linux client with LVM"

You need to run a

pvresize /dev/hda2

lvresize /dev/mapp...

resize2fs /

Best regards
and resize partition 2 before to use the whole disk (and restart the VM because the kernel use the old partition due the vg on the partition).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!