IBMhpc support for SLES full-disk installs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5767 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mellor 2010-04-14 03:04:49 +00:00
parent 361180de02
commit 3d0883d4a8
9 changed files with 84 additions and 16 deletions

View File

@ -0,0 +1,28 @@
#!/bin/sh
# Sample postbootscript script for installing and configuring HPC software
# for statefull (full-disk install) nodes
# Make sure this runs after the otherpkgs postbootscript
#
ps_dir=/xcatpost
# Run script to install gpfs updates
$ps_dir/gpfs_updates
# Run script to accept compiler license
$ps_dir/compilers_license
# Run script to install PE and accept license
$ps_dir/pe_install
# Run script to install ESSL and PESSL rpms
$ps_dir/essl_install
# Run script to accept LoadLeveler license, install product rpms,
# and do some config
$ps_dir/loadl_install

View File

@ -0,0 +1,38 @@
#!/bin/sh
# Sample postscript script for base OS configuration for all HPC software
# for statefull (full-disk install) nodes
# Make sure this runs before the node reboots after initial install
# for services to be activated
#
ps_dir=/xcatpost
hpc=/opt/xcat/share/xcat/IBMhpc
otherpkgs=/install/post/otherpkgs/$osver/$arch
chkconfig atd on
chkconfig xinetd on
# Automatically mount /dev/cpuset at node boot
if ! grep 'cpuset' /etc/init.d/boot.local ; then
cat <<END >>/etc/init.d/boot.local
if test -e /dev/cpuset || mkdir -p /dev/cpuset ; then
mount -t cpuset none /dev/cpuset
fi
END
fi
# Modify some ulimits
if [ -f /etc/sysconfig/ulimit ]; then
if [ ! -f /etc/sysconfig/ulimit.XCAT_BAK ]; then
cp -p /etc/sysconfig/ulimit /etc/sysconfig/ulimit.XCAT_BAK
fi
# max locked memory
/usr/bin/sed -i 's/HARDLOCKLIMIT=.*/HARDLOCKLIMIT="unlimited"/g' /etc/sysconfig/ulimit
/usr/bin/sed -i 's/SOFTLOCKLIMIT=.*/SOFTLOCKLIMIT="unlimited"/g' /etc/sysconfig/ulimit
# max memory size
/usr/bin/sed -i 's/HARDRESIDENTLIMIT=.*/HARDRESIDENTLIMIT="unlimited"/g' /etc/sysconfig/ulimit
/usr/bin/sed -i 's/SOFTRESIDENTLIMIT=.*/SOFTRESIDENTLIMIT="unlimited"/g' /etc/sysconfig/ulimit
fi

View File

@ -41,5 +41,3 @@ xorg-x11-libs-32bit
xorg-x11-libX11
xorg-x11-libXext
#NEW_INSTALL_LIST#
src

View File

@ -15,7 +15,7 @@ xlf_script=`find opt/ibmcmp/xlf -name new_install -print`
if [ $OS != "AIX" ]; then
if [ $NODESETSTATE == "install" ]; then
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
# Being run from a stateful install postscript
echo 1 | $vacpp_script
echo 1 | $xlf_script

View File

@ -20,14 +20,14 @@ fi
if [ $OS != "AIX" ]; then
if [ $NODESETSTATE == "install" ]; then
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
# Being run from a stateful install postscript
# Copy rpms directly from the xCAT management node and install
mkdir -p /tmp/essl
rm -f -R /tmp/essl/*
cd /tmp/essl
download_dir=`echo $ESSL_DIR | cut -d '/' -f3-`
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log
rpm -Uvh essl.license*.rpm
install_essl=`find /opt/ibmmath/essl -name install_essl -print`
$install_essl -y -d . -nodocs

View File

@ -29,7 +29,7 @@ INSTALL_DIR='/install'
UPDATES_DIR='post/otherpkgs/gpfs_updates'
if [ $OS != "AIX" ]; then
if [ $NODESETSTATE == "install" ]; then
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
# Being run from a stateful install postscript
# Copy rpms directly from the xCAT management node and install
mkdir -p /tmp/gpfs_updates
@ -37,7 +37,7 @@ if [ $OS != "AIX" ]; then
cd /tmp/gpfs_updates
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$UPDATES_DIR/*.rpm 2> /tmp/wget.log
rpm -Uvh *.rpm
rm -f -R /tmp/gpfs_updates
fi
if [ $NODESETSTATE == "genimage" ]; then

View File

@ -23,15 +23,15 @@ fi
if [ $OS != "AIX" ]; then
if [ $NODESETSTATE == "install" ]; then
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
# Being run from a stateful install postscript
# Copy rpms directly from the xCAT management node and install
mkdir -p /tmp/loadl
rm -f -R /tmp/loadl/*
cd /tmp/loadl
download_dir=`echo $LOADL_DIR | cut -d '/' -f3-`
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log
rpm -Uvh LoadL-resmgr-full-license*.rpm
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log
rpm -Uvh LoadL-full-license*.rpm
$linux_loadl_license_script -c resmgr -y -d .
rm -Rf /tmp/loadl
mkdir /dev/cpuset

View File

@ -1,2 +1,3 @@
pe/src
pe/IBM_pe_license
# All PE packages are installed through the pe_install postinstall script

View File

@ -34,16 +34,17 @@ fi
if [ $OS != "AIX" ]; then
if [ $NODESETSTATE == "install" ]; then
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
# Being run from a stateful install postscript
# Copy rpms directly from the xCAT management node and install
mkdir -p /tmp/pe
rm -f -R /tmp/pe/*
cd /tmp/pe
download_dir=`echo $PE_DIR | cut -d '/' -f3-`
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log
rpm -Uvh IBM_pe_license*.rpm
rpm -Uvh ibm_lapi*.rpm ibm_pe*.rpm ppe_*.rpm *sci_*.rpm
IBM_PE_LICENSE_PROMPT=N /opt/ibmhpc/install/sbin/accept_ppe_license.sh
rpm -Uvh --force ibm_lapi*.rpm ibm_pe*.rpm ppe_*.rpm
cd /
rm -Rf /tmp/pe
fi
@ -64,7 +65,7 @@ if [ $OS != "AIX" ]; then
mkdir -p $installroot/etc/opt/ibmhpc/license
cp -pR /etc/opt/ibmhpc/license/* $installroot/etc/opt/ibmhpc/license
# Install PE product rpms
zypper -R $installroot install $PE_DIR/ibm_lapi*.rpm $PE_DIR/ibm_pe*.rpm $PE_DIR/ppe_*.rpm $PE_DIR/*sci_*.rpm
zypper -R $installroot install $PE_DIR/ibm_lapi*.rpm $PE_DIR/ibm_pe*.rpm $PE_DIR/ppe_*.rpm
else
# For Redhat, etc., assume yum is available on the system running genimage
if [ ! -d /etc/opt/ibmhpc/license ] ; then
@ -78,7 +79,7 @@ if [ $OS != "AIX" ]; then
mkdir -p $installroot/etc/opt/ibmhpc/license
cp -pR /etc/opt/ibmhpc/license/* $installroot/etc/opt/ibmhpc/license
# Install PE product rpms
yum --installroot $installroot --nogpgcheck localupdate $PE_DIR/ibm_lapi*.rpm $PE_DIR/ibm_pe*.rpm $PE_DIR/ppe_*.rpm $PE_DIR/*sci_*.rpm
yum --installroot $installroot --nogpgcheck localupdate $PE_DIR/ibm_lapi*.rpm $PE_DIR/ibm_pe*.rpm $PE_DIR/ppe_*.rpm
fi
fi
fi
@ -106,6 +107,8 @@ fi
# POE requires rsh to be running
/usr/bin/sed -i 's/disable.*/disable = no/g' $installroot/etc/xinetd.d/rsh
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
service xinetd restart
fi