From: Harris, James R <james.r.harris at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] wiping blobstore
Date: Thu, 22 Aug 2019 19:59:14 +0000 [thread overview]
Message-ID: <D2991DCB-C231-43B1-AFAA-AE03406690AE@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
spdk_bs_destroy is the programmatic way to do it. Brute force looks something like this:
scripts/setup.sh reset
dd if=/dev/zero of=/dev/nvmeXnY bs=4096 count=1
You basically need to wipe the superblock from LBA 0.
-Jim
On 8/22/19, 12:56 PM, "SPDK on behalf of Nabarro, Tom" <spdk-bounces(a)lists.01.org on behalf of tom.nabarro(a)intel.com> wrote:
I need to destroy blobstore on a device if it exists, controller reset doesn't seem to do this so is the best way spdk_bs_destroy() or is there another way to reliably wipe a device?
Tom
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org
https://lists.01.org/mailman/listinfo/spdk
next reply other threads:[~2019-08-22 19:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-22 19:59 Harris, James R [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-22 20:01 [SPDK] wiping blobstore Nabarro, Tom
2019-08-22 19:56 Nabarro, Tom
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=D2991DCB-C231-43B1-AFAA-AE03406690AE@intel.com \
--to=spdk@lists.01.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 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.