Bug#770408: fails to mount multi-device Btrfs from fstab (mount by label)

Dmitry Smirnov onlyjob at debian.org
Fri Nov 21 02:31:21 GMT 2014


Package: systemd
Version: 215-5+b1
Severity: normal

Switching to systemd with Wheezy to Jessie upgrade broke a particular
Btrfs mount in fstab. Btrfs consists of three devices:

~~~~ $ sudo btrfs fi show
Label: 'tmp_area'  uuid: aa5965b1-a602-4f71-8535-8601dfaae540
        Total devices 3 FS bytes used 528.00GiB
        devid    4 size 601.00GiB used 517.03GiB path /dev/mapper/tmp at 700
        devid    6 size 834.00GiB used 547.03GiB path /dev/mapper/tmp at 900
        devid    7 size 834.00GiB used 30.00GiB path /dev/mapper/tmp at 900hy
~~~~

Mounted from "/etc/fstab" as follows:

~~~~ /etc/fstab:
#LABEL="tmp_area"            /mnt/tmp  btrfs  _netdev,noatime,nodiratime,autodefrag    0    0
/dev/disk/by-label/tmp_area  /mnt/tmp  btrfs  _netdev,noatime,nodiratime,autodefrag    0    0
~~~~

All underlying devices are successfully unlocked automatically
as per "/etc/crypttab":

~~~~ /etc/crypttab:
tmp at 700    UUID=eaa37bee-5df3-429c-b3e2-ee28f9fde282  /root/hddkey.txt  luks
tmp at 900    UUID=e66b87a9-1090-4077-b476-a33e19e9a341  /root/hddkey.txt  luks
tmp at 900hy  UUID=379dd7f5-f04e-4f45-8856-7bff929a34ce  /root/hddkey.txt  luks
~~~~

On boot systemd waits for 1.5 min. then gives up and goes on so first thing
I have to do when system boots is to run the following command as root:

    mount -av

Which successfully mounts "/mnt/tmp".

I don't understand why systemd fails to notice appearance of
"/dev/disk/by-label/tmp_area" long after all three block devices
became available... As you can see I tried "_netdev" workaround
to delay mount but it did not help...

Thanks.

-- 
All the best,
 Dmitry Smirnov
 GPG key : 4096R/53968D1B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20141121/27edb76d/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list