[Bug 643148] Re: update-grub fails when using LVM on top of mdraid

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 12:43:58 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

** Changed in: grub2 (Ubuntu)
       Status: New => Incomplete

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

Title:
  update-grub fails when using LVM on top of mdraid

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: grub2

  Since installing the latest updates on my Lucid system, I am no longer
  able to run update-grub:

  # update-grub
  Generating grub.cfg ...
  /usr/sbin/grub-probe: error: no mapping exists for `hd-root'.

  # blkid
  /dev/sda1: UUID="c454d1dd-9ca5-8365-9092-ed487f040f97" TYPE="linux_raid_member" 
  /dev/sdb1: UUID="c454d1dd-9ca5-8365-9092-ed487f040f97" TYPE="linux_raid_member" 
  /dev/md0: UUID="wDRQND-WIPn-tD04-fnpp-MYl1-SBxZ-JYzeEe" TYPE="LVM2_member" 
  /dev/mapper/hd-root: UUID="e321d240-c1a7-421d-aa48-6e9815045792" TYPE="ext4" 
  /dev/mapper/hd-swap: UUID="779718d6-cee0-481f-8335-e7020747c0fb" TYPE="swap" 

  # pvdisplay
    --- Physical volume ---
    PV Name               /dev/md0
    VG Name               hd
    PV Size               931.32 GiB / not usable 3.88 MiB
    Allocatable           yes 
    PE Size               4.00 MiB
    Total PE              238417
    Free PE               32062
    Allocated PE          206355
    PV UUID               wDRQND-WIPn-tD04-fnpp-MYl1-SBxZ-JYzeEe

  # vgdisplay
    --- Volume group ---
    VG Name               hd
    System ID             
    Format                lvm2
    Metadata Areas        1
    Metadata Sequence No  57
    VG Access             read/write
    VG Status             resizable
    MAX LV                0
    Cur LV                5
    Open LV               5
    Max PV                0
    Cur PV                1
    Act PV                1
    VG Size               931.32 GiB
    PE Size               4.00 MiB
    Total PE              238417
    Alloc PE / Size       206355 / 806.07 GiB
    Free  PE / Size       32062 / 125.24 GiB
    VG UUID               bifJxB-gavG-4NBR-2VEw-nRpY-dz5N-fiWmsA
     
  # lvdisplay
    --- Logical volume ---
    LV Name                /dev/hd/root
    VG Name                hd
    LV UUID                dUHaqU-hpuW-ejX5-qYD5-SkPO-Q03v-T92xNU
    LV Write Access        read/write
    LV Status              available
    # open                 1
    LV Size                18.62 GiB
    Current LE             4768
    Segments               1
    Allocation             inherit
    Read ahead sectors     auto
    - currently set to     512
    Block device           251:0
     
    --- Logical volume ---
    LV Name                /dev/hd/swap
    VG Name                hd
    LV UUID                TNS841-NF3w-9U3z-N0W1-YlpR-7VbX-VWEuCv
    LV Write Access        read/write
    LV Status              available
    # open                 1
    LV Size                7.45 GiB
    Current LE             1907
    Segments               1
    Allocation             inherit
    Read ahead sectors     auto
    - currently set to     512
    Block device           251:1
     
  # mount
  /dev/mapper/hd-root on / type ext4 (rw,errors=remount-ro)
  proc on /proc type proc (rw,noexec,nosuid,nodev)
  none on /sys type sysfs (rw,noexec,nosuid,nodev)
  none on /sys/fs/fuse/connections type fusectl (rw)
  none on /sys/kernel/debug type debugfs (rw)
  none on /sys/kernel/security type securityfs (rw)
  none on /dev type devtmpfs (rw,mode=0755)
  none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
  none on /dev/shm type tmpfs (rw,nosuid,nodev)
  none on /var/run type tmpfs (rw,nosuid,mode=0755)
  none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
  none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
  none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
  configfs on /sys/kernel/config type configfs (rw)

  
  Installation went fine and the disk configuration has not changed since then.

  This bug is fairly serious because it stops me from installing/booting
  new kernels.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/643148/+subscriptions



More information about the foundations-bugs mailing list