3d0883d4a8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5767 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
39 lines
1.2 KiB
Bash
Executable File
39 lines
1.2 KiB
Bash
Executable File
#!/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
|
|
|