[Bug 1708096] Re: Ubuntu16.04.3 Installation fails for JFS file system

Mathieu Trudel-Lapierre mathieu.tl at gmail.com
Wed Aug 16 13:20:04 UTC 2017


Turns out this looks to be the same issue, due to filesystem corruption
the disk is unavailable in that Linux image that runs petitboot; so it
can't be scanned to find something to boot.

Furthermore, it seems like the issues are reliably fixed by running
fsck.jfs on the filesystem (even mounted), but there is no fsck.jfs
available in the petitboot environment for me to test this with.

For good measure, even when I do manage to boot to disk in the absence
of multipath, but using JFS as a root filesystem, I still get crashes
(this one comes from 16.04):

[   71.761950] BUG: Bad page state in process jfsCommit  pfn:77280
[   71.762035] page:f000000001dca000 count:0 mapcount:0 mapping:          (null) index:0x15008
[   71.762115] flags: 0x3ffff80000080d(locked|referenced|uptodate|private)
[   71.762225] page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
[   71.762293] bad because of flags:
[   71.762334] flags: 0x801(locked|private)
[   71.762402] Modules linked in: vmx_crypto rtc_generic autofs4 jfs ibmveth ibmvscsi
[   71.762415] CPU: 5 PID: 1723 Comm: jfsCommit Not tainted 4.4.0-92-generic #115-Ubuntu
[   71.762418] Call Trace:
[   71.762431] [c0000007704b3a40] [c000000000b18f28] dump_stack+0xb0/0xf0 (unreliable)
[   71.762437] [c0000007704b3a80] [c000000000234d34] bad_page.part.10+0x114/0x170
[   71.762440] [c0000007704b3b10] [c0000000002355b4] free_pages_prepare+0x424/0x4a0
[   71.762443] [c0000007704b3b90] [c000000000238980] free_hot_cold_page+0x60/0x210
[   71.762447] [c0000007704b3be0] [c000000000245058] put_page+0x78/0xb0
[   71.762455] [c0000007704b3c10] [d000000003b02668] txUnlock+0x278/0x330 [jfs]
[   71.762461] [c0000007704b3cd0] [d000000003b06208] jfs_lazycommit+0x1e8/0x3b0 [jfs]
[   71.762466] [c0000007704b3d80] [c0000000000e7354] kthread+0x124/0x150
[   71.762471] [c0000007704b3e30] [c000000000009538] ret_from_kernel_thread+0x5c/0xa4
[   71.762474] Disabling lock debugging due to kernel taint
[   71.762477] BUG: Bad page state in process jfsCommit  pfn:77280
[   71.762541] page:f000000001dca000 count:0 mapcount:0 mapping:          (null) index:0x15008
[   71.762623] flags: 0x3ffff80000081c(referenced|uptodate|dirty|private)
[   71.762737] page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
[   71.762806] bad because of flags:
[   71.762853] flags: 0x800(private)
[   71.762910] Modules linked in: vmx_crypto rtc_generic autofs4 jfs ibmveth ibmvscsi
[   71.762918] CPU: 5 PID: 1723 Comm: jfsCommit Tainted: G    B           4.4.0-92-generic #115-Ubuntu
[   71.762919] Call Trace:
[   71.762923] [c0000007704b3940] [c000000000b18f28] dump_stack+0xb0/0xf0 (unreliable)
[   71.762927] [c0000007704b3980] [c000000000234d34] bad_page.part.10+0x114/0x170
[   71.762930] [c0000007704b3a10] [c0000000002355b4] free_pages_prepare+0x424/0x4a0
[   71.762933] [c0000007704b3a90] [c000000000238980] free_hot_cold_page+0x60/0x210
[   71.762936] [c0000007704b3ae0] [c000000000245058] put_page+0x78/0xb0
[   71.762942] [c0000007704b3b10] [d000000003afde2c] release_metapage+0xfc/0x2c0 [jfs]
[   71.762948] [c0000007704b3b90] [d000000003afe6f8] put_metapage+0xb8/0x250 [jfs]
[   71.762954] [c0000007704b3c10] [d000000003b0253c] txUnlock+0x14c/0x330 [jfs]
[   71.762960] [c0000007704b3cd0] [d000000003b06208] jfs_lazycommit+0x1e8/0x3b0 [jfs]
[   71.762963] [c0000007704b3d80] [c0000000000e7354] kthread+0x124/0x150
[   71.762967] [c0000007704b3e30] [c000000000009538] ret_from_kernel_thread+0x5c/0xa4
[  939.941389] ERROR: (device sda2): diRead [jfs]: i_ino != di_number

[ 1086.974949] ERROR: (device sda2): dtSearch [jfs]: stack overrun!

[ 1086.975058] btstack dump:
[ 1086.975059] bn = 0, index = 0
[ 1086.975084] bn = 180009, index = 0
[ 1086.975125] bn = 0, index = 0
[ 1086.975151] bn = 180009, index = 0
[ 1086.975177] bn = 0, index = 0
[ 1086.975204] bn = 180009, index = 0
[ 1086.975231] bn = 0, index = 0
[ 1086.975259] bn = c0000000fd107c80, index = -1360
[ 1086.975529] ERROR: (device sda2): dtSearch [jfs]: DT_GETPAGE: dtree page corrupt


I think it's been sufficiently established this is a kernel bug present in at the very least in 16.04, with kernel 4.4.0-92.115, but also on artful with the most recent kernel.

This bug needs to go to the kernel team, I don't think there's a d-i bug
at all.

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

Title:
  Ubuntu16.04.3 Installation fails for JFS file system

Status in The Ubuntu-power-systems project:
  New
Status in debian-installer package in Ubuntu:
  New

Bug description:
  ---Problem Description---

  Ubuntu16.04.3 installation fails for JFS file system.

  
  ---Environment---
  Garrison Power8

  
  ---Steps to reproduce---
   Install Ubuntu 16.04.3 with 
   - prepboot
  - /root [JFS filesystem]
  - swap space

  
  ---Fails in below step---

               ?? [!!] Install the GRUB boot loader on a hard disk ??
    ????????????                                                    ? ?????????
    ?          ?        Unable to install GRUB in /dev/sdi1         ?         ?
    ?          ? Executing 'grub-install /dev/sdi1' failed.         ?         ?
    ?          ?                                                    ?         ?
    ? Running "? This is a fatal error.                             ?         ?
    ?          ?                                                    ?         ?
    ????????????     <Go Back>                       <Continue>     ? ?????????
               ?                                                    ?
               ??????????????????????????????????????????????????????



  
  <Tab> moves; <Space> selects; <Enter> activates buttons



  
       ????????? [!!] Install the GRUB boot loader on a hard disk ??????????
       ?                                                                   ?
       ?                     Installation step failed                      ?
       ? An installation step failed. You can try to run the failing item  ?
       ? again from the menu, or skip it and choose something else. The    ?
       ? failing step is: Install the GRUB boot loader on a hard disk      ?
       ?                                                                   ?
       ?                            <Continue>                             ?
       ?                                                                   ?
       ?????????????????????????????????????????????????????????????????????



  
  <Tab> moves; <Space> selects; <Enter> activates buttons

  
  Comment 3 2017-07-20 04:31:05 CDT

  Based on your error, may be you deleted partition 1 (8MB the PReP boot
  partition) which is required for installing the boot loader in IBM
  power systems.  Or maybe you changed the use type to JFS from PReP
  boot.

  Partition 1 (PReP boot) does NOT contain a filesystem and is not
  mounted.Grub is written to it raw and the firmware loads the contents
  of the partition into ram and executes it raw.

  Can you try one more time,
  Pick the default guided partitioning, then change the root partition(partition 2) from ext4(or <xyz> filesystem) to JFS.Do not delete and create any partitions from the default guided setup. Paste the results.

  Comment 4  2017-07-20 09:22:22 CDT

  (In reply to comment #3)
  > Based on your error, may be you deleted partition 1 (8MB the PReP boot
  > partition) which is required for installing the boot loader in IBM power
  > systems.  Or maybe you changed the use type to JFS from PReP boot. 
  > 
  > Partition 1 (PReP boot) does NOT contain a filesystem and is not
  > mounted.Grub is written to it raw and the firmware loads the contents of the
  > partition into ram and executes it raw.
  > 
  > Can you try one more time,
  > Pick the default guided partitioning, then change the root
  > partition(partition 2) from ext4(or <xyz> filesystem) to JFS.Do not delete
  > and create any partitions from the default guided setup. Paste the results.

  No, I have not deleted partition and I have not changed the use type
  to JFS from PReP boot.

  Any ways I tried again and it still fails.

  ?????????????????????????? [!!] Partition disks ???????????????????????????
    ?                                                                         ?
    ? This is an overview of your currently configured partitions and mount   ?
    ? points. Select a partition to modify its settings (file system, mount   ?
    ? point, etc.), a free space to create partitions, or a device to         ?
    ? initialize its partition table.                                         ?
    ?                                                                         ?
    ?  SCSI4 (0,0,0) (sdi) - 1.0 TB ATA ST1000NX0313                          ?
    ?  >                    1.0 MB        FREE SPACE                      ?   ?
    ?  >     #1             7.3 MB     K                                  ?   ?
    ?  >     #2           959.7 GB     F  ext4          /                 ?   ?
    ?  >     #3            40.5 GB     f  swap          swap                  ?
    ?  >                  728.6 kB        FREE SPACE                      ?   ?
    ?  SCSI5 (0,0,0) (sdj) - 1.0 TB ATA ST1000NX0313                      ?   ?
    ?  >     #1  primary    4.2 MB  B                                     ?   ?
    ?  >     #2  primary    1.1 GB        xfs                             ?   ?
    ?  >     #3  primary  214.7 GB        xfs                                 ?
    ?                                                                         ?
    ?     <Go Back>                                                           ?
    ?                                                                         ?
    ???????????????????????????????????????????????????????????????????????????

  <F1> for help; <Tab> moves; <Space> selects; <Enter> activates buttons




    ?????????????????????????? [!!] Partition disks ???????????????????????????
    ?                                                                         ?
    ? You are editing partition #1 of SCSI4 (0,0,0) (sdi). No existing file   ?
    ? system was detected in this partition.                                  ?
    ?                                                                         ?
    ? Partition settings:                                                     ?
    ?                                                                         ?
    ?             Name:                                                       ?
    ?             Use as:         PowerPC PReP boot partition                 ?
    ?                                                                         ?
    ?             Bootable flag:  off                                         ?
    ?                                                                         ?
    ?             Erase data on this partition                                ?
    ?             Delete the partition                                        ?
    ?             Done setting up the partition                               ?
    ?                                                                         ?
    ?     <Go Back>                                                           ?
    ?                                                                         ?
    ???????????????????????????????????????????????????????????????????????????

  
  <F1> for help; <Tab> moves; <Space> selects; <Enter> activates buttons



  
    ?????????????????????????? [!!] Partition disks ???????????????????????????
    ?                                                                         ?
    ? This is an overview of your currently configured partitions and mount   ?
    ? points. Select a partition to modify its settings (file system, mount   ?
    ? point, etc.), a free space to create partitions, or a device to         ?
    ? initialize its partition table.                                         ?
    ?                                                                         ?
    ?  >     #1            51.6 GB        xfs                                 ?
    ?  LVM VG rhelp_ltc-garri3, LV swap - 4.3 GB Linux device-mapper (li  ?   ?
    ?  >     #1             4.3 GB        swap                            ?   ?
    ?  SCSI4 (0,0,0) (sdi) - 1.0 TB ATA ST1000NX0313                      ?   ?
    ?  >                    1.0 MB        FREE SPACE                      ?   ?
    ?  >     #1             7.3 MB     K                                      ?
    ?  >     #2           959.7 GB     F  jfs           /                 ?   ?
    ?  >     #3            40.5 GB     f  swap          swap              ?   ?
    ?  >                  728.6 kB        FREE SPACE                      ?   ?
    ?  SCSI5 (0,0,0) (sdj) - 1.0 TB ATA ST1000NX0313                          ?
    ?                                                                         ?
    ?     <Go Back>                                                           ?
    ?                                                                         ?
    ???????????????????????????????????????????????????????????????????????????

  <F1> for help; <Tab> moves; <Space> selects; <Enter> activates buttons

               ?? [!!] Install the GRUB boot loader on a hard disk ??
    ????????????                                                    ? ?????????
    ?          ?        Unable to install GRUB in /dev/sdi1         ?         ?
    ?          ? Executing 'grub-install /dev/sdi1' failed.         ?         ?
    ?          ?                                                    ?         ?
    ? Running "? This is a fatal error.                             ?         ?
    ?          ?                                                    ?         ?
    ????????????     <Go Back>                       <Continue>     ? ?????????
               ?                                                    ?
               ??????????????????????????????????????????????????????



  
  <Tab> moves; <Space> selects; <Enter> activates buttons

  
  Thanks,
  Pooja

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1708096/+subscriptions



More information about the foundations-bugs mailing list