public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Mount via /etc/fstab constant failure
@ 2009-12-31 18:22 regomodo
  2009-12-31 19:24 ` Chris Ball
  0 siblings, 1 reply; 5+ messages in thread
From: regomodo @ 2009-12-31 18:22 UTC (permalink / raw)
  To: linux-btrfs

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

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

* Re: Mount via /etc/fstab constant failure
  2009-12-31 18:22 Mount via /etc/fstab constant failure regomodo
@ 2009-12-31 19:24 ` Chris Ball
  2009-12-31 20:44   ` regomodo
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ball @ 2009-12-31 19:24 UTC (permalink / raw)
  To: regomodo; +Cc: linux-btrfs

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

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

* Re: Mount via /etc/fstab constant failure
  2009-12-31 19:24 ` Chris Ball
@ 2009-12-31 20:44   ` regomodo
  2010-01-01 13:51     ` Adrian von Bidder
  0 siblings, 1 reply; 5+ messages in thread
From: regomodo @ 2009-12-31 20:44 UTC (permalink / raw)
  To: linux-btrfs; +Cc: cjb

On Thursday 31 December 2009 19:24:12 Chris Ball wrote:
> 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.
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.
> - Chris.
> 

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

* Re: Mount via /etc/fstab constant failure
  2009-12-31 20:44   ` regomodo
@ 2010-01-01 13:51     ` Adrian von Bidder
  2010-01-02 12:26       ` regomodo
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian von Bidder @ 2010-01-01 13:51 UTC (permalink / raw)
  To: linux-btrfs; +Cc: regomodo

[-- Attachment #1: Type: Text/Plain, Size: 1149 bytes --]

On Thursday 31 December 2009 21.44:58 regomodo wrote:
> On Thursday 31 December 2009 19:24:12 Chris Ball wrote:
> > 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.
> 
> 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


-- 
The idea is that you can only get in trouble for what you actually did.
What a concept.
        -- Pam Jones, Groklaw

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 389 bytes --]

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

* Re: Mount via /etc/fstab constant failure
  2010-01-01 13:51     ` Adrian von Bidder
@ 2010-01-02 12:26       ` regomodo
  0 siblings, 0 replies; 5+ messages in thread
From: regomodo @ 2010-01-02 12:26 UTC (permalink / raw)
  To: Adrian von Bidder; +Cc: linux-btrfs

On Friday 01 January 2010 13:51:26 Adrian von Bidder wrote:
> On Thursday 31 December 2009 21.44:58 regomodo wrote:
> > On Thursday 31 December 2009 19:24:12 Chris Ball wrote:
> > > 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.
> >
> > 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?
> 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
> 

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

end of thread, other threads:[~2010-01-02 12:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-31 18:22 Mount via /etc/fstab constant failure regomodo
2009-12-31 19:24 ` Chris Ball
2009-12-31 20:44   ` regomodo
2010-01-01 13:51     ` Adrian von Bidder
2010-01-02 12:26       ` regomodo

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