Fakeraid + grub2

Hi folks,

im trying to get my Squeeze (testing) running with grub2, but for some reason i cannot do the upgrade from grub-legacy / grub.

I’m using fakeraid (promise) since lenny, which worked fine. Now, trying the upgrade thingie (upgrade-from-grub-legacy), i get the following error:

Searching for GRUB installation directory ... found: /boot/grub warning: grub-probe can't find drive for /dev/mapper/pdc\_difibafdhi1. grub-probe: error: cannot find a GRUB drive for /dev/mapper/pdc\_difibafdhi1. Check your device.map

Thus its not gonna get written to the MBR, actually nothing happens…

Here is what my device.map looks like:

CODE /dev/fd0
(hd0) /dev/disk/by-id/ata-Hitachi_HDP725050GLAT80_GE1540RV1HDN9A
(hd1) /dev/disk/by-id/ata-Hitachi_HDP725050GLAT80_GE1540RV1J51HA
(hd2) /dev/mapper/pdc_difibafdhi[/CODE]

Some guesses where to debug?

Thx

hello,

i only know the good old grub v0.97 and the good old software-raid, sorry.

Searching for GRUB installation directory ... found: /boot/grub warning: grub-probe can't find drive for /dev/mapper/pdc\_difibafdhi1. grub-probe: error: cannot find a GRUB drive for /dev/mapper/pdc\_difibafdhi1. Check your device.map

Thus its not gonna get written to the MBR, actually nothing
happens…

Here is what my device.map looks like:

CODE /dev/fd0
(hd0)
/dev/disk/by-id/ata-Hitachi_HDP725050GLAT80_GE1540RV1HDN9A
(hd1)
/dev/disk/by-id/ata-Hitachi_HDP725050GLAT80_GE1540RV1J51HA
(hd2) /dev/mapper/pdc_difibafdhi[/CODE]

maybe i don’t understand something, but…
is it correct, that you have a
/dev/mapper/pdc_difibafdhi in your devices.map, but a
/dev/mapper/pdc_difibafdhi1 in your error message?
is grub installing on mirror 1 of 2 automatically?
is there a /dev/mapper/pdc_difibafdhi1?

regards
people

hello again

maybe symlink-problem?

http://www.mail-archive.com/[email protected]

http://bugs.archlinux.org/task/18734

regards again

Hi stoechi,

Searching for GRUB installation directory … found:
/boot/grub warning:
grub-probe can’t find drive for
/dev/mapper/pdc_difibafdhi1.
grub-probe: error: cannot find a GRUB drive for
/dev/mapper/pdc_difibafdhi1. Check your device.map

Which kernel do you use?
Depending on that, it could be, that there is no folder /dev/mapper.

In that case you have to mkdir /dev/mapper and create corresponding softlinks to the devices, which now reside directly under /dev and are called dm-X (X = 0 … n). In case of your logical volume it should be /dev/dm-0.

Here is what my device.map looks like:

The device map gets new entries, when you created /dev/mapper and the link to dm-0.

This problem comes from new code for block devices (maybe some other too) in the actual kernel versions.

Greetings
Peter

Sorry i can not really help you whit this.

Second is ma English to bad xD

Why do you write in english?
Isn’t that a german only forum?

I never have used fakeraid yet and i am not an expert in grub.
So I am afraid I can’t help you with that problem.

Regards,

Christian

Hello,

it seems to be a bug.

Execute „grub-probe -vvv --target=fs /boot“ and add it to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590884 with the tool reportbug.

Regards
abrams.

Hi!

im trying to get my Squeeze (testing) running with grub2, but
for some reason i cannot do the upgrade from grub-legacy /
grub.

I’m using fakeraid (promise) since lenny, which worked fine.
Now, trying the upgrade thingie (upgrade-from-grub-legacy), i
get the following error:

Searching for GRUB installation directory ... found: /boot/grub warning: grub-probe can't find drive for /dev/mapper/pdc\_difibafdhi1. grub-probe: error: cannot find a GRUB drive for /dev/mapper/pdc\_difibafdhi1. Check your device.map

Tricky!

How does your partition-table look like?
Does /dev/mapper/pdc_difibafdhi1 even exists and where does it come from?

I would ask the grub-mailing list:

[1] http://www.gnu.org/software/grub/grub-mailinglist.en…

I am sorry can’t give any more tips as I have no (good) experience with fakeraid and switched to mdadm/softraid a long time ago…

(Switching to mdadm would be my advice though:

[1] http://bit.ly/18m9Nc
[2] http://ubuntuforums.org/showthread.php?t=408461
)

Regards!

hmm sry this is an unkown bug. i try with my team to debug this and send you a letter when its work

Hi

Sorry for my late answer. Do you still have your problem?

Regards-
Sam

CODE /dev/fd0
(hd0)
/dev/disk/by-id/ata-Hitachi_HDP725050GLAT80_GE1540RV1HDN9A
(hd1)
/dev/disk/by-id/ata-Hitachi_HDP725050GLAT80_GE1540RV1J51HA
(hd2) /dev/mapper/pdc_difibafdhi[/CODE]

Some guesses where to debug?

I am very sorry i couldnt answer immediatly but - hoping it still help you - i can still share my experiences with upgrading grub.

I had similar problems with grub-probe, as this tool is not capable of handling device locations for non-physical devices such as mapped raid or encrypted partitions.

If you are sure grub is able to initialize the raid coniguration like the device map shows, you might want to hardcode your devices either in the grub upgrade or the /etc/grub.* scripts (to circumvent the grub-probe - which would fail).

Grüße
Lomex

btw: if you like so, you can answer me in germen language, my english isnt that well.