Bug#747629: systemd: boot fails w/ multi-whole-disk btrfs /home: "timed out waiting for dev-sda.device"

Michael Biebl biebl at debian.org
Sat May 10 15:41:43 BST 2014


Am 10.05.2014 16:18, schrieb Zack Weinberg:
> Package: systemd
> Version: 204-10
> Severity: important
> 
> I have /home spread over two entire disks using btrfs (applied directly to
> the physical disks; there is no intervening dm/LVM/whatever).  These disks
> have no disklabels.  They are referred to in /etc/fstab by device name.
> 
> # grep ^/dev /etc/fstab | column -t
> /dev/sdb1  /              ext4         noatime,errors=remount-ro  0  1
> /dev/sdb2  none           swap         sw                         0  0
> /dev/sda   /home          btrfs        subvol=/home               0  2
> /dev/sr0   /media/cdrom0  udf,iso9660  user,noauto                0  0
> 
> systemd hangs the boot waiting for "dev-sda.device", eventually times out
> and provides an emergency shell, from which I can observe that /dev/sda
> exists and manually mounting /home succeeds.  I have been unable to figure
> out what it was waiting for.
> 
> Here is some stuff that seems like it might be relevant.  All of these
> commands were run under a system booted with sysvinit, because one can't
> file a bug report from the emergency shell ;-/ but the only difference I
> can recall from the output in the emergency shell is that "udevadm info"
> had SYSTEMD_READY=0 in there when running under systemd.


As long as SYSTEMD_READY=0 is set, systemd doesn't treat the device as
available. That explains the timeout.
Looking at /lib/udev/rules.d/64-btrfs.rules, it's probably

IMPORT{builtin}="btrfs ready $devnode"

which sets ID_BTRFS_READY=0.
It's unclear to me though why that rule would behave differently under
systemd. Support for btrfs was added in [0]. the btrfs builtin does
nothing else then poke /dev/btrfs-control and apparently that reports
that the device is not ready yet.

CCing Kay here, maybe that rings a bell with him and he can help us here.

Michael


[0]
http://lists.freedesktop.org/archives/systemd-commits/2012-September/002503.html


> # ls -l /dev/sd*
> brw-rw---- 1 root disk 8,  0 May 10 09:56 /dev/sda
> brw-rw---- 1 root disk 8, 16 May 10 09:56 /dev/sdb
> brw-rw---- 1 root disk 8, 17 May 10 09:56 /dev/sdb1
> brw-rw---- 1 root disk 8, 18 May 10 09:56 /dev/sdb2
> brw-rw---- 1 root disk 8, 20 May 10 09:56 /dev/sdb4
> brw-rw---- 1 root disk 8, 32 May 10 09:56 /dev/sdc
> brw-rw---- 1 root disk 8, 48 May 10 09:56 /dev/sdd
> 
> # blkid
> /dev/sdb2: UUID="1e04942e-c69b-4430-84f3-1622ef1afe75" TYPE="swap" 
> /dev/sdb4: UUID="10C8D0B8C8D09D72" TYPE="ntfs" 
> /dev/sdb1: UUID="eaf36848-eadc-4138-b2a9-db3d8ce82f34" TYPE="ext4" 
> /dev/sdc: LABEL="store" UUID="ec93d2c2-7937-40f8-aaa6-c20c9775d93a" UUID_SUB="71e4e0ba-c475-4097-9219-4faf87b9b1d9" TYPE="btrfs" 
> /dev/sda: LABEL="store" UUID="ec93d2c2-7937-40f8-aaa6-c20c9775d93a" UUID_SUB="5bda918b-2e06-45ae-9b96-03b2f2b0b338" TYPE="btrfs" 
> 
> # lsblk -f
> NAME   FSTYPE LABEL MOUNTPOINT
> sda    btrfs  store 
> sdb                 
> ├─sdb1 ext4         /
> ├─sdb2 swap         [SWAP]
> └─sdb4 ntfs         
> sdc    btrfs  store 
> 
> # udevadm info -qall -p /sys/class/block/sda
> P: /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:1/0:0:1:0/block/sda
> N: sda
> S: disk/by-id/ata-WDC_WD5000AAKX-00U6AA0_WD-WCC2ET237617
> S: disk/by-id/wwn-0x50014ee2b28542c6
> S: disk/by-label/store
> S: disk/by-uuid/ec93d2c2-7937-40f8-aaa6-c20c9775d93a
> E: DEVLINKS=/dev/disk/by-id/ata-WDC_WD5000AAKX-00U6AA0_WD-WCC2ET237617 /dev/disk/by-id/wwn-0x50014ee2b28542c6 /dev/disk/by-label/store /dev/disk/by-uuid/ec93d2c2-7937-40f8-aaa6-c20c9775d93a
> E: DEVNAME=/dev/sda
> E: DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:1/0:0:1:0/block/sda
> E: DEVTYPE=disk
> E: ID_ATA=1
> E: ID_ATA_DOWNLOAD_MICROCODE=1
> E: ID_ATA_FEATURE_SET_HPA=1
> E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
> E: ID_ATA_FEATURE_SET_PM=1
> E: ID_ATA_FEATURE_SET_PM_ENABLED=1
> E: ID_ATA_FEATURE_SET_PUIS=1
> E: ID_ATA_FEATURE_SET_PUIS_ENABLED=0
> E: ID_ATA_FEATURE_SET_SECURITY=1
> E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
> E: ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=86
> E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=86
> E: ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
> E: ID_ATA_FEATURE_SET_SMART=1
> E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
> E: ID_ATA_SATA=1
> E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
> E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
> E: ID_ATA_WRITE_CACHE=1
> E: ID_ATA_WRITE_CACHE_ENABLED=1
> E: ID_BTRFS_READY=1
> E: ID_BUS=ata
> E: ID_FS_LABEL=store
> E: ID_FS_LABEL_ENC=store
> E: ID_FS_TYPE=btrfs
> E: ID_FS_USAGE=filesystem
> E: ID_FS_UUID=ec93d2c2-7937-40f8-aaa6-c20c9775d93a
> E: ID_FS_UUID_ENC=ec93d2c2-7937-40f8-aaa6-c20c9775d93a
> E: ID_FS_UUID_SUB=5bda918b-2e06-45ae-9b96-03b2f2b0b338
> E: ID_FS_UUID_SUB_ENC=5bda918b-2e06-45ae-9b96-03b2f2b0b338
> E: ID_MODEL=WDC_WD5000AAKX-00U6AA0
> E: ID_MODEL_ENC=WDC\x20WD5000AAKX-00U6AA0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
> E: ID_REVISION=15.01H15
> E: ID_SERIAL=WDC_WD5000AAKX-00U6AA0_WD-WCC2ET237617
> E: ID_SERIAL_SHORT=WD-WCC2ET237617
> E: ID_TYPE=disk
> E: ID_WWN=0x50014ee2b28542c6
> E: ID_WWN_WITH_EXTENSION=0x50014ee2b28542c6
> E: MAJOR=8
> E: MINOR=0
> E: SUBSYSTEM=block
> E: USEC_INITIALIZED=66534
> 
> -- Package-specific info:
> 
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers unstable
>   APT policy: (501, 'unstable'), (500, 'testing'), (101, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages systemd depends on:
> ii  acl                  2.2.52-1
> ii  adduser              3.113+nmu3
> ii  initscripts          2.88dsf-53
> ii  libacl1              2.2.52-1
> ii  libaudit1            1:2.3.6-1
> ii  libc6                2.18-5
> ii  libcap2              1:2.22-1.2
> ii  libcap2-bin          1:2.22-1.2
> ii  libcryptsetup4       2:1.6.4-4
> ii  libdbus-1-3          1.8.2-1
> ii  libgcrypt11          1.5.3-4
> ii  libkmod2             17-2
> ii  liblzma5             5.1.1alpha+20120614-2
> ii  libpam0g             1.1.8-3
> ii  libselinux1          2.2.2-2
> ii  libsystemd-daemon0   204-10
> ii  libsystemd-journal0  204-10
> ii  libsystemd-login0    204-10
> ii  libudev1             204-10
> ii  libwrap0             7.6.q-25
> ii  sysv-rc              2.88dsf-53
> ii  udev                 204-10
> ii  util-linux           2.20.1-5.7
> 
> Versions of packages systemd recommends:
> ii  libpam-systemd  204-10
> 
> Versions of packages systemd suggests:
> pn  systemd-ui  <none>
> 
> -- no debconf information
> 
> 
> 
> _______________________________________________
> Pkg-systemd-maintainers mailing list
> Pkg-systemd-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers
> 


-- 
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: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140510/f07f2377/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list