excluding multipath devices using a pre script during kickstart

Nik Lam nlf482n at med.usyd.edu.au
Sat Aug 22 14:59:15 UTC 2009


Just a follow-up on this issue, having received support directly from
Red Hat.

The solution is to make the following modifications to your kickstart
file.

1) If using the "clearpart" directive, append --drives=mapper/mpath0 to
it, e.g.

 clearpart --all --drives=mapper/mpath0

2) For any "part" directives, append --ondisk=mapper/mpath0 to it, e.g. 

 part /boot --fstype ext3 --size=100 --ondisk=mapper/mpath0
 part pv.01 --size=10000 --grow --ondisk=mapper/mapth0





On Fri, 2009-08-14 at 16:22 +1000, Nik Lam wrote:
> Thanks Thomas - that looks promising.
> 
> Do you ever use this LVM-based filtering with a kickstart installation?
> 
> I'm unsure of what point the lvm.conf file would be read during the
> installation process. I might try some experiments, but I'm not too
> hopeful.
> 
> I've noticed there is a multipath option in kickstart, which includes a
> --rule= parameter, but I can't find any documentation of how it's used.
> 
> Regards,
> 
> Nik
> 
> 
> 
> On Thu, 2009-08-13 at 12:18 +0200, Thomas.vonSteiger at swisscom.com wrote:
> > Hi,
> > 
> > Filter for storage devices can be defined in /etc/lvm/lvm.conf.
> > We are install systems only on san storage always on mpath devices. Root filesystem are located on mpath devices for boot.
> > For this we use this filter:
> > 
> > filter = [ "a|/dev/mapper/mpath|", "r|.*|" ]
> > 
> > regards,
> > Thomas
> > 
> > -----Original Message-----
> > From: redhat-install-list-bounces at redhat.com [mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Nik Lam
> > Sent: Thursday, August 13, 2009 8:29 AM
> > To: Redhat-install-list at redhat.com
> > Subject: excluding multipath devices using a pre script during kickstart
> > 
> > Hi,
> > 
> > I'm having trouble using kickstart to install onto an HP BL 465c G1
> > blade that has 2 LUNs presented to it from fibre-channel SAN. The first
> > one is where I want to install the system to, the second one is for use
> > later on.
> > 
> > A manual install from media works fine with no modifications to the
> > system, however the kickstart fails unless we remove all but one of the
> > LUNs presented to the system. This appears to be some kind of bug with
> > kickstart.
> > 
> > Unfortunately we don't have administrative control over the SAN, so it's
> > inconvenient to modify what LUNs are presented to a host for an install
> > (and in an emergency rebuild, we'd have to wait for them).
> > 
> > Can anyone here provide me with clues on how to mask or filter the
> > unneeded multipath devices during the install? I think a pre-script must
> > be the way, but I'm not sure where to start.
> > 
> > Regards,
> > 
> > Nik
> > 
> > 




More information about the Redhat-install-list mailing list