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

Michael Biebl biebl at debian.org
Sun Jul 17 02:48:26 BST 2016


On Fri, 21 Nov 2014 13:31:21 +1100 Dmitry Smirnov <onlyjob at debian.org>
wrote:
> 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...

Looks like a duplicate of #747629.
Could you check the output of udevadm info --query=all for the
underlying devices and see what ID_BTRFS_READY is set to.

Thanks


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160717/9cf7940e/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list