Skip to contentSkip to conversation

Root fs on raid1

DISCUSSION [email protected] 3 participants 4 messages Nov 18, 2010 – Nov 29, 2010 1 message not in the archive Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

I have read that for using raid1 btrfs device scan must be run before mounting the fs. How do I proceed if root filesystem is mounted from btrfs ?

Thanks in advance
Bye,
David Arendt

#1 lore raw

You might need to build an initramfs image for your kernel to mount, to help mount your btrfs filesystem. You may want to read Gentoo's guide for initramfs

http://en.gentoo-wiki.com/wiki/Initramfs

Quoted 3 lines · On Thu, Nov 18, 2010 at 12:14 AM, <[email protected]> wrote:

Hi,

I have read that for using raid1 btrfs device scan must be run before=

mounting the fs. How do I proceed if root filesystem is mounted from b=
trfs ?

Quoted 7 lines

Thanks in advance
Bye,
David Arendt

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs=

" in

Quoted 3 lines

the body of a message to [email protected]
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to [email protected]
Quoted 3 lines · On Thursday, 18 November, 2010, [email protected] wrote:

Hi,

I have read that for using raid1 btrfs device scan must be run before

mounting the fs. How do I proceed if root filesystem is mounted from btrfs ?

Quoted 1 line

See a my previous post

http://www.mail-archive.com/[email protected]/msg04709.html

Quoted 9 lines

Thanks in advance
Bye,
David Arendt

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <[email protected]>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 7 lines · you (Erik Jensen)

I have a similar setup on one of my computers. I set it up a while ago using an initramfs, but I could not get the device scan to work properly, for whatever reason. I ended up having it just trying to mount every device in the array in turn. When it gets to the last device, the array mounts since btrfs now knows about all of the other ones. Really ugly, I know, but it works.

I also had a lot of problem to get a btrfs-aware initramfs working properly. One of the biggest proble was to find the right list of modules. Btrfs depends by crc32c, and I need a lot of retries to discover it.

The main problem was that if the module is not available (it is the case of a initramfs) btrfs doesn't start...

When you say " it just trying to mount every device in the array in turn", do you mean in the initarmfs ?

Quoted 3 lines

-- Erik Jensen

On Wed, Nov 17, 2010 at 10:59 PM, Goffredo Baroncelli

Quoted 15 lines · <[email protected]>wrote:
Quoted 15 lines · On Thursday, 18 November, 2010, [email protected] wrote:
Quoted 3 lines

Hi,

I have read that for using raid1 btrfs device scan must be run before

mounting the fs. How do I proceed if root filesystem is mounted from btrfs ?

Quoted 1 line

See a my previous post

http://www.mail-archive.com/[email protected]/msg04709.html

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Thanks in advance
Bye,
David Arendt

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

in

Quoted 15 lines
Quoted 14 lines
Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) < [email protected]>
Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <[email protected]>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512