From: Marc G. <gr...@at...> - 2007-10-11 08:24:04
|
On Thursday 11 October 2007 10:10:42 Gordan Bobic wrote: > On Thu, 11 Oct 2007, Marc Grimme wrote: > >> I have iscsi loading and letting me see the relevant shares. I can mount > >> them. But how do I then remount root to a GFS share on iSCSI? > >> > >> I tried: > >> > >> mount -t gfs -o lockproto=lock_nolock,remount /dev/sdb2 / > > > > Normally the bootimage itself should take over the mounting. You should > > not bother with it. I don't know if you can easily remout a gfs with > > changing the lockproto. So as you don't get any errors and it didn't do > > anything it does not work. > > > > But again, normally the initrd mounts the gfs filesystem you specified > > within you cluster.conf. We didn't test with raw-devices we are always > > using LVM/CLVM lvs for doing the mount. > > I'm not convinced the problem is in the lack of (C)LVM. Me either and I didn't say so. I just more or less said it is best practice to use (C)LVM and yes it is not required. But we don't test without so I don't know if it really works although it should. > > > So when the initrd gets the iscsi disk as scsi-disk all the rest should > > be done automatically. > > Where is the template startup script for the initrd? A few things require > a bit of manual intervention, because for some reason iscsid doesn't > trigger loading of iscsi_tcp module which is required _before_ iscsid > loads. linuxrc.generic.sh is the main init-script. > > And, obviously, I'd need to make all this happen before the normal boot > process tries to mount the root disk. Do it before or right after scsi-start is called. > > Or will specifying the iscsi stuff in cluster.conf make all this work? > Given that the iscsi components weren't in the standard initrd, I'm not > too convinced this will work (although there's a distinct possibility that > this is totally unrelated and irrelevant in this case). Yes I agree. Make it work for you and we'll integrate it so it'll only be called if iscsi is selected. > > > To test it switch on com-step and break where scsi is detected. Setup you > > iscsi stuff and exit and let the initrd init process do the rest. > > That should work. > > OK. Where is the initrd init script? linuxrc.generic.sh. Marc -- Gruss / Regards, Marc Grimme Phone: +49-89 452 3538-14 http://www.atix.de/ http://www.open-sharedroot.org/ ** Visit us at LinuxWorld Conference & Expo 31.10. - 01.11.2007 in Jaarbeurs Utrecht - The Netherlands ATIX stand: Hall 9 / B 005 ** ATIX Informationstechnologie und Consulting AG Einsteinstr. 10 85716 Unterschleissheim Deutschland/Germany Phone: +49-89 452 3538-0 Fax: +49-89 990 1766-0 Registergericht: Amtsgericht Muenchen Registernummer: HRB 168930 USt.-Id.: DE209485962 Vorstand: Marc Grimme, Mark Hlawatschek, Thomas Merz (Vors.) Vorsitzender des Aufsichtsrats: Dr. Martin Buss |