Article 5HHPR Free-up space on logical volume under LVM?

Free-up space on logical volume under LVM?

by
mn124700
from LinuxQuestions.org on (#5HHPR)
I have a logical volume on an SSD drive that is filled to capacity. Both the VG and the PV are shown as full. I'm thinking I should run fstrim to free-up unused space on the LV. However, the fstrim command requires that I specify a mount point and I'm not sure what the mount point is for an LV under LVM.

I tried "fstrim -av", but this did not trim the LV in question. I also tried using "fstrim -v /dev/mapper/myLVM", but this just gives an error saying the specified mount point is not a directory.

So, I'm wondering how to free up space.

Thanks for any advice,
Ericlatest?d=yIl2AUoC8zA latest?i=QphVVnihPag:0mdwoKS43sE:F7zBnMy latest?i=QphVVnihPag:0mdwoKS43sE:V_sGLiP latest?d=qj6IDK7rITs latest?i=QphVVnihPag:0mdwoKS43sE:gIN9vFwQphVVnihPag
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments