Skip to contentSkip to conversation

grub2 md-linear unsupported?

DISCUSSION Leo Baltus 4 participants 7 messages Apr 23, 2012

lore
Share & tools
lore

Leo Baltus

author
#0 lore raw

Hi,

I just tested with grub2-1.99-13 (fedora16) on an md-device with raid- level 'linear'.

On grub2-install is says:

error: unsupported RAID level: -1. /sbin/grub2-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed.

Is this really unsupported?

Signature · 4 lines
Leo Baltus, internetbeheerder                         /\
NPO ICT Internet Services                            /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \  /\/
[email protected], 035-6773555                         \/
#1 lore raw
Quoted 6 lines · Leo Baltus

Hi,

I just tested with grub2-1.99-13 (fedora16) on an md-device with raid- level 'linear'.

On grub2-install is says:

Exactly which full command is it that fails?

What do you have in /boot/grub2/device.map?

/Mads

Quoted 6 lines

error: unsupported RAID level: -1. /sbin/grub2-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed.

Is this really unsupported?

author
#2 lore raw

Op 23/04/2012 om 16:00:26 +0200, schreef Mads Kiilerich:

Quoted 9 lines · Leo Baltus
Quoted 6 lines

Hi,

I just tested with grub2-1.99-13 (fedora16) on an md-device with raid- level 'linear'.

On grub2-install is says:

Exactly which full command is it that fails?

Im am working from a busybox shell, prepare my disk, mount on /mnt, polulate it with rsync, bind mount dev on it and do

chroot /mnt grub2-install /dev/sda

Quoted 3 lines

What do you have in /boot/grub2/device.map?

I'm not using a device.map

Quoted 8 lines
Quoted 7 lines

error: unsupported RAID level: -1. /sbin/grub2-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed.

Is this really unsupported?

Signature · 4 lines
Leo Baltus, internetbeheerder                         /\
NPO ICT Internet Services                            /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \  /\/
[email protected], 035-6773555                         \/
#3 lore raw

Hi,

I believe it only support raid level 0/1/4/5/6/10. It's easy to add linear support, but i guess grub2 is currently in frozen state so you might need to wait a bit.

Quoted 40 lines · Leo Baltus

Op 23/04/2012 om 16:00:26 +0200, schreef Mads Kiilerich:

Quoted 9 lines · Leo Baltus
Quoted 6 lines

Hi,

I just tested with grub2-1.99-13 (fedora16) on an md-device with raid- level 'linear'.

On grub2-install is says:

Exactly which full command is it that fails?

Im am working from a busybox shell, prepare my disk, mount on /mnt, polulate it with rsync, bind mount dev on it and do

       chroot /mnt grub2-install /dev/sda

Quoted 3 lines

What do you have in /boot/grub2/device.map?

I'm not using a device.map

Quoted 8 lines
Quoted 7 lines

error: unsupported RAID level: -1. /sbin/grub2-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed.

Is this really unsupported?

--
Leo Baltus, internetbeheerder                         /\
NPO ICT Internet Services                            /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \  /\/ [email protected], 035-6773555                         \/

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Best wishes
Bean
#4 lore raw
Quoted 5 lines · Bean

Hi,

I believe it only support raid level 0/1/4/5/6/10. It's easy to add linear support, but i guess grub2 is currently in frozen state so you might need to wait a bit.

It depends on the kind of the problem. If it's just small probe issue (like I suppose given that mdraid1x_linux.c has code to alias -1 to 0) then it can be fixed before 2.00. If it's something more serious it will have to wait.

Quoted 38 lines
Quoted 33 lines · Leo Baltus

Op 23/04/2012 om 16:00:26 +0200, schreef Mads Kiilerich:

Quoted 8 lines · Leo Baltus
Quoted 6 lines

Hi,

I just tested with grub2-1.99-13 (fedora16) on an md-device with raid- level 'linear'.

On grub2-install is says:

Exactly which full command is it that fails?

Im am working from a busybox shell, prepare my disk, mount on /mnt, polulate it with rsync, bind mount dev on it and do

chroot /mnt grub2-install /dev/sda

Quoted 2 lines

What do you have in /boot/grub2/device.map?

I'm not using a device.map

Quoted 6 lines
Quoted 6 lines

error: unsupported RAID level: -1. /sbin/grub2-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed.

Is this really unsupported?

--
Leo Baltus, internetbeheerder /\
NPO ICT Internet Services /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \ /\/
[email protected], 035-6773555 \/

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#5 lore raw
Quoted 10 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 5 lines · Bean

Hi,

I believe it only support raid level 0/1/4/5/6/10. It's easy to add linear support, but i guess grub2 is currently in frozen state so you might need to wait a bit.

It depends on the kind of the problem. If it's just small probe issue (like I suppose given that mdraid1x_linux.c has code to alias -1 to 0) then it can be fixed before 2.00. If it's something more serious it will have to wait.

I've confused -4 and -1. Supporting linear would need some non-trivial changes to grub_diskfilter_make_raid even though diskfilter supports such a config. So it's post-2.00 stuff. Meanwhile I recommend using LVM.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
author
#6 lore raw
In reply to Bean

Op 23/04/2012 om 23:02:45 +0800, schreef Bean:

Quoted 3 lines

I believe it only support raid level 0/1/4/5/6/10. It's easy to add linear support, but i guess grub2 is currently in frozen state so you might need to wait a bit.

Thanks, I'll wait.

Quoted 33 lines
Quoted 30 lines · Leo Baltus

Op 23/04/2012 om 16:00:26 +0200, schreef Mads Kiilerich:

Quoted 9 lines · Leo Baltus
Quoted 6 lines

Hi,

I just tested with grub2-1.99-13 (fedora16) on an md-device with raid- level 'linear'.

On grub2-install is says:

Exactly which full command is it that fails?

Im am working from a busybox shell, prepare my disk, mount on /mnt, polulate it with rsync, bind mount dev on it and do

       chroot /mnt grub2-install /dev/sda

Quoted 3 lines

What do you have in /boot/grub2/device.map?

I'm not using a device.map

Quoted 8 lines
Quoted 7 lines

error: unsupported RAID level: -1. /sbin/grub2-probe: error: no such disk. Auto-detection of a filesystem of /dev/md0 failed.

Is this really unsupported?

Signature · 4 lines
Leo Baltus, internetbeheerder                         /\
NPO ICT Internet Services                            /NPO/\
Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \  /\/
[email protected], 035-6773555                         \/