grub2 cannot find lvmid device when an additional disk has been added to root volume group
This document (000020635) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server for SAP Applications 15
In order to achieve it, a additional physical volume (PV) needs be created and added to the volume group (VG) containing '/'.
As next step, the root volume is extended using lvextend command, and filesystem of '/' is as well extended using either xfs_growfs or resize2fs.
After system reboot, grub2 cannot find the root volume anymore, and it is entering in rescue mode with an error similar as below...
1. Boot the system in rescue mode
2. Enter the rescue mode by providing root user only
3. Verify the location of boot partition using 'fdisk -l | grep boot'
tty1:rescue:~ # fdisk -l | grep boot /dev/vda1 2048 6143 4096 2M BIOS boot tty1:rescue:~ #4. Verify the location of root partition using 'fdisk -l | grep root'
tty1:rescue:~ # fdisk -l | grep root Disk /dev/mapper/system-root: 67.99 GiB, 73001861120 bytes, 142581760 sectors tty1:rescue:~ #5. Mount root LV using /dev/mapper and bind /proc, /dev, /sys and /run to it
tty1:rescue:~ # mount /dev/mapper/system-root /mnt tty1:rescue:~ # for i in dev proc sys run ; do mount -o bind /$i /mnt/$i ; done6. Install grub on /dev/vda
tty1:rescue:~ # grub2-install /dev/vda7. Update/ recreate grub.cfg configuration file
tty1:rescue:~ # grub2-mkconfig -o /boot/grub2/grub.cfg8. Next, make a backup of the old initrd and create a new one using the following commands
tty1:rescue:~ # cd /boot tty1:rescue:~ # mkdir brokeninitrd tty1:rescue:~ # cp initrd-<version> brokeninitrd tty1:rescue:~ # mkinitrd9. Exit chroot, and reboot the system
tty1:rescue:~ # exit; sync && reboot
1. Creating an additional PV
2. Extending VG
3. Extending LV
4. Extending/ resizing FS
* The boot issue could be avoided by performing steps 6, 7, and 8 from above, prior to reboot...
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020635
- Creation Date: 07-Apr-2022
- Modified Date:14-Apr-2022
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org