Installation of VE on an SSD

Uncle_Steve

New Member
Aug 26, 2013
2
0
1
Any advice with respect to best practices for installing and maintaining Proxmox VE (4.2) on an SSD?

So far, I've enabled discards in /etc/lvm/pvm.conf (issue_discards = 1 and thin_pool_discards = "passdown") and I've enabled fstrim for regular filesystems:

Code:
sudo cp -ipv /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system
sudo systemctl enable fstrim.timer
 
# sysctl vm.swappiness=1 && echo "vm.swappiness = 1" > /etc/sysctl.d/swappiness.conf && swapoff -a && swapon -a

To minimize the use of SWAP.
 
Use zram-config package from ubuntu for compressed memory based swap. This is always faster than real swap.

You have to set discard to each VM you're creating to pass the trim option down to each guest and configure the same stuff there aswell.

Keep in mind that doing TRIM is not always a good idea. There are reports that with buggy firmware or SSD controllers, you can have data loss. There was an article about this in the german iX magazine this year.
 

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!