[linux-lvm] LVM blocks discard for remove commands

Yann Droneaud yann at droneaud.fr
Wed Oct 19 10:45:18 UTC 2011


Hi,

Does lvremove, vgremove, pvremove issue discard (eg. TRIM) commands
in order to release LE/PE/metadata blocks from the underlying devices (SSD) ?

If LVM don't do it now, is it a planned feature ?

Meanwhile, which methods can be used to discard/TRIM blocks when removing
a LV, or a VG, or PV, without wiping the complete underlying device.

Something to feed hdparm --trim-sector-ranges once the LV, VG or PV is
removed for example ?

Regards

-- 
Yann Droneaud





More information about the linux-lvm mailing list