How do I manually detect my storage in rescue mode?
Environment
- Red Hat Enterprise Linux 4, 5, 6, 7, 8, 9
Issue
How do I manually detect my storage in rescue mode?
Resolution
1. Obtain the rescue media.
2. Enter linux rescue mpath at the boot prompt
boot: linux rescue mpath
1. Use the /proc/partition file to see which devices the kernel is aware of
# cat /proc/partitions
2. Check to see if multipathing has been utilized for any of your devices
# multipath -ll
3. Enable your LVM devices
3a. If you are not booting from mutlipathing use the following command
# lvm vgchange -ay
3b. If you are booting from multipathing use the following command
# lvm vgchange -ay --config 'device{ filter = [ "a|/dev/mapper/mpath.*|", "r|.*|" ] }'
4. Create a sysimage directory
# mkdir /mnt/sysimage
5. Mount your root directory (/) under /mnt/sysimage
# mount /dev/mapper/VolGroup00-lv_root /mnt/sysimage
6. Bind mount sys, proc, and dev to /mnt/sysimage
# mount -o bind /proc /mnt/sysimage/proc
# mount -o bind /dev /mnt/sysimage/dev
# mount -o bind /sys /mnt/sysimage/sys
7. View your fstab file
# cat /mnt/sysimage/etc/fstab
8. Mount everything in the fstab under /mnt/sysimage
# mount /dev/device1 /mnt/sysimage/mountpoint1
# mount /dev/device2 /mnt/sysimage/mountpoint2
# mount /dev/device3 /mnt/sysimage/mountpoint3
9. chroot to the new environment
# chroot /mnt/sysimage
Root Cause
soemtimes the 'continue' option doesnt work
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.