fsck.jfs may be attempted before multipath devices are available

Bug #1711011 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
New
Undecided
Mathieu Trudel-Lapierre
jfsutils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Detected machine type: 0000000000000101
command line: BOOT_IMAGE=/boot/vmlinux-4.11.0-13-generic root=UUID=8c6162e8-9bb1-4171-a901-30e001222a14 ro splash quiet
Max number of cores passed to firmware: 2048 (NR_CPUS = 2048)
Calling ibm,client-architecture-support... done
memory layout at init:
  memory_limit : 0000000000000000 (16 MB aligned)
  alloc_bottom : 0000000007620000
  alloc_top : 0000000030000000
  alloc_top_hi : 0000000780000000
  rmo_top : 0000000030000000
  ram_top : 0000000780000000
instantiating rtas at 0x000000002fff0000... done
prom_hold_cpus: skipped
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x0000000007630000 -> 0x00000000076309e6
Device tree struct 0x0000000007640000 -> 0x0000000007650000
Quiescing Open Firmware ...
Booting Linux via __start() @ 0x0000000002000000 ...
 -> smp_release_cpus()
spinning_secondaries = 7
 <- smp_release_cpus()
Linux ppc64le
#19-Ubuntu SMP T[ 0.970009] Unable to open file: /etc/keys/x509_ima.der (-2)
[ 0.970011] Unable to open file: /etc/keys/x509_evm.der (-2)
fsck: error 2 (No such file or directory) while executing fsck.jfs for /dev/mapper/mpatha-part2
fsck exited with status code 8

I haven't investigated more than that, it looks like jfsutils does not include anything to copy fsck.jfs to the initramfs. Clearly hooks/fsck in initramfs-tools appears to not be doing its job in this case.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I'm unsure if this is a bug in jfsutils (which maybe should ship its own logic like btrfs does), or in initramfs-tools where its testing fails for jfs, hence the multiple tasks.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Nope, this is in fact /dev/mapper/mpatha-part2 that is missing when fsck runs. fsck.jfs is present on at least some initrd after installing.

Looks like this is racy, but it's not obvious to me why. Multipath-tools looks to be installing everything needed *before* /scripts/local runs fsck, by doing its things in local-premount.

Closing the jfsutils task.

Changed in jfsutils (Ubuntu):
status: New → Invalid
summary: - fsck.jfs missing from initramfs
+ fsck.jfs may be attempted before multipath devices are available
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Nope, that's wrong. fsck.jfs is there in xenial, but apparently not there in artful. This needs further investigation.

[ 5.432926] device-mapper: multipath service-time: version 0.3.0 loaded
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Begin: Waiting for udev to settle (multipath) ... done.
done.
[ 5.577291] JFS: nTxBlock = 8192, nTxLock = 65536
Begin: Will now check root file system ... fsck from util-linux 2.30.1
fsck: error 2 (No such file or directory) while executing fsck.jfs for /dev/mapper/mpatha-part2
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
done.
Begin: Running /scripts/local-bottom ... Spawning shell within the initramfs

BusyBox v1.22.1 (Ubuntu 1:1.22.0-19ubuntu2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
(initramfs) cd /dev/mapper/
(initramfs) ls
control mpathb mpatha mpatha-part1 mpatha-part2
(initramfs) fsck.jfs /dev/mapper/mpatha-part2
sh: fsck.jfs: not found
(initramfs)

Changed in initramfs-tools (Ubuntu):
assignee: nobody → Mathieu Trudel-Lapierre (cyphermox)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.