I get the very same issue trying to upgrade Lenny to squeeze with root partition on SAN multipath'd device.
Found linux image: /boot/vmlinuz-2.6.26-2-xen-amd64 Found initrd image: /boot/initrd.img-2.6.26-2-xen-amd64 /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/mpath0-part1. Check your device.map. /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/mpath0-part1. Check your device.map. I almost have the same device.map as remi and my multipath configuration differ a little as I have 2 HBA and 2 target devices so I have 4 underlying devices fir each multipath device. One of my workmate reported the Debian Installer fails at grub stage, so I suspect this issue to be involved. Debian ships with (GRUB) 1.98+20100804-14 Are later versions of grub supposed to fix this? Rémi-4 wrote: > > Hi, > > On a debian squeeze server configured with multipath-tools and > multipath-tools-boot for boot on san, > update-grub fails with the message > /usr/sbin/grub-probe: error: cannot find a GRUB drive for > /dev/mapper/mpath0-part1. Check your device.map. > > I tried to modify the device.map file, but I always got the same error. > > note : I installed dmsetup package from sid on this server to solve > the uuid problem describe here > http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/2011-February/003472.html > > any help would be very welcome > > regards, > > Rémi > > > -------------------------------------------------- > $ update-grub > Generating grub.cfg ... > /usr/sbin/grub-probe: error: cannot find a GRUB drive for > /dev/mapper/mpath0-part1. Check your device.map. > > $ cat /boot/grub/device.map > (hd0) /dev/disk/by-id/cciss-3600508b1001038363520202020200003 > (hd1) /dev/disk/by-id/scsi-mpath0 > (hd2) /dev/disk/by-id/scsi-mpath1 > (hd3) /dev/disk/by-id/scsi-3600508b4000548d90000b00000a90000 > (hd4) /dev/disk/by-id/scsi-3600508b4000548d90000b000002c0000 > (hd5) /dev/sda > (hd6) /dev/sdd > > > -------------------------------------------------- > > $ cat /etc/fstab > # /etc/fstab: static file system information. > # > # Use 'blkid' to print the universally unique identifier for a > # device; this may be used with UUID= as a more robust way to name devices > # that works even if disks are added and removed. See fstab(5). > # > # <file system> <mount point> <type> <options> <dump> <pass> > proc /proc proc defaults 0 0 > # / was on /dev/sda1 during installation > UUID=6542dfdf-ef98-46e5-b473-142c216cc42d / ext4 > errors=remount-ro 0 1 > # /data was on /dev/sdb1 during installation > UUID=92164462-d89f-4925-af44-0bb851c0b902 /data ext4 > defaults 0 2 > # /var was on /dev/sda2 during installation > UUID=cc39cc25-7e51-4400-952d-f1e155d4f27b /var ext4 > defaults 0 2 > # swap was on /dev/cciss/c0d0p1 during installation > UUID=b0f9230c-572a-4098-81dc-b952920dd9b0 none swap sw > 0 0 > /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 > > -------------------------------------------------- > > $ grub-install hd1 > /usr/sbin/grub-probe: error: cannot find a GRUB drive for > /dev/mapper/mpath0-part1. Check your device.map. > Auto-detection of a filesystem of /dev/mapper/mpath0-part1 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]> > > $ /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs > -v /boot/grub > /usr/sbin/grub-probe: info: the size of hd0 is 143305920. > /usr/sbin/grub-probe: info: the size of hd0 is 143305920. > /usr/sbin/grub-probe: info: the size of hd0 is 143305920. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd2 is 20971520. > /usr/sbin/grub-probe: info: the size of hd2 is 20971520. > /usr/sbin/grub-probe: info: the size of hd2 is 20971520. > /usr/sbin/grub-probe: info: the size of hd3 is 20971520. > /usr/sbin/grub-probe: info: the size of hd3 is 20971520. > /usr/sbin/grub-probe: info: the size of hd3 is 20971520. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd6 is 20971520. > /usr/sbin/grub-probe: info: the size of hd6 is 20971520. > /usr/sbin/grub-probe: info: the size of hd6 is 20971520. > /usr/sbin/grub-probe: info: the size of hd0 is 143305920. > /usr/sbin/grub-probe: info: the size of hd0 is 143305920. > /usr/sbin/grub-probe: info: the size of hd0 is 143305920. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd1 is 16777216. > /usr/sbin/grub-probe: info: the size of hd2 is 20971520. > /usr/sbin/grub-probe: info: the size of hd2 is 20971520. > /usr/sbin/grub-probe: info: the size of hd2 is 20971520. > /usr/sbin/grub-probe: info: the size of hd3 is 20971520. > /usr/sbin/grub-probe: info: the size of hd3 is 20971520. > /usr/sbin/grub-probe: info: the size of hd3 is 20971520. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd4 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd5 is 16777216. > /usr/sbin/grub-probe: info: the size of hd6 is 20971520. > /usr/sbin/grub-probe: info: the size of hd6 is 20971520. > /usr/sbin/grub-probe: info: the size of hd6 is 20971520. > /usr/sbin/grub-probe: info: changing current directory to /dev. > /usr/sbin/grub-probe: info: changing current directory to dri. > /usr/sbin/grub-probe: info: changing current directory to snd. > /usr/sbin/grub-probe: info: changing current directory to hpilo. > /usr/sbin/grub-probe: info: changing current directory to net. > /usr/sbin/grub-probe: info: changing current directory to shm. > /usr/sbin/grub-probe: info: changing current directory to bsg. > /usr/sbin/grub-probe: info: changing current directory to mapper. > /usr/sbin/grub-probe: error: cannot find a GRUB drive for > /dev/mapper/mpath0-part1. Check your device.map. > > > -------------------------------------------------- > > > $ ll /dev/disk/* > /dev/disk/by-id: > total 0 > lrwxrwxrwx 1 root root 16 4 avril 15:59 > cciss-3600508b1001038363520202020200003 -> ../../cciss/c0d0 > lrwxrwxrwx 1 root root 18 4 avril 15:59 > cciss-3600508b1001038363520202020200003-part1 -> ../../cciss/c0d0p1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 dm-name-mpath0 -> ../../dm-1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 dm-name-mpath1 -> ../../dm-4 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > dm-uuid-mpath-3600508b4000548d90000b000002c0000 -> ../../dm-0 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > dm-uuid-mpath-3600508b4000548d90000b00000a90000 -> ../../dm-3 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > dm-uuid-part1-mpath-3600508b4000548d90000b000002c0000 -> ../../dm-1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > dm-uuid-part1-mpath-3600508b4000548d90000b00000a90000 -> ../../dm-4 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > dm-uuid-part2-mpath-3600508b4000548d90000b000002c0000 -> ../../dm-2 > lrwxrwxrwx 1 root root 9 4 avril 15:59 > scsi-3600508b4000548d90000b000002c0000 -> ../../sdc > lrwxrwxrwx 1 root root 10 4 avril 15:59 > scsi-3600508b4000548d90000b000002c0000-part1 -> ../../sdc1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > scsi-3600508b4000548d90000b000002c0000-part2 -> ../../sdc2 > lrwxrwxrwx 1 root root 9 4 avril 15:59 > scsi-3600508b4000548d90000b00000a90000 -> ../../sdb > lrwxrwxrwx 1 root root 10 4 avril 15:59 > scsi-3600508b4000548d90000b00000a90000-part1 -> ../../sdd1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 scsi-mpath0 -> ../../dm-0 > lrwxrwxrwx 1 root root 10 4 avril 15:59 scsi-mpath0-part1 -> ../../dm-1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 scsi-mpath0-part2 -> ../../dm-2 > lrwxrwxrwx 1 root root 10 4 avril 15:59 scsi-mpath1 -> ../../dm-3 > lrwxrwxrwx 1 root root 10 4 avril 15:59 scsi-mpath1-part1 -> ../../dm-4 > lrwxrwxrwx 1 root root 16 4 avril 15:59 wwn-0x600508b100103836 -> > ../../cciss/c0d0 > lrwxrwxrwx 1 root root 18 4 avril 15:59 wwn-0x600508b100103836-part1 > -> ../../cciss/c0d0p1 > lrwxrwxrwx 1 root root 9 4 avril 15:59 wwn-0x600508b4000548d9 -> > ../../sdb > lrwxrwxrwx 1 root root 10 4 avril 15:59 wwn-0x600508b4000548d9-part1 > -> ../../sdc1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 wwn-0x600508b4000548d9-part2 > -> ../../sdc2 > > /dev/disk/by-path: > total 0 > lrwxrwxrwx 1 root root 16 4 avril 15:59 pci-0000:06:00.0 -> > ../../cciss/c0d0 > lrwxrwxrwx 1 root root 18 4 avril 15:59 pci-0000:06:00.0-part1 -> > ../../cciss/c0d0p1 > lrwxrwxrwx 1 root root 9 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee68:0x0001000000000000 -> ../../sdc > lrwxrwxrwx 1 root root 10 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee68:0x0001000000000000-part1 -> > ../../sdc1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee68:0x0001000000000000-part2 -> > ../../sdc2 > lrwxrwxrwx 1 root root 9 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee68:0x0002000000000000 -> ../../sdd > lrwxrwxrwx 1 root root 10 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee68:0x0002000000000000-part1 -> > ../../sdd1 > lrwxrwxrwx 1 root root 9 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee6c:0x0001000000000000 -> ../../sda > lrwxrwxrwx 1 root root 10 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee6c:0x0001000000000000-part1 -> > ../../sda1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee6c:0x0001000000000000-part2 -> > ../../sda2 > lrwxrwxrwx 1 root root 9 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee6c:0x0002000000000000 -> ../../sdb > lrwxrwxrwx 1 root root 10 4 avril 15:59 > pci-0000:0b:00.0-fc-0x50001fe15009ee6c:0x0002000000000000-part1 -> > ../../sdb1 > > /dev/disk/by-uuid: > total 0 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > 6542dfdf-ef98-46e5-b473-142c216cc42d -> ../../dm-1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > 92164462-d89f-4925-af44-0bb851c0b902 -> ../../dm-4 > lrwxrwxrwx 1 root root 18 4 avril 15:59 > b0f9230c-572a-4098-81dc-b952920dd9b0 -> ../../cciss/c0d0p1 > lrwxrwxrwx 1 root root 10 4 avril 15:59 > cc39cc25-7e51-4400-952d-f1e155d4f27b -> ../../dm-2 > > > -------------------------------------------------- > > > $ ll /dev/mapper/* > crw------- 1 root root 10, 58 4 avril 15:59 /dev/mapper/control > brw-rw---- 1 root disk 254, 0 4 avril 15:59 /dev/mapper/mpath0 > lrwxrwxrwx 1 root root 7 4 avril 15:59 /dev/mapper/mpath0-part1 > -> ../dm-1 > lrwxrwxrwx 1 root root 7 4 avril 15:59 /dev/mapper/mpath0-part2 > -> ../dm-2 > brw-rw---- 1 root disk 254, 3 4 avril 15:59 /dev/mapper/mpath1 > lrwxrwxrwx 1 root root 7 4 avril 15:59 /dev/mapper/mpath1-part1 > -> ../dm-4 > > -------------------------------------------------- > > $ multipath -l > mpath1 (3600508b4000548d90000b00000a90000) dm-3 HP,HSV200 > size=10G features='1 queue_if_no_path' hwhandler='0' wp=rw > |-+- policy='round-robin 0' prio=-1 status=active > | `- 0:0:2:2 sdb 8:16 active undef running > `-+- policy='round-robin 0' prio=-1 status=enabled > `- 0:0:3:2 sdd 8:48 active undef running > mpath0 (3600508b4000548d90000b000002c0000) dm-0 HP,HSV200 > size=8.0G features='1 queue_if_no_path' hwhandler='0' wp=rw > |-+- policy='round-robin 0' prio=-1 status=active > | `- 0:0:2:1 sda 8:0 active undef running > `-+- policy='round-robin 0' prio=-1 status=enabled > `- 0:0:3:1 sdc 8:32 active undef running > > _______________________________________________ > Bug-grub mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-grub > > -- View this message in context: http://old.nabble.com/update-grub-fails-with-multipath-tools-%28debian-6%29-tp31791986p31902387.html Sent from the Grub - Bugs mailing list archive at Nabble.com. _______________________________________________ Bug-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-grub
