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 [thread overview]
Message-ID: <20110204155403.GD1535@redhat.com> (raw)
In-Reply-To: <4D4C0933.80107@redhat.com>
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
next prev parent reply other threads:[~2011-02-04 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 14:12 [linux-lvm] lvm2: zeroing free space Bryn M. Reeves
2011-02-04 15:54 ` Mike Snitzer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110204155403.GD1535@redhat.com \
--to=snitzer@redhat.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).