[Bug 1989677] Re: btrfs dev scan fails to find all devices

Ken Sharp 1989677 at bugs.launchpad.net
Thu Sep 15 07:53:45 UTC 2022


Arguably related: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=964906

** Description changed:

  After upgrading from 18.04 to 20.04, my computer failed to boot.
  
  I eventually figured out that `btrfs device scan` does not detect all of
  the devices for my root filesystem, one of which is /dev/sdb10.
  
  Is the program hardcoded to do this?
  
  Workaround is to create /etc/initramfs-tools/scripts/local-
  premount/btrfs:
  
  ------
- !/bin/sh
+ #!/bin/sh
  
  set -e
  
  modprobe btrfs
  /bin/btrfs device scan
  /bin/btrfs device ready /dev/sdb10
  ------
  
  I've had a quick look through device-scan.c from the upstream kernel but
  I don't see anything in there that would suggest it should be stopped
  after /dev/sdX9.
  
  I'm sure this can be recreated fairly easily in a VM but I haven't tried
  that. I will do so if needed.
  
  Related: https://askubuntu.com/q/1429429/170177
  
  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: btrfs-progs 5.4.1-2
  ProcVersionSignature: Ubuntu 5.4.0-126.142-generic 5.4.203
  Uname: Linux 5.4.0-126-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.24
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: MATE
  Date: Thu Sep 15 08:34:43 2022
  SourcePackage: btrfs-progs
  UpgradeStatus: Upgraded to focal on 2022-09-14 (1 days ago)
  mtime.conffile..etc.apport.crashdb.conf: 2019-08-06T11:56:22.315382

** Bug watch added: Debian Bug tracker #964906
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964906

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to btrfs-progs in Ubuntu.
https://bugs.launchpad.net/bugs/1989677

Title:
  btrfs dev scan fails to find all devices

Status in btrfs-progs package in Ubuntu:
  New

Bug description:
  After upgrading from 18.04 to 20.04, my computer failed to boot.

  I eventually figured out that `btrfs device scan` does not detect all
  of the devices for my root filesystem, one of which is /dev/sdb10.

  Is the program hardcoded to do this?

  Workaround is to create /etc/initramfs-tools/scripts/local-
  premount/btrfs:

  ------
  #!/bin/sh

  set -e

  modprobe btrfs
  /bin/btrfs device scan
  /bin/btrfs device ready /dev/sdb10
  ------

  I've had a quick look through device-scan.c from the upstream kernel
  but I don't see anything in there that would suggest it should be
  stopped after /dev/sdX9.

  I'm sure this can be recreated fairly easily in a VM but I haven't
  tried that. I will do so if needed.

  Related: https://askubuntu.com/q/1429429/170177

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: btrfs-progs 5.4.1-2
  ProcVersionSignature: Ubuntu 5.4.0-126.142-generic 5.4.203
  Uname: Linux 5.4.0-126-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.24
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: MATE
  Date: Thu Sep 15 08:34:43 2022
  SourcePackage: btrfs-progs
  UpgradeStatus: Upgraded to focal on 2022-09-14 (1 days ago)
  mtime.conffile..etc.apport.crashdb.conf: 2019-08-06T11:56:22.315382

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs-progs/+bug/1989677/+subscriptions




More information about the foundations-bugs mailing list