[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Yaird, grub and d-i should also support dmraid devices.



Alle 13:28, martedì 8 novembre 2005, hai scritto:
> Marco Amadori <marco.amadori@gmail.com> writes:
> > Alle 12:05, martedì 8 novembre 2005, hai scritto:
> >> Marco Amadori <marco.amadori@gmail.com> writes:
> >> > CC:ed also maintainers of grub, dm-raid and d-i for seeing their
> >> > interest in supporting this task and asking this question :
> >>
> >> What are the changes need on grub and grub-install?
> >
> > - Grub needs no change in case of not selecting the option "default
> > saved"; otherwise not supporting device mapper result in an array desync
> > and not be able to load stage 1.5. So grub can be keep alone but we must
> > provide a comment in the default menu.lst, in man grub page or both to
> > tell user about that.
>
> Please, provide a patch with the need doc improvements you think that
> is need and I can apply it on grub.

from grub-0.95+cvs20040624:

diff -urN debian/update-grub.old debian/update-grub
--- debian/update-grub.old      2005-11-08 14:01:55.795602848 +0100
+++ debian/update-grub  2005-11-08 14:02:45.208091008 +0100
@@ -322,7 +322,9 @@
 # the entry number 0 is the default if the command is not used.
 #
 # You can specify 'saved' instead of a number. In this case, the default 
entry
-# is the entry saved with the command 'savedefault'.
+# is the entry saved with the command 'savedefault'.
+# WARNING: If you are using dmraid do not change this entry to 'saved' or 
your
+# array will desync and will not let you boot your system.
 default                0

 ## timeout sec

> > - Grub-install just need a fix to provide grub with these commands (e.g):
> > device (hd0,x) /dev/mapper/<dmraid_name>x+1 [...]

> After we have how to detect to use the dmraid use, we can do ... I
> think the first step is to add support to partman, no?

We discussed here with FransP and SvenL to put the detect before partman.

"dmraid -s -c" returns if the arrays are presents without loading dm-mod, then 
we could pass to partman the resulting $(dmraid -s -c | xargs -n 1 
echo /dev/mapper/\{\}, ) list.

Btw: also udev needs a patch do support dm-raid. As a work around I had put in 
the magic inesistent /etc/udev/links.conf some lines to create the devices 
beacause dmraid creates them in the yaird initramfs, but udev did not 
provides them, I think 'cause of dmraid unfinished sysfs interface.

I put this bad hack here if some user will need it meanwhile we fix all the 
tools, so if you need udev and are using dmraid maybe you will need like I 
had to , these lines in /etc/udev/links.conf at bottom:

D mapper
M mapper/control     c 10 63
M mapper/nvidia_jbdaccab 	b 254 0
M mapper/nvidia_jbdaccab1 	b 254 1
M mapper/nvidia_jbdaccab2 	b 254 2
M mapper/nvidia_jbdaccab5 	b 254 3
M mapper/nvidia_jbdaccab6 	b 254 4
M mapper/nvidia_jbdaccab7 	b 254 5

I hope dmraid will provide a right sysfs interface soon so automagically all 
tools (evms, lvm, grub-install and others. yaird should saved a subroutine or 
two beacuse of this) will support it.

CC:ed Marco d'Itri and upstream dmraid author to ack. I'm not asking anything 
about udev, just to let Marco know.
-- 
ESC:wq



Reply to: