Bug 790238 - mount of >1 XFS partitions at boot fails
Summary: mount of >1 XFS partitions at boot fails
Keywords:
Status: CLOSED DUPLICATE of bug 771285
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 16
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 01:20 UTC by Andrew Walker
Modified: 2012-02-14 11:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-14 11:06:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
/var/log/messages (2.45 MB, text/plain)
2012-02-14 01:38 UTC, Andrew Walker
no flags Details
dmesg (122.14 KB, text/plain)
2012-02-14 01:39 UTC, Andrew Walker
no flags Details
Output of 'systemctl dump' (420.20 KB, text/plain)
2012-02-14 01:40 UTC, Andrew Walker
no flags Details
Output of '/bin/systemd --test --system --log-level=debug > systemd-test.txt 2>&1' (423.41 KB, text/plain)
2012-02-14 01:41 UTC, Andrew Walker
no flags Details

Description Andrew Walker 2012-02-14 01:20:39 UTC
Description of problem:
I have 2 XFS partitions that I want mounted at boot (they're in fstab). These are existing partitions and mount fine under my existing F14. But under F16 I get unpredictable behavior at boot, 99% of the time I get prompted to enter emergency mode, then press ^D to continue the boot and everything proceeds normally and the 2 XFS partitions get mounted anyway.

If I just have 1 of either of these XFS partitions enabled in fstab then the issue does not happen. Extremely rarely, with both partitions enabled in fstab, the boot goes without a hitch. So I'm thinking there is some kind of race condition at work here.

Here's what dmesg says:
[   13.387989] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[   13.391243] SGI XFS Quota Management subsystem
[   13.393066] mount[674]: mount: unknown filesystem type 'xfs'
[   13.393778] systemd[1]: mnt-whatever.mount mount process exited, code=exited status=32
[   13.395167] XFS (sdb2): Mounting Filesystem
[   13.405798] systemd[1]: Job fedora-autorelabel-mark.service/start failed with result 'dependency'.
[   13.407601] systemd[1]: Job fedora-autorelabel.service/start failed with result 'dependency'.
[   13.408424] systemd[1]: Job local-fs.target/start failed with result 'dependency'.
[   13.409173] systemd[1]: Triggering OnFailure= dependencies of local-fs.target.
[   13.409917] systemd[1]: Unit mnt-whatever.mount entered failed state.
[   13.516056] XFS (sdb2): Ending clean mount

Here's fstab:
/dev/sdb2               /mnt/backup        xfs       defaults        0 0
/dev/sdb1               /mnt/whatever      xfs       defaults        0 0

Version-Release number of selected component (if applicable):


How reproducible:
Add >1 XFS partitions in /etc/fstab and boot the system.

Steps to Reproduce:
1. Add more than 1 XFS partition in /etc/fstab
2. Boot the system.
3. System reports mount failed for 1 of the XFS partitions and prompts to
   enter emergency mode.
4. Press ^D and boot proceeds normally and upon user login both XFS partitions 
   are already mounted.
  
Actual results:
Mount fails and system prompts to enter emergency mode.

Expected results:
Mount succeeds and user is not prompted to enter emergency mode.

Additional info:

Comment 1 Andrew Walker 2012-02-14 01:38:24 UTC
Created attachment 561723 [details]
/var/log/messages

Comment 2 Andrew Walker 2012-02-14 01:39:08 UTC
Created attachment 561724 [details]
dmesg

Comment 3 Andrew Walker 2012-02-14 01:40:09 UTC
Created attachment 561725 [details]
Output of 'systemctl dump'

Comment 4 Andrew Walker 2012-02-14 01:41:21 UTC
Created attachment 561726 [details]
Output of '/bin/systemd --test --system --log-level=debug > systemd-test.txt 2>&1'

Comment 5 Andrew Walker 2012-02-14 01:42:55 UTC
$cat /proc/cmdline

ro root=UUID=03bd7594-4551-4e02-ae47-cde896246105 rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 LANG=en_AU.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us vga=792 systemd.log_level=debug systemd.log_target=kmsg

Comment 6 Michal Schmidt 2012-02-14 11:06:48 UTC
(In reply to comment #0)
> [   13.387989] SGI XFS with ACLs, security attributes, large block/inode
> numbers, no debug enabled
> [   13.391243] SGI XFS Quota Management subsystem
> [   13.393066] mount[674]: mount: unknown filesystem type 'xfs'

Looks like the problem Pete Zaitcev saw.

*** This bug has been marked as a duplicate of bug 771285 ***


Note You need to log in before you can comment on or make changes to this bug.