Bug 510954

Summary: grub doesn't find raid partitions
Product: [openSUSE] openSUSE 11.2 Reporter: Andreas Schneider <asn>
Component: InstallationAssignee: Hannes Reinecke <hare>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: forgotten_Udskk56uJ3, ihno, meissner
Version: Factory   
Target Milestone: Future 11.3   
Hardware: Other   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Schneider 2009-06-08 14:57:34 UTC
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
 Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "... failed

Error 22: No such partition
grub> quit

The reason ist that grub looks for

/dev/disk/by-id/raid-isw_bjffgebgic_Volume0-part1

but it can't find it, cause the symlink doesn't exist.

linux:~ # cat /boot/grub/device.map
(hd0)   /dev/disk/by-id/raid-isw_bjffgebgic_Volume0

linux:/dev/disk/by-id # ll
total 0
lrwxrwxrwx 1 root root  9 Jun  8 17:55 ata-WDC_WD3200AAKS-00L6A0_WD-WMAV23716509 -> ../../sda
lrwxrwxrwx 1 root root  9 Jun  8 17:55 ata-WDC_WD3200AAKS-00L6A0_WD-WMAV23824046 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun  8 18:06 dm-name-cr_isw_bjffgebgic_Volume0_part6 -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun  8 18:00 dm-name-isw_bjffgebgic_Volume0 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun  8 18:05 dm-name-isw_bjffgebgic_Volume0_part1 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun  8 18:05 dm-name-isw_bjffgebgic_Volume0_part2 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun  8 18:05 dm-name-isw_bjffgebgic_Volume0_part3 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun  8 18:21 dm-name-isw_bjffgebgic_Volume0_part4 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun  8 18:05 dm-name-isw_bjffgebgic_Volume0_part5 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun  8 18:05 dm-name-isw_bjffgebgic_Volume0_part6 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun  8 18:00 dm-uuid-DMRAID-isw_bjffgebgic_Volume0 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun  8 18:00 raid-isw_bjffgebgic_Volume0 -> ../../dm-0
lrwxrwxrwx 1 root root  9 Jun  8 17:55 scsi-SATA_WDC_WD3200AAKS-_WD-WMAV23716509 -> ../../sda
lrwxrwxrwx 1 root root  9 Jun  8 17:55 scsi-SATA_WDC_WD3200AAKS-_WD-WMAV23824046 -> ../../sdb
Comment 1 Marcus Meissner 2009-06-25 18:04:34 UTC
not sure who cerates those symlinks.

udev?
Comment 2 Kay Sievers 2009-06-25 23:58:26 UTC
I think it's Hannes' kpartx stuff.
Comment 3 Hannes Reinecke 2011-03-11 08:50:02 UTC
Please retest with 11.4 and reopen if the problem persists.