System start aborts with "Couldn't find device with uuid" with LVM data on MD device
This document (7004113) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Couldn't find device with uuid" v2PqTb-ai9D-FgB9-jELP-4uTs-FTsN-eVwTt1
Resolution
-
Create a temporary folder
'mkdir /tmp/initrd'
-
Run the command:
' mkinitrd -f "lvm2 md" '
to create an initrd with lvm2 and md support.
-
copy initrd to folder and change directory:
'cp /boot/initrd-2.6.27.25-0.1-pae /tmp/initrd'
'cd /tmp/initrd'
-
rename the initrd to a gzip'ed file:
'mv initrd-2.6.27.25-0.1-pae initrd-2.6.27.25-0.1-pae.gz'
-
unpack the initrd:
'gunzip initrd-2.6.27.25-0.1-pae.gz && cpio -i -d < initrd-2.6.27.25-0.1-pae'
-
delete the extracted file:
'rm initrd-2.6.27.25-0.1-pae'
-
copy /etc/mdadm.conf to extracted initrd
'cp /etc/mdadm.conf /tmp/initrd/etc/'
-
create a new archive:
' find . -print | cpio -o -Hnewc | gzip > /boot/initrd-2.6.27.25-0.1-pae.new'
This will create the archive and a new initrd in /boot beside the existing one.
-
Edit /boot/grub/menu.lst and change
initrd /initrd-2.6.27.25-0.1-pae
to
# initrd /initrd-2.6.27.25-0.1-pae
initrd /initrd-2.6.27.25-0.1-pae.new
so the original line is kept as backup.
-
reboot.
Additional Information
mdadm --create /dev/mdX --level=1 --raid-devices=2 /dev/sd[XY]z
this will not create a /etc/mdadm.conf file automatically. A config written by YaST2 usually contains information like this:
UUID : 9102301d:c0764c48:07f45e96:8dddb797
UUID : 9102301d:c0764c48:07f45e96:8dddb797
DEVICE partitions
ARRAY /dev/md0 level=raid1 UUID=9102301d:c0764c48:07f45e96:8dddb797
-rw-r--r-- 1 root root 86 2009-08-04 17:44 /etc/mdadm.conf
Disclaimer
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:7004113
- Creation Date: 06-Aug-2009
- Modified Date:28-Sep-2022
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com