Hi,
I am trying to resize a disk of one of my virtual machines but I am stuck and the articles I've read so far don't seem to work for my particular setup.
My setup is as follows.
I have shut down the virtual machine and increased the disk size using the "Resize disk" feature in Proxmox, I increased the disk from 20GB to 40GB.
Screenshot of my disks. As you can see the size of vm-100-disk-1 is now increased from 20GB to 40GB.

After this I started the virtual machine again. When I login to the virtual machine and type "df -h" I see no changes. Here is the output:
On the Proxmox server where this particular VM is running on I see that the LV has changed in size.
The virtual machine itself doesn't use LVM for partitioning just normal regular partitions.
My question is how can I add the additional space to the /dev/sd7 device in the virtual machine.
Any help is greatly appreciated. If you need any more information please let me know.
Kind regards,
Mannekino
I am trying to resize a disk of one of my virtual machines but I am stuck and the articles I've read so far don't seem to work for my particular setup.
My setup is as follows.
- Two servers and each server has two disks
- The servers are in a Promox cluster
- The second disk of each server are linked with each other using DRBD
- The DRBD block device is used as a PV for LVM
- There is one VG which is added in Proxmox as storage for virtual machines
I have shut down the virtual machine and increased the disk size using the "Resize disk" feature in Proxmox, I increased the disk from 20GB to 40GB.
Screenshot of my disks. As you can see the size of vm-100-disk-1 is now increased from 20GB to 40GB.

After this I started the virtual machine again. When I login to the virtual machine and type "df -h" I see no changes. Here is the output:
Code:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 16G 9.4G 5.4G 64% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 376K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda6 1.9G 3.0M 1.7G 1% /tmp
/dev/sda1 464M 38M 398M 9% /boot
On the Proxmox server where this particular VM is running on I see that the LV has changed in size.
Code:
$ lvdisplay
--- Logical volume ---
LV Path /dev/vg0/vm-100-disk-1
LV Name vm-100-disk-1
VG Name vg0
LV UUID 6sJdZu-qwqj-dmMd-Imak-NGk8-V0z8-DR2u9J
LV Write Access read/write
LV Creation host, time pve3, 2014-09-04 18:49:22 +0200
LV Status available
# open 1
LV Size 40.00 GiB
Current LE 10240
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
The virtual machine itself doesn't use LVM for partitioning just normal regular partitions.
My question is how can I add the additional space to the /dev/sd7 device in the virtual machine.
Any help is greatly appreciated. If you need any more information please let me know.
Kind regards,
Mannekino
Last edited: