Package: bcache-tools
Version: 1.0.7-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

This morning, due to a resume failure, I discovered my system
unbootable. I have root on a bcache array and initramfs was unable to
find the array by uuid.

# blkid /dev/bcache0
/dev/bcache0: LABEL="ROOT" UUID="99af68b8-58f6-4329-94a8-c54fbf0e9364" 
TYPE="ext4"

# lsblk -o NAME,MAJ:MIN,RM,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID,PARTUUID
NAME        MAJ:MIN RM   SIZE TYPE  FSTYPE      MOUNTPOINT UUID                 
                PARTUUID
sda           8:0    0 238.5G disk                                              
                
├─sda1        8:1    0   1.9G part  ext4        /boot      
3483abf0-06d1-43bb-8982-a472d290bae7 40579936-01
├─sda2        8:2    0     1K part                                              
                40579936-02
├─sda5        8:5    0  14.9G part  swap        [SWAP]     
78e5304e-d5ad-486f-b3de-fc8e0022832c 40579936-05
├─sda6        8:6    0  14.9G part  ext4        /tmp       
4dcf9f94-1fcd-470b-9867-222722add442 40579936-06
└─sda7        8:7    0 206.8G part  bcache                 
81035a2f-26fc-4546-abae-90d79d2224e4 40579936-07
  └─bcache0 254:0    0   1.8T disk  ext4        /          
99af68b8-58f6-4329-94a8-c54fbf0e9364 
sdb           8:16   0   1.8T disk                                              
                
└─sdb1        8:17   0   1.8T part  linux_raid_            
9d8dceb3-1e4d-9958-45a2-7efb6656bbff fed0dc65-01
  └─md2       9:2    0   1.8T raid1 bcache                 
7ba33238-474f-4627-8654-78bf9e36049a 
    └─bcache0
            254:0    0   1.8T disk  ext4        /          
99af68b8-58f6-4329-94a8-c54fbf0e9364 
sdc           8:32   0   1.8T disk                                              
                
└─sdc1        8:33   0   1.8T part  linux_raid_            
9d8dceb3-1e4d-9958-45a2-7efb6656bbff 9b7690d0-01
  └─md2       9:2    0   1.8T raid1 bcache                 
7ba33238-474f-4627-8654-78bf9e36049a 
    └─bcache0
            254:0    0   1.8T disk  ext4        /          
99af68b8-58f6-4329-94a8-c54fbf0e9364 

Relevant entry in fstab is:
UUID=99af68b8-58f6-4329-94a8-c54fbf0e9364 /               ext4  
errors=remount-ro 0       1

This previously worked without problem. However, I now find the bcache
array missing in both /dev/disk/by-uuid and /dev/disk/by-label:

# ls /dev/disk/by-uuid/
3483abf0-06d1-43bb-8982-a472d290bae7
78e5304e-d5ad-486f-b3de-fc8e0022832c
81035a2f-26fc-4546-abae-90d79d2224e4
4dcf9f94-1fcd-470b-9867-222722add442
7ba33238-474f-4627-8654-78bf9e36049a

# ls /dev/disk/by-label/
BOOT  TMP

Now the bcache module is correctly being added to the initramfs, and
when initramfs barfs and drops me to a shell, both the underlying RAID
and the bcache array are running just fine - I can directly mount and
use the bcache array; i.e. it is not an issue with registration of
devices in the bcache array, or missing modules or anything like that.
Indeed, if in the initramfs shell I do a:

# cd /dev/disk/by-uuid
# ln -s ../../bcache0 99af68b8-58f6-4329-94a8-c54fbf0e9364
# exit

then the system boots up normally. I therefore believe the issue is
either in /lib/udev/probe-bcache or /lib/udev/rules.d/69-bcache.rules,
both of which are in this package.

Even when the system is fully booted, there is no correct entry in
/dev/disk/by-uuid and /dev/disk/by-label (i.e. the problem is not just
in initramfs).

As a temporary work around, I have changed my fstab to use /dev/bcache0
rather than the UUID and set GRUB_DISABLE_LINUX_UUID=true in
/etc/default/grub before running update-grub. This at least means my
system can boot.

Severity was chosen to be grave on the basis that this problem has
stopped my system from being bootable in both normal and recovery mode,
and I would guess would affect anyone using a bcache as their root.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bcache-tools depends on:
ii  initramfs-tools  0.120
ii  libblkid1        2.26.2-5
ii  libc6            2.19-18
ii  libuuid1         2.26.2-5

bcache-tools recommends no packages.

bcache-tools suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to