All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Dillaman <jdillama@redhat.com>
To: Alexandre DERUMIER <aderumier@odiso.com>
Cc: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: using discard from qemu guest when snapshot exist, fill the rbd layer with zeroes and use more space
Date: Fri, 17 Jun 2016 09:21:53 -0400	[thread overview]
Message-ID: <CA+aFP1A9a5ZEUzsJ_4_dRd_Ok7Ob4yk6PjaQNnrwWQbUmK6V3w@mail.gmail.com> (raw)
In-Reply-To: <1498621012.13671278.1466154654173.JavaMail.zimbra@oxygem.tv>

There is a "rbd_skip_partial_discard" configuration option which can
be set to true.  When enabled, discard will avoid zeroing holes if the
discard extent is in the middle of an object.

On Fri, Jun 17, 2016 at 5:10 AM, Alexandre DERUMIER <aderumier@odiso.com> wrote:
> Hi,
>
> I'm using fstrim inside my qemu guests to remove unused space from the rbd storage.
>
> This is working fine, but I just notice that if a snapshot exist,
>
> It just do the reverse, it's filling the snasphot with zeroes, and the total cluster space is growing.
>
> It's is possible to avoid that ?
>
>
> Regards,
>
> Alexandre
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Jason

  reply	other threads:[~2016-06-17 13:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-17  9:10 using discard from qemu guest when snapshot exist, fill the rbd layer with zeroes and use more space Alexandre DERUMIER
2016-06-17 13:21 ` Jason Dillaman [this message]
2016-06-18  7:40   ` Alexandre DERUMIER
     [not found]     ` <2080661916.17082708.1466242175934.JavaMail.zimbra@oxygem.tv>
2016-06-18 12:08       ` Jason Dillaman

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=CA+aFP1A9a5ZEUzsJ_4_dRd_Ok7Ob4yk6PjaQNnrwWQbUmK6V3w@mail.gmail.com \
    --to=jdillama@redhat.com \
    --cc=aderumier@odiso.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dillaman@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.