linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Any chance to recovery btrfs raid-0 after accidental format of one volume?
@ 2011-09-06  6:24 Tomasz Chmielewski
  0 siblings, 0 replies; 4+ messages in thread
From: Tomasz Chmielewski @ 2011-09-06  6:24 UTC (permalink / raw)
  To: linux-btrfs

> Bad case of user error here but I managed to reformat one half of a
> btrfs volume that was set up with metadata raid-1 and data raid-0.

It won't help you - but did you format it with mkfs.btrfs, while it was mounted?

mkfs.btrfs behaves very dangerously here.


For example, we have a block device in use:

# cat /proc/swaps 
Filename				Type		Size	Used	Priority
/dev/md0                                partition	10233276	0	-1


mkfs for other filesystems will refuse to touch it, because it's in use:

# mkfs.ext4 /dev/md0
mke2fs 1.41.14 (22-Dec-2010)
/dev/md0 is mounted; will not make a filesystem here!

# mkfs.xfs /dev/md0
mkfs.xfs: cannot open /dev/md0: Device or resource busy




mkfs.btrfs doesn't see a problem in creating a filesystem on a mounted block device:

# mkfs.btrfs /dev/md0

WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using

fs created label (null) on /dev/md0
	nodesize 4096 leafsize 4096 sectorsize 4096 size 9.76GB
Btrfs Btrfs v0.19



-- 
Tomasz Chmielewski
http://wpkg.org


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <CAKdoYmDNjBDgHjLNaf5HmrRxGkYPXjssZoGa3Tb4p3uc2DcOcg@mail.gmail.com>]

end of thread, other threads:[~2011-09-06 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06  6:24 Any chance to recovery btrfs raid-0 after accidental format of one volume? Tomasz Chmielewski
     [not found] <CAKdoYmDNjBDgHjLNaf5HmrRxGkYPXjssZoGa3Tb4p3uc2DcOcg@mail.gmail.com>
2011-09-05 21:56 ` Dante
2011-09-06 23:00   ` Dante
2011-09-06 23:12     ` Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).