On Thu, Jan 30, 2014 at 09:27:55PM +0000, Maziarz, Jeremy M. wrote:
> Everyone, here is a noob question: how do completely delete a btrfs 
> filesystem (RAID10)?

   wipefs, on each device, is the precision approach -- it will very
carefully damage the magic number in the first superblock on each
device, which is enough to make most tools ignore the filesystem.

   Alternatively, the nuclear approach is simply to overwrite the
first megabyte or so of the filesystem with zeros, with something like:

dd count=1k bs=1k if=/dev/zero of=/dev/sda

> $ sudo btrfs filesystem show
> Label: none  uuid: 0ee72c25-9169-4836-873d-468ebdea8c1a
>       Total devices 4 FS bytes used 92.00KB
>       devid    1 size 1.82TB used 76.02GB path /dev/sda
>       devid    2 size 1.82TB used 76.00GB path /dev/sdb
>       devid    3 size 1.82TB used 76.01GB path /dev/sdd
>       devid    4 size 1.82TB used 76.01GB path /dev/sde
> 
> Btrfs Btrfs v0.19

   Incidentally, this is a very old version of the userspace tools. If
you're running this, it's quite likely that you also have a fairly old
kernel, which may account for any other problems you might be
experiencing...

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
          --- ...  one ping(1) to rule them all, and in the ---          
                         darkness bind(2) them.                          

Attachment: signature.asc
Description: Digital signature

Reply via email to