linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvm2: zeroing free space
@ 2011-02-04 14:12 Bryn M. Reeves
  2011-02-04 15:54 ` Mike Snitzer
  0 siblings, 1 reply; 6+ messages in thread
From: Bryn M. Reeves @ 2011-02-04 14:12 UTC (permalink / raw)
  To: LVM general discussion and development

Hi Folks,

Recently had a query from someone using an array supporting thin provisioning
with zero page reclaim[1].

They wanted a method to write zeros to all the unallocated space in a VG to
trigger a reclaim of unused regions in the VG's PVs.

My suggestion was to lvcreate a -l100%FREE LV named "filler" and overwrite it
from /dev/zero.

It seems like this might something a lot of users want as this functionality
gets to be more common.

I wondered if it could be worth adding a script to automate this or even an
option to vgchange (e.g. --zero-free-space)?

Didn't have time to try putting anything together yet but it seems such a
feature could be useful.

Regards,
Bryn.

[1] http://blogs.hds.com/hu/2009/03/zero-page-reclaim.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-08  2:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-04 14:12 [linux-lvm] lvm2: zeroing free space Bryn M. Reeves
2011-02-04 15:54 ` Mike Snitzer
2011-02-04 16:21   ` hansbkk
2011-02-04 16:37   ` Bryn M. Reeves
2011-02-04 20:02     ` Martin K. Petersen
2011-02-08  2:10     ` wayne.berthiaume

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).