I have some stateful nodes in my cluster that are also attached to SAN
storage.  I have found that when installing the node,
the install process accesses the SAN drives and corrupts them.  I have the
following in the *.tmpl (which came with the xcat install)
file which I thought would eliminate this, but I have not been successful
in my testing:

%pre
#!/bin/sh
# This will remove the loaded HBA modules from the kernel
#modprobe mptsas
#modprobe mptscsih
#modprobe mptbase
#modprobe scsi_transport_sas
remove_qla(){
for i in $(lsmod | grep qla | awk .{print $1.}); do
echo Will remove: $i >> /dev/tty1
rmmod $i
sleep 1
done
}

remove_lpfc(){
for i in $(lsmod | grep lpfc | awk .{print $1.}); do
echo Will remove: $i >> /dev/tty1
rmmod $i
sleep 1
done
}

remove_qla
sleep 2
remove_qla
remove_lpfc
echo "All qla modules removed"
sleep 10
#INCLUDE:../scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#

Linux:  Red Hat Enterprise Linux Server release 6.1 (Santiago)
XCaT: 2.6.8

Any help would be greatly appreciated.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to