All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [SPDK] wiping blobstore
@ 2019-08-22 19:59 Harris, James R
  0 siblings, 0 replies; 3+ messages in thread
From: Harris, James R @ 2019-08-22 19:59 UTC (permalink / raw)
  To: spdk

[-- 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
    


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [SPDK] wiping blobstore
@ 2019-08-22 20:01 Nabarro, Tom
  0 siblings, 0 replies; 3+ messages in thread
From: Nabarro, Tom @ 2019-08-22 20:01 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 2152 bytes --]

Many thanks for the quick response

Tom

-----Original Message-----
From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Harris, James R
Sent: Thursday, August 22, 2019 8:59 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] wiping blobstore

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
    

_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org
https://lists.01.org/mailman/listinfo/spdk
---------------------------------------------------------------------
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [SPDK] wiping blobstore
@ 2019-08-22 19:56 Nabarro, Tom
  0 siblings, 0 replies; 3+ messages in thread
From: Nabarro, Tom @ 2019-08-22 19:56 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-22 20:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 19:59 [SPDK] wiping blobstore Harris, James R
  -- strict thread matches above, loose matches on Subject: below --
2019-08-22 20:01 Nabarro, Tom
2019-08-22 19:56 Nabarro, Tom

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.