LVM resize

Kalle Wisch

New Member
Feb 10, 2010
7
0
1
Hello.

What is the normal way to expand the lvm, where the vm's are?
I never worked with lvm's.
Thanks
 
Hello.

What is the normal way to expand the lvm, where the vm's are?
I never worked with lvm's.
Thanks

a good start is reading LVM2 documentation, just Google for 'lvm2 documentation'
 
Is this correct?

Lets say the RAID10 where pve-data is on gets bigger by 100GB.
1.
lvextend -L+100G /dev/mapper/pve-data
2.
umount
/dev/mapper/pve-data
resize2fs /dev/mapper/pve-data
mount /dev/mapper/pve-data


 
Is this correct?

Lets say the RAID10 where pve-data is on gets bigger by 100GB.
1.
lvextend -L+100G /dev/mapper/pve-data
2.
umount
/dev/mapper/pve-data
resize2fs /dev/mapper/pve-data
mount /dev/mapper/pve-data



Hi,
with
Code:
vgdisplay
you can see, how much free space you have in the volumegroup.
Is there not enough free space, you can add a disk (e.g. /dev/sdc1):
Code:
pvcreate /dev/sdc1
vgextend pve /dev/sdc1

Think about min. 4G free space in the volumegroup for backup (snapshots).

btw.: for resize2fs you don't need a unmount to extend the filesystem. Unmount is only nessesary to shrink a filesystem.

Udo
 

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!