linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* newbie problems (difficulty with mkfs.btrfs and learning how to navigate trees
@ 2012-01-30  3:06 Rohit Mehta
  2012-01-30  5:56 ` Duncan
  0 siblings, 1 reply; 4+ messages in thread
From: Rohit Mehta @ 2012-01-30  3:06 UTC (permalink / raw)
  To: linux-btrfs

Hi everyone, I'm trying to learn about btrfs and the various trees and data
structures.  To that end I have been trying to create a small RAID 1
filesystem (with 2 10MB devices), and it appears mkfs.btrfs does not like
this. (output follows

  # ./mkfs.btrfs -d raid1 -m raid1 -b 10485760 /dev/ubdc /dev/ubdb
  SMALL VOLUME: forcing mixed metadata/data groups

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

  Created a data/metadata chunk of size 1048576
  adding device /dev/ubdb id 2
  mkfs.btrfs: mkfs.c:221: create_one_raid_group: Assertion `!(ret)' failed.
  Aborted

However if I don't set the raid1 options, I can create a 20 MB RAID0
filesystem, or I can also create a 10 MB filesystem on one disk
without any errors.  Large disk devices also seem to work as RAID1 or
RAID0)

I'm really just trying to start to dig in and understand the code, but I
figured a small filesystem would be easier to walk. I might just mess
with a single disk for now, but I would appreciate any advice.

Thanks,

Rohit

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

end of thread, other threads:[~2012-01-31  6:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30  3:06 newbie problems (difficulty with mkfs.btrfs and learning how to navigate trees Rohit Mehta
2012-01-30  5:56 ` Duncan
2012-01-30 16:38   ` Rohit Mehta
2012-01-31  6:12     ` Duncan

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).