Re: Mount via /etc/fstab constant failure

Previous thread: l2arc-like ability in btrfs by Hans van den Bogert on Tuesday, December 29, 2009 - 3:56 pm. (2 messages)

Next thread: 2.6.33-rc2+ bug in fs/btrfs/ordered-data.c:672 by Carlos R. Mafra on Saturday, January 2, 2010 - 3:32 am. (5 messages)
From: regomodo
Date: Thursday, December 31, 2009 - 11:22 am

Hi,

I have a btrfs 'pool' of x2 Samsung 500GB HDD's in non-raid format. It works 
fine for the most part except for mounting on bootup. Every bootup I have to 
change the block-device to and fro /dev/sda & /dev/sdb. This happens on 
linux-2.6.32.2 and 2.6.33-rc2.

My relevant fstab section is:

/dev/sda        /mnt/btrfs      btrfs           defaults                0       
0
/dev/sda       /home           btrfs           subvol=HOME             0       
1
/dev/sdb       /media/data     btrfs           subvol=DATA            0       
0 

I get some output in /var/log/messages (2.6.32.2) also:
Dec 31 11:05:17 funtoo-pc kernel: device label BTRFS devid 1 transid 12372 
/dev/sda                         
Dec 31 11:05:17 funtoo-pc kernel: btrfs: failed to read the system array on 
sda                             
Dec 31 11:05:17 funtoo-pc kernel: btrfs: open_ctree failed                                                  

Is this a known issue as I know of one other person with exactly the same 
issue?

Regards

Reg
--

From: Chris Ball
Date: Thursday, December 31, 2009 - 12:24 pm

Hi Reg,

   > Hi, I have a btrfs 'pool' of x2 Samsung 500GB HDD's in non-raid
   > format. It works fine for the most part except for mounting on
   > bootup. Every bootup I have to change the block-device to and fro
   > /dev/sda & /dev/sdb. This happens on linux-2.6.32.2 and
   > 2.6.33-rc2.

Are you running "btrfsctl -a" in an initrd?  It's necessary to do that
before the mount call on a multi-disk volume.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>
One Laptop Per Child
--

From: regomodo
Date: Thursday, December 31, 2009 - 1:44 pm

I did not know that. I've just given it a try on Funtoo and Ubuntu and it 
makes no difference. On Funtoo, my small script runs 'btrfsctl -a' at the boot 
runlevel but I still get those 3 errors. I even try running 'btrfsctl -a' 
--

From: Adrian von Bidder
Date: Friday, January 1, 2010 - 6:51 am

I had a similar issue and discovered that "btrfsctl -a" doesn't load the=20
btrfs module.  So I do "modprobe btrfs; btrfsctl -a"

cheers
=2D- vbi


=2D-=20
The idea is that you can only get in trouble for what you actually did.
What a concept.
        -- Pam Jones, Groklaw
From: regomodo
Date: Saturday, January 2, 2010 - 5:26 am

Previous thread: l2arc-like ability in btrfs by Hans van den Bogert on Tuesday, December 29, 2009 - 3:56 pm. (2 messages)

Next thread: 2.6.33-rc2+ bug in fs/btrfs/ordered-data.c:672 by Carlos R. Mafra on Saturday, January 2, 2010 - 3:32 am. (5 messages)