On 19/03/15 04:59, Andrei Borzenkov wrote:
14.03.2019 19:17, Michal Soltys пишет:
On 3/14/19 5:09 PM, Michal Soltys wrote:
On 3/14/19 4:57 PM, Hans van Kranenburg wrote:
On 3/14/19 4:44 PM, Michal Soltys wrote:
<cut>
Occasionally, during reboots (all of them clean of course) I get:
devid 2 uuid <uuid> is missing
failed to ready system array: -2
open_ctree faield
Which drops me into initramfs commandline.
It might try to mount before all disks are visible. This can happen when
e.g. a raid controller needs a little bit more time to initialize.
Try adding rootdelay=10 to your linux command line, or any other number,
and then look at logging when booting (so no quiet on your linux command
line).
It remains unmountable from initramfs's commandline with both disks
(partitions) present. Filesystem is mounted formally via uuid, so it
needs both disks present before udev/blkid can pick the correct devices.
E.g.
mount /dev/sdr2 /newroot -> fails
mount /dev/sds2 /newroot -> ok
umount /newroot
mount /dev/sdr2 /newroot -> ok
This implies that neither device was scanned with equivalent of "btrfs
device scan". After attempt to mount both partitions kernel is aware of
them and from now on it succeeds.
That would point to some really weird thing [not] being done in
initramfs in its debian variation. I'll look closer into it.
Thanks for pointing that out, the 'btrfs device scan' requirement
completely slipped my mind.
What "dmesg | grep -i btrfs" shows before and after these commands?
Will verify and report.
When that happens, one of the partitions is mountable, the other is
not.
Mounting the filesystem via the "good" one also fixes the "bad" one.
Tested with 4.20.11 and 5.0.2 kernels.
Any idea what could be wrong ?
Does btrfs require full umount via pivoted initramfs during shutdown ?
Hans