Grub not working under software RAID
Quoted 50 lines · Sean Porth
Quoted 2 lines · Vladimir 'Æ-coder/phcoder' Serbinenko
Quoted 1 line · Sean Porth
I have the same exact issue. Upgrading to Debian squeeze. I even
upgraded the grub2 package to the Debian unstable version (1.99~rc1-2) and same error.
Quoted 5 lines
Quoted 5 lines
backup:/etc# grub-install /dev/md0 /usr/sbin/grub-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed. Please report this together with the output of"
/usr/sbin/grub-probe--device-map="/boot/grub/device.map" --target=fs -v/boot/grub" to <[email protected]>Quoted 2 lines
Quoted 2 lines
backup:/etc# /usr/sbin/grub-probe--device-map="/boot/grub/device.map" --target=fs -v
/boot/grubQuoted 9 lines
Quoted 9 lines
/usr/sbin/grub-probe: info: changing current directory to /dev./usr/sbin/grub-probe: info: changing current directory to disk./usr/sbin/grub-probe: info: changing current directory to by-uuid./usr/sbin/grub-probe: info: changing current directory to by-id./usr/sbin/grub-probe: info: changing current directory to block./usr/sbin/grub-probe: info: opening md0./usr/sbin/grub-probe: error: no such disk.Quoted 4 lines
Could you supply the output of following commands:
cat/proc/mdstat
grub-fstest -d all -cls /dev/sd?|wc -l/dev/sd? ls -- -l as well as first and last 128K of every array member?backup:~# cat /proc/mdstat Personalities : [linear] [raid1] md1 : active raid1 sdb3[1] sda3[0] 945513536 blocks [2/2] [UU]md0 : active raid1 sdb1[1] sda1[0]
29294400 blocks [2/2] [UU]unused devices: <none>
--
backup:/usr/src/grub-1.98# ./grub-fstest -d all -c `ls /dev/sd?|wc -l` /dev/sd? ls -- -l ls: cannot access /dev/sd?: No such file or directory Invalid disk count. Try `./grub-fstest --help' for more information.
Quoted 4 lines
I think the grub-fstest is showing the crux of the problem. After the upgrade to squeeze I no longer have
/dev/sdaand/dev/sdb, all though md seems to have no problem finding them.
Have you tried executing grub-mkdevicemap? Actually the normal way to launch grub-fstest is:
./grub-fstest -d all -c N <DEVICES> ls -- -l
Where DEVICES is devices in the md array and N is the number of them. The part with sd? was just a quick hack to detect this things for error reporting.
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 8 lines · Sean Porth
backup:~# cat /proc/mdstatQuoted 6 lines
Quoted 6 lines
Personalities : [linear] [raid1]
md1 : active raid1 sdb3[1] sda3[0]945513536 blocks [2/2] [UU]md0 : active raid1 sdb1[1] sda1[0]
29294400 blocks [2/2] [UU]
How do you access those disks? Do you have /dev/sd[ab][13]. Is it some kind of VM? If none of /dev/sd[ab][13] /dev/sd[ab] exist it probably means that there is a bug in udev. Mdraid detection is probably done in kernel and so presence of nodes under /dev is irrelevant. But any action attempted with devices from userspace is obviously bound to fail.
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko