Skip to contentSkip to conversation

Mount via /etc/fstab constant failure

DISCUSSION regomodo 3 participants 5 messages Dec 31, 2009 – Jan 2, 2010 Btrfs file system

lore
Share & tools
lore

regomodo

author
#0 lore raw

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

#1 lore raw

Hi Reg,

Quoted 5 lines

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.

Signature · 2 lines
Chris Ball   <[email protected]>
One Laptop Per Child
author
#2 lore raw
Quoted 10 lines · On Thursday 31 December 2009 19:24:12 Chris Ball wrote:

Hi Reg,

Quoted 5 lines

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.

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' again before I try 'mount -av' but still no luck.

Quoted 2 lines

- Chris.

#3 lore raw
Quoted 9 lines · On Thursday 31 December 2009 21.44:58 regomodo wrote:
Quoted 8 lines · On Thursday 31 December 2009 19:24:12 Chris Ball wrote:

Hi Reg,

Quoted 5 lines

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.

Quoted 7 lines
Quoted 2 lines

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

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' again before I try 'mount -av' but still no luck.

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

cheers
-- vbi

Signature · 3 lines
The idea is that you can only get in trouble for what you actually did.
What a concept.
        -- Pam Jones, Groklaw
author
#4 lore raw
Quoted 10 lines · On Friday 01 January 2010 13:51:26 Adrian von Bidder wrote:
Quoted 9 lines · On Thursday 31 December 2009 21.44:58 regomodo wrote:
Quoted 8 lines · On Thursday 31 December 2009 19:24:12 Chris Ball wrote:

Hi Reg,

Quoted 5 lines

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.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

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

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' again before I try 'mount -av' but still no luck.

btrfs is compiled into my kernel. Should I make it a module instead?

Quoted 6 lines

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

cheers
-- vbi