[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [linux-lvm] lvm2: zeroing free space
- From: Mike Snitzer <snitzer redhat com>
- To: LVM general discussion and development <linux-lvm redhat com>
- Subject: Re: [linux-lvm] lvm2: zeroing free space
- Date: Fri, 4 Feb 2011 10:54:04 -0500
On Fri, Feb 04 2011 at 9:12am -0500,
Bryn M. Reeves <bmr redhat com> wrote:
> 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.
Do these HDS arrays also support discard? Would seem to me that issuing
discards for the free space would be better (more standard) than writing
zeros to accomplish the same.
This variant would be: vgchange --discard-free-space
Mike
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]