public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Unable to mount loopback devices in RAID mode
@ 2009-11-19 19:26 Andi Drebes
  2009-11-19 23:35 ` jim owens
  0 siblings, 1 reply; 11+ messages in thread
From: Andi Drebes @ 2009-11-19 19:26 UTC (permalink / raw)
  To: linux-btrfs

Hi!
I recently tried to mount a filesystem in RAID1 mode using loopback devices. I followed the instructions at [1]. Here's exactly what I've done:

$ dd if=/dev/zero of=raid1_0.img bs=1M count=500
$ dd if=/dev/zero of=raid1_1.img bs=1M count=500
$ mkfs.btrfs -m raid1 -d raid1 raid1_0.img raid1_1.img
$ losetup /dev/loop0 raid1_0.img
$ losetup /dev/loop1 raid1_1.img
$ mount -t btrfs /dev/loop0 /mnt/btrfs
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

$ dmesg
...
[  301.429030] Btrfs loaded
[  301.439361] device fsid 7347e7099a1ddaab-c4f037e2686afdbf devid 1 transid 7 /dev/loop0
[  301.444425] btrfs: failed to read the system array on loop0
[  301.444480] btrfs: open_ctree failed

Am I missing something? Or is the documentation outdated? The error is perfectly reproducible, no matter what RAID type I specify (raid0, raid1 or raid10). I used the latest version from the btrfs-unstable and btrfs-progs-unstable git repositories. When using real block devices, however, everything works fine.

	Cheers,
		Andi

[1] http://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices

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

end of thread, other threads:[~2009-12-01 23:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 19:26 Unable to mount loopback devices in RAID mode Andi Drebes
2009-11-19 23:35 ` jim owens
2009-11-20 19:22   ` Andi Drebes
2009-11-27  5:33     ` Jean-Sébastien Trottier
2009-11-27 15:57       ` jim owens
2009-11-30  4:28         ` Jean-Sébastien Trottier
2009-11-30 13:09           ` jim owens
2009-11-30 19:25             ` Andi Drebes
2009-12-01  5:56               ` TARUISI Hiroaki
2009-12-01 10:27                 ` Leszek Ciesielski
2009-12-01 23:52                   ` TARUISI Hiroaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox