All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
       [not found] <4877c76c0912271626y53901c10wec9909f2cc9b264b@mail.gmail.com>
@ 2009-12-28  1:50 ` Lapohos Tibor
  2009-12-28 10:47   ` Felix Zielcke
  2010-01-01 12:24   ` Robert Millan
  0 siblings, 2 replies; 7+ messages in thread
From: Lapohos Tibor @ 2009-12-28  1:50 UTC (permalink / raw)
  To: Michael Evans; +Cc: help-grub, grub-devel

[-- Attachment #1: Type: text/plain, Size: 3992 bytes --]

Thanks for your reply.
 
What the OROM says is that both of my volumes are bootable. 
/dev/md126 corresponds to Volume0, and its first partition (ext4) has the boot flag set.
 
My problem is that I cannot get grub2 installed on the device at all. I did try, as you suggested, to set
 
(hd0) /dev/md126
 
in the  device.map file and then issue
 
> grub-install --modules=raid /dev/md126
 
but I still get the same error message(s):
 
grub-probe: error: no mapping exists for 'md126'
grub-setup: error: no mapping exists for 'md126'
 
What is interesting is that, at the grub shell, I can do
 
grub> probe -l (hd0,1)
 
it returns "OS" which is the label I set for it, so the device can, under certain circumstances, definitely be detected. Nevertheless, grub-install does not seem to behave the same way.
 
Thanks,
Tibor

--- On Sun, 12/27/09, Michael Evans <mjevans1983@gmail.com> wrote:


From: Michael Evans <mjevans1983@gmail.com>
Subject: Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
To: "Lapohos Tibor" <tibor.lapohos@rogers.com>
Cc: help-grub@gnu.org
Date: Sunday, December 27, 2009, 7:26 PM



On Sat, Dec 26, 2009 at 5:33 AM, Lapohos Tibor <tibor.lapohos@rogers.com> wrote:







Hello All,
 
I have 2 SATA disks in an Intel Matrix RAID setup. It contains two volumes, one in RAID1, the other in RAID0 configuration. These I created using the Option ROM of the motherboard,  partitioned using cfdisk, and finally assembled into RAID devices using mdadm v3.0.3. As such, I obtained the following devices:
 
/dev/md127 (the container to which /dev/md/imsm0 is pointing)
/dev/md126 (the RAID1 "Volume0" pointed at by /dev/md/Volume0)
/dev/md126p1 (the first partition intended to serve as the root fs)
/dev/md126p2 (intended for user space)
/dev/md126p3 (intended for swap)
/dev/md125 (the RAID0 "Volume1" pointed at by /dev/md/Volume1)
/dev/md125p1 (intended for user scratch space)
/dev/md125p2 (itended for swap)
 
(the long names came from mdadm v 3.0.3).
 
If I boot from my USB memory stick, and make a stop at the grub shell, I can see all these partitions listed as (hd1) (hd1,[123]), (hd2) and (hd2,[12]), while my USB stick comes up under (hd0) and (hd0,[12]). Therefore, I would dare to say that grub does detect these devices.
 
I tried to install grub 1.97.1 on /dev/md126 by countless ways without success. The command
 
$ grub-install --modules=raid /dev/md126 
 
for example returns the error message
 
$ grub-setup: error: no mapping exists for "md126"
 
The /boot/grub folder got created correctly, but the "device.map" file does not mention any virtual RAID devices. It reads:
 
(hd0) /dev/sda (SATA1)
(hd1) /dev/sdb (SATA2)
(hd2) /dev/sdc (USB flash memory stick)
 
which, by the way, does not resemble what the 
sh: grub> ls
command returns before booting (see the list described before).
 
Do I need to give up using "fake RAID" and turn to pure SW RAID to get the system up and running, or is there a way to install GRUB2 in this configuration?
 
Your help is much appreciated. Thanks ahead,
Tibor
 
_______________________________________________
Help-grub mailing list
Help-grub@gnu.org
http://lists.gnu.org/mailman/listinfo/help-grub

If you -know- that given drives will be in some positions during startup then you can edit the device.map file your self to tell grub where things will be on reboot.

You should only provide the containers; however a very important question exists.  Are you able to select one of those containers as your boot volume within the bios?  If so make it like that and tell grub that the volume is 'hd0' instead of /dev/sda.  Then you can do the usual setup/install and it should work when using that device.map.

-----Inline Attachment Follows-----


_______________________________________________
Help-grub mailing list
Help-grub@gnu.org
http://lists.gnu.org/mailman/listinfo/help-grub

[-- Attachment #2: Type: text/html, Size: 6240 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
  2009-12-28  1:50 ` grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID Lapohos Tibor
@ 2009-12-28 10:47   ` Felix Zielcke
  2010-01-04  4:29     ` Lapohos Tibor
  2010-01-01 12:24   ` Robert Millan
  1 sibling, 1 reply; 7+ messages in thread
From: Felix Zielcke @ 2009-12-28 10:47 UTC (permalink / raw)
  To: The development of GNU GRUB

Am Sonntag, den 27.12.2009, 17:50 -0800 schrieb Lapohos Tibor:
> Thanks for your reply.
>  
> What the OROM says is that both of my volumes are bootable. 
> /dev/md126 corresponds to Volume0, and its first partition (ext4) has
> the boot flag set.
>  
> My problem is that I cannot get grub2 installed on the device at all.
> I did try, as you suggested, to set

You're problem is that you're using metadata 1.x and not the older
default 0.90. Which we don't support yet.

I made a Baazar branch for metadata 1.x support, but it's still broken.
At least RAID != 1.
But I tested RAID 1 only with grub-probe, not actual booting from it.
And it's a bit complicated to get grub-probe working, because the
devicename must macht the name stored in the superblock.
If you want to try it nevertheless:

bzr co http://bzr.savannah.gnu.org/r/grub/people/fzielcke/raid

> (hd0) /dev/md126
>  
> in the  device.map file and then issue
>  
> > grub-install --modules=raid /dev/md126
>  
> but I still get the same error message(s):
>  
> grub-probe: error: no mapping exists for 'md126'
> grub-setup: error: no mapping exists for 'md126'

device.map isn't used at all for mdraid devices.

> What is interesting is that, at the grub shell, I can do
>  
> grub> probe -l (hd0,1)
>  
> it returns "OS" which is the label I set for it, so the device can,
> under certain circumstances, definitely be detected. Nevertheless,
> grub-install does not seem to behave the same way. 

(hdX,Y) devices are normal disk devices though and not the RAID ones.
They're (mdX) and (mdX,Y) so it only works with RAID 1, but only by
using one disk of them.

-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
  2009-12-28  1:50 ` grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID Lapohos Tibor
  2009-12-28 10:47   ` Felix Zielcke
@ 2010-01-01 12:24   ` Robert Millan
  1 sibling, 0 replies; 7+ messages in thread
From: Robert Millan @ 2010-01-01 12:24 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: help-grub, Michael Evans

On Sun, Dec 27, 2009 at 05:50:35PM -0800, Lapohos Tibor wrote:
> > grub-install --modules=raid /dev/md126

You're not supposed to force addition of raid.mod.  If it wasn't auto-detected,
it means there is a problem somewhere.  Working around it just makes GRUB fail
later on in a more unpleasant way ;-)

-- 
Robert Millan

  "Be the change you want to see in the world" -- Gandhi



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
  2009-12-28 10:47   ` Felix Zielcke
@ 2010-01-04  4:29     ` Lapohos Tibor
  2010-01-04  9:23       ` Felix Zielcke
  0 siblings, 1 reply; 7+ messages in thread
From: Lapohos Tibor @ 2010-01-04  4:29 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 1856 bytes --]

Thanks for your help. Please see my further questions below.

--- On Mon, 12/28/09, Felix Zielcke <fzielcke@z-51.de> wrote:


From: Felix Zielcke fzielcke@z-51.de


You're problem is that you're using metadata 1.x and not the older
default 0.90. Which we don't support yet.
 
In my understanding the superblock of the container has "imsm" metadata, which is different from the v0.9x and v1.x versions. Please take a look at the outputs obtained by
> mdadm -D /dev/md12[765]
attached to this message. 
 
Based on your input, I cannot make this work, right?


I made a Baazar branch for metadata 1.x support, but it's still broken.
At least RAID != 1.
 
So it works for RAID 1, and it is "broken" for the other RAID levels?


But I tested RAID 1 only with grub-probe, not actual booting from it.
And it's a bit complicated to get grub-probe working, because the
devicename must macht the name stored in the superblock.
 
Would I need to be able to achieve all this as I am assembling the RAID devices?


If you want to try it nevertheless:

bzr co http://bzr.savannah.gnu.org/r/grub/people/fzielcke/raid


Thanks, I'll give it a shot once I get a better grasp of what I'm doing.


device.map isn't used at all for mdraid devices.

But my device is not "mdraid" type device, is it? The kernel does not detect it as it loads and starts running. The "mdraid" devices would be formed of "fd" type partitions, would they not?

 

(hdX,Y) devices are normal disk devices though and not the RAID ones.
They're (mdX) and (mdX,Y) so it only works with RAID 1, but only by
using one disk of them.
 
OK, I understand this. But then I must ask, how come the grub shell (got into by booting from a usb key) lists (hdX,Y) devices for all these "imsm" contained devices and partitions?
 
Thanks again for your help,
Tibor

[-- Attachment #2: Type: text/html, Size: 3499 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
@ 2010-01-04  4:31 Lapohos Tibor
  0 siblings, 0 replies; 7+ messages in thread
From: Lapohos Tibor @ 2010-01-04  4:31 UTC (permalink / raw)
  To: The development of GNU GRUB


[-- Attachment #1.1: Type: text/plain, Size: 35 bytes --]

.... forgot the files. Sorry,
Tibor

[-- Attachment #1.2: Type: text/html, Size: 197 bytes --]

[-- Attachment #2: dev_md127.txt --]
[-- Type: text/plain, Size: 322 bytes --]

/dev/md127:
        Version : imsm
     Raid Level : container
  Total Devices : 2

Working Devices : 2


           UUID : 46a4fc60:21554de1:1edfad0f:c137ddac
  Member Arrays :

    Number   Major   Minor   RaidDevice

       0       8        0        -        /dev/sda
       1       8       16        -        /dev/sdb

[-- Attachment #3: dev_md127-E.txt --]
[-- Type: text/plain, Size: 1375 bytes --]

/dev/md127:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.2.00
    Orig Family : ad1392bb
         Family : ad1392bb
     Generation : 00000416
           UUID : 46a4fc60:21554de1:1edfad0f:c137ddac
       Checksum : 0ef04636 correct
    MPB Sectors : 2
          Disks : 2
   RAID Devices : 2

  Disk00 Serial : 9VS2AA7M
          State : active
             Id : 00000000
    Usable Size : 2930272654 (1397.26 GiB 1500.30 GB)

[Volume0]:
           UUID : b529e4d6:1fb537aa:d00ddcab:46e37a3a
     RAID Level : 1
        Members : 2
      This Slot : 0
     Array Size : 2516582400 (1200.00 GiB 1288.49 GB)
   Per Dev Size : 2516582664 (1200.00 GiB 1288.49 GB)
  Sector Offset : 0
    Num Stripes : 9830400
     Chunk Size : 64 KiB
       Reserved : 0
  Migrate State : idle
      Map State : normal
    Dirty State : clean

[Volume1]:
           UUID : 698e9b84:a0b0e739:ee4539a3:bfd5d41f
     RAID Level : 0
        Members : 2
      This Slot : 0
     Array Size : 827369472 (394.52 GiB 423.61 GB)
   Per Dev Size : 413685000 (197.26 GiB 211.81 GB)
  Sector Offset : 2516586760
    Num Stripes : 1615956
     Chunk Size : 128 KiB
       Reserved : 0
  Migrate State : idle
      Map State : normal
    Dirty State : clean

  Disk01 Serial : 9VS29VK5
          State : active
             Id : 00010000
    Usable Size : 2930272654 (1397.26 GiB 1500.30 GB)

[-- Attachment #4: dev_md126.txt --]
[-- Type: text/plain, Size: 689 bytes --]

/dev/md126:
      Container : /dev/md/imsm0, member 0
     Raid Level : raid1
     Array Size : 1258291200 (1200.00 GiB 1288.49 GB)
  Used Dev Size : 1258291332 (1200.00 GiB 1288.49 GB)
   Raid Devices : 2
  Total Devices : 2

    Update Time : Sun Jan  3 22:33:57 2010
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

  Delta Devices : 32594, (-32592->2)
      New Level : -unknown-
  New Chunksize : 0K


           UUID : b529e4d6:1fb537aa:d00ddcab:46e37a3a
    Number   Major   Minor   RaidDevice State
       1       8        0        0      active sync   /dev/sda
       0       8       16        1      active sync   /dev/sdb

[-- Attachment #5: dev_md125.txt --]
[-- Type: text/plain, Size: 613 bytes --]

/dev/md125:
      Container : /dev/md/imsm0, member 1
     Raid Level : raid0
     Array Size : 413684736 (394.52 GiB 423.61 GB)
   Raid Devices : 2
  Total Devices : 2

          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

     Chunk Size : 128K

  Delta Devices : 32532, (-32530->2)
      New Level : -unknown-
  New Chunksize : 0K


           UUID : 698e9b84:a0b0e739:ee4539a3:bfd5d41f
    Number   Major   Minor   RaidDevice State
       1       8        0        0      active sync   /dev/sda
       0       8       16        1      active sync   /dev/sdb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
  2010-01-04  4:29     ` Lapohos Tibor
@ 2010-01-04  9:23       ` Felix Zielcke
  2010-01-05 16:18         ` Lapohos Tibor
  0 siblings, 1 reply; 7+ messages in thread
From: Felix Zielcke @ 2010-01-04  9:23 UTC (permalink / raw)
  To: The development of GNU GRUB

Please use proper quoting. It doestn't make it easier to read if your
answer is directly below my sentences without any special quoting.

Am Sonntag, den 03.01.2010, 20:29 -0800 schrieb Lapohos Tibor:
> 
> Thanks for your help. Please see my further questions below.

>  
> Based on your input, I cannot make this work, right?
> 

No.
Probable we could implement support for the newly added metadata
formats, but that's IMO very very low priority.
The normal ones are more important, especially now that 1.1 became the
default instead of 0.90.

> I made a Baazar branch for metadata 1.x support, but it's still
> broken.
> At least RAID != 1.
>  
> So it works for RAID 1, and it is "broken" for the other RAID levels?

It seems so. I haven't found out why exactly yet.

> But I tested RAID 1 only with grub-probe, not actual booting from it.
> And it's a bit complicated to get grub-probe working, because the
> devicename must macht the name stored in the superblock.
>  
> Would I need to be able to achieve all this as I am assembling the
> RAID devices?
> 

You can also just rename the device files afterwards, but before you run
grub-install or update-grub/grub-mkconfig.

> If you want to try it nevertheless:
> 
> bzr co http://bzr.savannah.gnu.org/r/grub/people/fzielcke/raid
> 
> 
> Thanks, I'll give it a shot once I get a better grasp of what I'm
> doing.
> 
> 
> device.map isn't used at all for mdraid devices.
> 
> But my device is not "mdraid" type device, is it? The kernel does not
> detect it as it loads and starts running. The "mdraid" devices would
> be formed of "fd" type partitions, would they not?
> 

No. mdraid devices can have any partition type you want. As with any
Linux filesystem etc. pp.
fd has only the special meaning that Linux autoassembles them. But the
prefered method is to let mdadm inside the initrd/initramfs handle it.
And then it doestn't matter at all what partition type you use.

/dev/mdXXX and /dev/md/XXX are all mdraid devices. As long as mdadm -Q
--detail works on it. Doestn't matter what mdraid metadata you use.

> 
> (hdX,Y) devices are normal disk devices though and not the RAID ones.
> They're (mdX) and (mdX,Y) so it only works with RAID 1, but only by
> using one disk of them.
>  
> OK, I understand this. But then I must ask, how come the grub shell
> (got into by booting from a usb key) lists (hdX,Y) devices for all
> these "imsm" contained devices and partitions?

Ok I should have written (hdx,y) devices are normal BIOS devices.

> Thanks again for your help,
> Tibor 
-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
  2010-01-04  9:23       ` Felix Zielcke
@ 2010-01-05 16:18         ` Lapohos Tibor
  0 siblings, 0 replies; 7+ messages in thread
From: Lapohos Tibor @ 2010-01-05 16:18 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 3431 bytes --]

Thanks for the help. I consider this case closed till GRUB reaches that certain development state.
 
I tried a totally different approach, I guess one would call it "GRUB on pure software RAID", and I bumped into a new problem. I'll describe it under a new thread.
 
Thanks again,
Tibor


--- On Mon, 1/4/10, Felix Zielcke <fzielcke@z-51.de> wrote:


From: Felix Zielcke <fzielcke@z-51.de>
Subject: Re: grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID
To: "The development of GNU GRUB" <grub-devel@gnu.org>
Date: Monday, January 4, 2010, 4:23 AM


Please use proper quoting. It doestn't make it easier to read if your
answer is directly below my sentences without any special quoting.

Am Sonntag, den 03.01.2010, 20:29 -0800 schrieb Lapohos Tibor:
> 
> Thanks for your help. Please see my further questions below.

>  
> Based on your input, I cannot make this work, right?
> 

No.
Probable we could implement support for the newly added metadata
formats, but that's IMO very very low priority.
The normal ones are more important, especially now that 1.1 became the
default instead of 0.90.

> I made a Baazar branch for metadata 1.x support, but it's still
> broken.
> At least RAID != 1.
>  
> So it works for RAID 1, and it is "broken" for the other RAID levels?

It seems so. I haven't found out why exactly yet.

> But I tested RAID 1 only with grub-probe, not actual booting from it.
> And it's a bit complicated to get grub-probe working, because the
> devicename must macht the name stored in the superblock.
>  
> Would I need to be able to achieve all this as I am assembling the
> RAID devices?
> 

You can also just rename the device files afterwards, but before you run
grub-install or update-grub/grub-mkconfig.

> If you want to try it nevertheless:
> 
> bzr co http://bzr.savannah.gnu.org/r/grub/people/fzielcke/raid
> 
> 
> Thanks, I'll give it a shot once I get a better grasp of what I'm
> doing.
> 
> 
> device.map isn't used at all for mdraid devices.
> 
> But my device is not "mdraid" type device, is it? The kernel does not
> detect it as it loads and starts running. The "mdraid" devices would
> be formed of "fd" type partitions, would they not?
> 

No. mdraid devices can have any partition type you want. As with any
Linux filesystem etc. pp.
fd has only the special meaning that Linux autoassembles them. But the
prefered method is to let mdadm inside the initrd/initramfs handle it.
And then it doestn't matter at all what partition type you use.

/dev/mdXXX and /dev/md/XXX are all mdraid devices. As long as mdadm -Q
--detail works on it. Doestn't matter what mdraid metadata you use.

> 
> (hdX,Y) devices are normal disk devices though and not the RAID ones.
> They're (mdX) and (mdX,Y) so it only works with RAID 1, but only by
> using one disk of them.
>  
> OK, I understand this. But then I must ask, how come the grub shell
> (got into by booting from a usb key) lists (hdX,Y) devices for all
> these "imsm" contained devices and partitions?

Ok I should have written (hdx,y) devices are normal BIOS devices.

> Thanks again for your help,
> Tibor 
-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

[-- Attachment #2: Type: text/html, Size: 4411 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-05 16:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4877c76c0912271626y53901c10wec9909f2cc9b264b@mail.gmail.com>
2009-12-28  1:50 ` grub-setup: error: no mapping exists for ... in GRUB2 v1.97.1 on fake (IMSM) RAID Lapohos Tibor
2009-12-28 10:47   ` Felix Zielcke
2010-01-04  4:29     ` Lapohos Tibor
2010-01-04  9:23       ` Felix Zielcke
2010-01-05 16:18         ` Lapohos Tibor
2010-01-01 12:24   ` Robert Millan
2010-01-04  4:31 Lapohos Tibor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.