Setting up multiple drives. LVM vs Directory? Advice needed!

rcmcdonald91

New Member
Apr 9, 2015
1
0
1
I have a PowerEdge 1950 that I'm going to use as a PVE host.
I have 2 300GB 15k SAS drives in RAID 1 off the PERC 5/i.
My first attempt to install PVE I noticed that the installer partitioned way more storage on the root partition than I really needed (same goes for SWAP). I have this server loaded with 32GB ram. I have two options: use custom boot params to define maxroot, swap, etc. or just setup 2 logical drives through the PERC card.
1st logical drive = 10GB (for PVE install) 2nd logical drive = ~280GB (for local VM storage)
I want to give my VMs as much local storage as possible and I don't really expect me PVE installation to grow much more than 10GB (including swap).
Any recommendations?
I ran the following:
pvcreate /dev/sdb1 vgcreate datastore /dev/sdb1
Then I added the LVM via web interface

I realize that LVM might not be the best solution here as I can only store RAW disk images.
So, should I just reinstall and use the boot params to make install footprint smaller?
 
Here´s a little tip...

..shrink your var/lib/vz

/etc/init.d/pvedaemon stop
umount /var/lib/vz
fsck -f /dev/pve/data
resize2fs -p /dev/pve/data 48G
lvreduce /dev/pve/data -L 48G
mount -a
/etc/init.d/pvedaemon start

have fun :)
 

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!