How should I configure TRIM Support for LVM logical volumes?
Posted
by
Zack Perry
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Zack Perry
Published on 2012-09-22T22:53:22Z
Indexed on
2012/09/23
3:49 UTC
Read the original article
Hit count: 450
I am setting up a notebook for software demo purpose. The machine has a Intel Core i7 CPU, 8GB RAM, a 128GB SSD, and runs Ubuntu 12.04 LTS 64bit desktop. As it is, the SSD is configured to have a single volume group, with /boot, /swap, and / all in their respective logical volumes. They collectively consume 30GB space. I plan to use the remaining for logical volumes for KVM guests, all run Ubuntu 12.04 Server
I would like to ensure that the SSD is utilized optimally. Although on this site, there are some great info about setting up TRIM support for file system setups that do not involve LVM, I have not found explicit guide regarding my planned setup.
I did found this page which talks about adding issue_discards
in /etc/lvm/lvm.conf
. But in said file on my machine, I didn't find the cited content. I double-checked man lvm.conf(5)
, didn't see any mentioning of this option either.
Thus, I'm not sure what to do. Furthermore, even say adding the option is the right thing to do, should I in my machine's /etc/fstab
still add mount options such as noatime
etc?
Any tips, pointers, and/or further guidance are greatly appreciated.
© Ask Ubuntu or respective owner