yann at droneaud.fr
Wed Oct 19 13:26:15 UTC 2011
Le mercredi 19 octobre 2011 à 13:56 +0100, Alasdair G Kergon a écrit :
> On Wed, Oct 19, 2011 at 02:48:20PM +0200, Yann Droneaud wrote:
> > Is there any tool for LVM like fstrim(8) (which would likely be called
> > "lvmtrim") ?
> > This tool would discard currently unused PE of an active VG like
> > fstrim(8) is doing on ext4,btrfs,xfs blocks (depending on filesystem
> > support).
> Sounds a reasonable idea to me, although I question how the PEs that
> would benefit from it would have got into that state in the first place,
> given that lvreduce already has trim support if you had
> devices/issue_discards = 1 in your lvm.conf.
Perhaps when you forgot to discard/TRIM the whole SSD before re-using it
in an active VG.
Perhaps in the case you're migrating from an older version of the LVM2
Or issue_discards was set to 0.
More information about the linux-lvm