[Bug 1818864] [NEW] migrated LVM2 VG to a different PV and now getting 'error: invalid volume' from update-grub

Wladimir Mutel mwg at mwg.dp.ua
Wed Mar 6 16:21:01 UTC 2019


Public bug reported:

my Ubuntu is 18.04.2 with all updates applied
in the past my VG resided on /dev/md1 PV
I installed new HDDs, created /dev/md0 (this name was unused since previous PV migration some years ago), updated /etc/mdadm/mdadm.conf , moved LVs from /dev/md1 to /dev/md0 (with pvmove), removed /dev/md1 PV from the VG, then stopped and removed /dev/md1 , then updated mdadm.conf again.
I regenerated initrd image by dpkg-reconfigure to include updated mdadm.conf
and now, when I run update-grub , I get this :

Sourcing file `/etc/default/grub'
Generating grub configuration file ...
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
Found linux image: /boot/vmlinuz-4.15.0-46-generic
Found initrd image: /boot/initrd.img-4.15.0-46-generic
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.

I am not sure what could be the cause of this behavior.
How can I tell what volume exactly is invalid and how can I fix this situation ?
The only potential problem I see is that now I have 2 FAT copies for EFI boot partition having identical UUIDs.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  my Ubuntu is 18.04.2 with all updates applied
  in the past my VG resided on /dev/md1
- I installed new HDDs, created /dev/md0 , updated /etc/mdadm/mdadm.conf , moved LVs from /dev/md1 to /dev/md0 (with pvmove), then stopepd and removed /dev/md1 , then updated mdadm.conf again.
+ I installed new HDDs, created /dev/md0 , updated /etc/mdadm/mdadm.conf , moved LVs from /dev/md1 to /dev/md0 (with pvmove), removed /dev/md1 PV from the VG, then stopped and removed /dev/md1 , then updated mdadm.conf again.
  I regenerated initrd image by dpkg-reconfigure to include updated mdadm.conf
  and now, when I run update-grub , I get this :
  
  Sourcing file `/etc/default/grub'
  Generating grub configuration file ...
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  Found linux image: /boot/vmlinuz-4.15.0-46-generic
  Found initrd image: /boot/initrd.img-4.15.0-46-generic
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  
  I am not sure what could be the cause of this behavior.
  How can I tell what volume exactly is invalid and how can I fix this situation ?
  The only potential problem I see is that now I have 2 FAT copies for EFI boot partition having identical UUIDs.

** Description changed:

  my Ubuntu is 18.04.2 with all updates applied
- in the past my VG resided on /dev/md1
- I installed new HDDs, created /dev/md0 , updated /etc/mdadm/mdadm.conf , moved LVs from /dev/md1 to /dev/md0 (with pvmove), removed /dev/md1 PV from the VG, then stopped and removed /dev/md1 , then updated mdadm.conf again.
+ in the past my VG resided on /dev/md1 PV
+ I installed new HDDs, created /dev/md0 (this name was unused since previous PV migration some years ago), updated /etc/mdadm/mdadm.conf , moved LVs from /dev/md1 to /dev/md0 (with pvmove), removed /dev/md1 PV from the VG, then stopped and removed /dev/md1 , then updated mdadm.conf again.
  I regenerated initrd image by dpkg-reconfigure to include updated mdadm.conf
  and now, when I run update-grub , I get this :
  
  Sourcing file `/etc/default/grub'
  Generating grub configuration file ...
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  Found linux image: /boot/vmlinuz-4.15.0-46-generic
  Found initrd image: /boot/initrd.img-4.15.0-46-generic
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  
  I am not sure what could be the cause of this behavior.
  How can I tell what volume exactly is invalid and how can I fix this situation ?
  The only potential problem I see is that now I have 2 FAT copies for EFI boot partition having identical UUIDs.

-- 
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/1818864

Title:
  migrated LVM2 VG to a different PV and now getting 'error: invalid
  volume' from update-grub

Status in grub2 package in Ubuntu:
  New

Bug description:
  my Ubuntu is 18.04.2 with all updates applied
  in the past my VG resided on /dev/md1 PV
  I installed new HDDs, created /dev/md0 (this name was unused since previous PV migration some years ago), updated /etc/mdadm/mdadm.conf , moved LVs from /dev/md1 to /dev/md0 (with pvmove), removed /dev/md1 PV from the VG, then stopped and removed /dev/md1 , then updated mdadm.conf again.
  I regenerated initrd image by dpkg-reconfigure to include updated mdadm.conf
  and now, when I run update-grub , I get this :

  Sourcing file `/etc/default/grub'
  Generating grub configuration file ...
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  Found linux image: /boot/vmlinuz-4.15.0-46-generic
  Found initrd image: /boot/initrd.img-4.15.0-46-generic
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.
  error: invalid volume.

  I am not sure what could be the cause of this behavior.
  How can I tell what volume exactly is invalid and how can I fix this situation ?
  The only potential problem I see is that now I have 2 FAT copies for EFI boot partition having identical UUIDs.

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



More information about the foundations-bugs mailing list