diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/docs/index.html b/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/docs/index.html new file mode 100644 index 000000000..be391b859 --- /dev/null +++ b/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/docs/index.html @@ -0,0 +1,9 @@ + + +PE RTE Documentation + + +Redirecting to: +http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/topic/com.ibm.cluster.pe.doc/pebooks.html + + diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/scripts/pperte_postboot b/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/scripts/pperte_postboot new file mode 100644 index 000000000..54c01a009 --- /dev/null +++ b/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/scripts/pperte_postboot @@ -0,0 +1,40 @@ +#!/bin/sh +# +# +# For Linux: +# - Generate mpi modules +# - Generate and store checkpoint key +# - BSR support configuration + +# Generate mpi modules + gen_xlf=`grep PE_LATEST_LEVEL /etc/ppe.cfg | cut -f2 -d ' ' `/mpich2/sbin/xlf_gen_mpimod + if [ -x $gen_xlf ] ; then + $gen_xlf + fi + +if [ ! -z "$NODESETSTATE" ]; then + if [ "$NODESETSTATE" != "netboot" ] || [ "$NODESETSTATE" != "statelite" ]; then + /sbin/srcmstr & + stopsrc -s pnsd + startsrc -s pnsd + fi +fi + +#Generate checkpoint key and store it into the image, ckpt script could ust it after boot. +# KEY=$(dd if=/dev/random count=1 2>/dev/null | sha1sum | awk '{print $1}') +# echo $KEY > /root/.ckpt.key +# chmod 400 /root/.ckpt.key +# + +# BSR configuration, uncomment the following lines to enable BSR configuration on Power Linux cluster. +# groupadd bsr +# mkdir -p /var/lib/bsr +# chown root:bsr /var/lib/bsr +# chmod g+sw /var/lib/bsr + + +# pelinks script support, uncomment the following lines and change to the correct pe version that you intend to use. +#PE_VERSION=1202 +# if [ -f "/proc/cmdline" ]; then +# MP_CONFIG=$PE_VERSION /opt/ibmhpc/pe$PE_VERSION/ppe.poe/bin/pelinks +# fi diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/scripts/pperte_postinstall b/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/scripts/pperte_postinstall new file mode 100644 index 000000000..01e305926 --- /dev/null +++ b/xCAT-buildkit/share/xcat/kits/kit_build/ppe/partial-pperte-1.3.0.2-x86_64/scripts/pperte_postinstall @@ -0,0 +1,70 @@ +#!/bin/sh +# +# +# For Linux: +# - Create a smaller PNSD log file in /tmp +# - Configure poe.limits file +# - Generate and store checkpoint key +# - BSR support configuration + +# Configure the PNSD.cfg to use a smaller log so it doesn't use so much memory +# for a stateless image. Normally, pnsd creates this file if it does not +# exist, but it will not fill it in if it does exist. +if [ ! -f /etc/PNSD.cfg ]; then + echo "log_file = /tmp/serverlog" > /etc/PNSD.cfg + echo "log_file_size = 2097152" >> /etc/PNSD.cfg + echo "socket_file = /tmp/PNSD" >> /etc/PNSD.cfg +else + /bin/sed -i 's/log_file_size = .*/log_file_size = 2097152/g' /etc/PNSD.cfg + if [ -f "/proc/cmdline" ]; then + stopsrc -s pnsd + startsrc -s pnsd + fi +fi + +# Configure the poe.limits file +if [ ! -f /etc/poe.limits ]; then + echo "MP_POE_LAUNCH=all" > /etc/poe.limits +else + /bin/sed -i 's/MP_POE_LAUNCH=.*/MP_POE_LAUNCH=all/g' /etc/poe.limits +fi + + +# POE requires rsh to be running + /bin/sed -i 's/disable.*/disable = no/g' /etc/xinetd.d/rsh + if [ -f "/proc/cmdline" ]; then + chkconfig xinetd on + service xinetd restart + fi + +#max locked memory +if ! grep "max locked memory" /etc/security/limits.conf >/dev/null 2>&1 ; then + sed -i "/# End of file/d" /etc/security/limits.conf + echo "#max locked memory" >> /etc/security/limits.conf + echo "* soft memlock unlimited" >> /etc/security/limits.conf + echo "* hard memlock unlimited" >> /etc/security/limits.conf + echo "# End of file" >> /etc/security/limits.conf +fi + +#max nofile configuration +if ! grep "max nofile" /etc/security/limits.conf >/dev/null 2>&1 ; then + sed -i "/# End of file/d" /etc/security/limits.conf + echo "#max nofile" >> /etc/security/limits.conf + echo "* soft nofile 4096" >> /etc/security/limits.conf + echo "* hard nofile 4096" >> /etc/security/limits.conf + echo "# End of file" >> /etc/security/limits.conf +fi + +# several sysctl parameters. +if ! grep "ppe rte sysctl parameters" /etc/sysctl.conf >/dev/null 2>&1 ; then + echo "#ppe rte sysctl parameters" >> /etc/sysctl.conf + echo "net.core.wmem_max = 1048576" >> /etc/sysctl.conf + echo "net.core.rmem_max = 8388608" >> /etc/sysctl.conf + echo "net.ipv4.ipfrag_low_thresh = 1048576" >> /etc/sysctl.conf + echo "net.ipv4.ipfrag_high_thresh = 8388608" >> /etc/sysctl.conf +fi + +if [ -f "/proc/cmdline" ]; then + /sbin/sysctl -p +fi +