I have proxmox 1.9 and running 4 VMs(iso -linux server 11.10). I want to enlarge one VM, since it is out of storage now. my images are qcow2 format.
VMhost1:~# vgdisplay
VMhost1:~# fdisk -l
VMhost1:~# df -h
I have used following command to enlarge my image from 10GB to 15GB.
Then I used Gparted to grow the guest VM space with unalocated space.
Please give me a elaborated solution of what to do next....
VMhost1:~# vgdisplay
PHP:
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 44
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 2
Act PV 2
VG Size 930.52 GB
PE Size 4.00 MB
Total PE 238212
Alloc PE / Size 169283 / 661.26 GB
Free PE / Size 68929 / 269.25 GB
VG UUID nwiDYA-XyVw-IaCK-lRod-EB8g-ubO5-Y6GFh0
VMhost1:~# fdisk -l
PHP:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 60801 487859712 8e Linux LVM
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 66 60801 487859712 8e Linux LVM
VMhost1:~# df -h
PHP:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-root 95G 1.1G 89G 2% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
udev 10M 716K 9.4M 7% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/pve-data 356G 29G 327G 9% /var/lib/vz
/dev/sdb1 504M 35M 445M 8% /boot
/dev/mapper/pve-storage
197G 42G 145G 23% /storage
I have used following command to enlarge my image from 10GB to 15GB.
PHP:
VMhost1:/var/lib/vz/images/103# qemu-img resize vm-disk-ide0.qcow2 +5GB
Image resized.
VMhost1:/var/lib/vz/images/103# qemu-img info vm-disk-ide0.qcow2
image: vm-disk-ide0.qcow2
file format: qcow2
virtual size: 15G (16106127360 bytes)
disk size: 9.6G
cluster_size: 4096
Then I used Gparted to grow the guest VM space with unalocated space.
Please give me a elaborated solution of what to do next....
Last edited: