From: Wido den Hollander <wido@42on.com>
To: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Is rbd_discard enough to wipe an RBD image?
Date: Sun, 20 Dec 2015 22:21:50 +0100 [thread overview]
Message-ID: <56771BEE.4050705@42on.com> (raw)
Hi,
I'm busy implementing the volume wiping method of the libvirt storage
pool backend and instead of writing to the whole RBD image with zeroes
I'm using rbd_discard.
Using a 4MB length I'm starting at offset 0 and work my way through the
whole RBD image.
A quick try shows me that my partition table + filesystem are gone on
the RBD image after I've run rbd_discard.
I just want to know if this is sufficient to wipe a RBD image? Or would
it be better to fully fill the image with zeroes?
--
Wido den Hollander
42on B.V.
Ceph trainer and consultant
Phone: +31 (0)20 700 9902
Skype: contact42on
next reply other threads:[~2015-12-20 21:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-20 21:21 Wido den Hollander [this message]
2015-12-21 14:25 ` Is rbd_discard enough to wipe an RBD image? Alexandre DERUMIER
2015-12-21 15:09 ` Jason Dillaman
2015-12-21 15:50 ` Josh Durgin
2015-12-21 19:00 ` Wido den Hollander
2015-12-21 22:20 ` Josh Durgin
2015-12-22 21:55 ` Wido den Hollander
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=56771BEE.4050705@42on.com \
--to=wido@42on.com \
--cc=ceph-devel@vger.kernel.org \
/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