Issue with disk space in Proxmox VM.

mustaq.merchant

New Member
Oct 18, 2014
1
0
1
Hello,

We have created a Templates of 40GB storage in our ProxMox Server and using the same we have created a VM which has 40GB storage, later we have resize the VM to 80GB storage from Proxmox where it shows 80GB but on VM it shows 40GB storage and 40GB storage as unassigned.

We have cPanel installed on this and it shows 40 GB. Request you to guide me on this issue.

root@server2 [~]# fdisk -l

Disk /dev/vda: 85.9 GB, 85899345920 bytes
16 heads, 63 sectors/track, 166440 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ec7b4

Device Boot Start End Blocks Id System
/dev/vda1 * 3 1018 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2 1018 83221 41430016 8e Linux LVM
Partition 2 does not end on cylinder boundary.

Disk /dev/mapper/VolGroup-lv_root: 38.2 GB, 38193332224 bytes
255 heads, 63 sectors/track, 4643 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 4227 MB, 4227858432 bytes
255 heads, 63 sectors/track, 514 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

root@server2 [~]#
 
Hello,

We have created a Templates of 40GB storage in our ProxMox Server and using the same we have created a VM which has 40GB storage, later we have resize the VM to 80GB storage from Proxmox where it shows 80GB but on VM it shows 40GB storage and 40GB storage as unassigned.

We have cPanel installed on this and it shows 40 GB. Request you to guide me on this issue.
Hi,
this is normal - pve simply extend your harddisk and don't touch the partitiontable (and this is very very good).

So it's by you to decide who you use the addition space.

If you wan't to extend your VG you can use 2 ways:
1. the safe way: create another partion and extend your VG by this partition
2. the smart way: remove your partion2 and create an new on with the same start (important!!) and the whole size - reboot - and vgextend

Udo