[Bug 753366] New: systemd: btrfs.service is a prerequisite for multi-device btrfs partitions
https://bugzilla.novell.com/show_bug.cgi?id=753366 https://bugzilla.novell.com/show_bug.cgi?id=753366#c0 Summary: systemd: btrfs.service is a prerequisite for multi-device btrfs partitions Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@medozas.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- A btrfs filesystem generated with # mkfs.btrfs /dev/sd[cdef] Cannot be mounted before `btrfs device scan` is run. Since systemd never executes this, it fails to load fstab entries for such device-spanning FSes. (The fstab entry is just like any other, i.e. /dev/sdc /srv btrfs nofail 0 0 ) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c1
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c2
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c3
DaQ QaD
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c4
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c5
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c6
--- Comment #6 from DaQ QaD
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c7
DaQ QaD
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c8
--- Comment #8 from Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c9
--- Comment #9 from DaQ QaD
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c10
--- Comment #10 from Jan Engelhardt
Loading module should scan the devices.
Have you actually tested your theories? I doubt it. As a result of `btrfs dev scan`, dmesg will show "device label ... devid ... transid ... /dev/sdX`. No such messages are emitted when loading btrfs.ko. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c11
--- Comment #11 from DaQ QaD
Because "btrfs" is listed in fstab as type for the fs, it will already be autoloaded by the kernel when attempting to mount /dev/sdf.
That wasn't true in my case. I had btrfs in fstab, yet module wasn't loading.
Loading module should scan the devices.
Have you actually tested your theories? I doubt it. As a result of `btrfs dev scan`, dmesg will show "device label ... devid ... transid ... /dev/sdX`. No such messages are emitted when loading btrfs.ko.
My logic was that loading the module fixed it for me without having to run 'btrfs dev scan' I also mount FS with multiple devices. I did not actually read the code for btrfs module to confirm this. Do you have any evidence that shows my test is invalid? Just try it before getting angry. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c12
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c13
--- Comment #13 from David Sterba
This is the correct solution to this issue: http://forums.opensuse.org/english/get-technical-help-here/install-boot-logi...
To summarize: btrfs boot script runs before mount script so module cannot be loaded from the file system. As long as your / is not btrfs, not a problem since you will get dropped into super user mode where you can load the module by hand.
The correct solution: Add btrfs module to initrd so that it is loaded into initial ramdisk.
Details are on that forum entry.
I've read through the forum post, it mentions several problems with multi-device btrfs and boot. Summary: * missing module in initrd despite btrfs feature is detected => really a bug (missing directive in mkinitrd script), already fixed, I'll check if it's actually released via maintenance update * devices not detected during boot, ie. the missing 'btrfs device scan' => unless the module is not loaded, the scan does not happen; formerly the scan step was not done at all, should be ok now there's a difference when scanning root device and non-root devices: * root: all steps need to be done from within the initrd environment (like setting up MD/DM/crypto, then scan and mount) * non-root filesystems may depend on post-initrd setup of MD/DM/crypto devices and this cannot be resolved from initrd at all => needs udev rules to detect any new blockdevice (as suggested in comment 12) I'll push out updated progs (udev rules and other progs fixes) soon. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c14
Philipp Woelfel
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c15
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=753366
https://bugzilla.novell.com/show_bug.cgi?id=753366#c16
Jeff Mahoney
participants (1)
-
bugzilla_noreply@novell.com