зеркало из https://github.com/Azure/azurehpc.git
run installer
This commit is contained in:
Родитель
7ca4313a0d
Коммит
1b45982c61
|
@ -2,6 +2,52 @@
|
|||
LSF_DOWNLOAD_DIR=/mnt/resource
|
||||
LSF_INSTALL_DIR=$LSF_DOWNLOAD_DIR/lsf10.1_lsfinstall
|
||||
LSF_INSTALL_CONFIG=$LSF_INSTALL_DIR/lsf.install.config
|
||||
LSF_TOP=/apps/lsf
|
||||
|
||||
# Fill up install configuration file
|
||||
cp $LSF_INSTALL_DIR/install.config $LSF_INSTALL_CONFIG
|
||||
|
||||
echo "Updating install.config"
|
||||
sed -i 's|# LSF_TOP="/usr/share/lsf"|LSF_TOP="'$LSF_TOP'"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_ADMINS="lsfadmin user1 user2"|LSF_ADMINS="hpcadmin"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_CLUSTER_NAME="cluster1"|LSF_CLUSTER_NAME="azurehpc"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_MASTER_LIST="hostm hosta hostc"|LSF_MASTER_LIST="'$(hostname)'"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_ENTITLEMENT_FILE="/usr/share/lsf/lsf_distrib/lsf_std_entitlement.dat"|LSF_ENTITLEMENT_FILE="'$LSF_DOWNLOAD_DIR'/lsf_std_entitlement.dat"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_TARDIR="/usr/share/lsf_distrib/"|LSF_TARDIR="'$LSF_DOWNLOAD_DIR'"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# SILENT_INSTALL="Y"|SILENT_INSTALL="Y"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_SILENT_INSTALL_TARLIST=""|LSF_SILENT_INSTALL_TARLIST="All"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# ACCEPT_LICENSE="N"|ACCEPT_LICENSE="Y"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# ENABLE_EGO="N"|ENABLE_EGO="Y"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# EGO_DAEMON_CONTROL="N"|EGO_DAEMON_CONTROL="Y"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# ENABLE_DYNAMIC_HOSTS="N"|ENABLE_DYNAMIC_HOSTS="Y"|g' $LSF_INSTALL_CONFIG
|
||||
sed -i 's|# LSF_DYNAMIC_HOST_WAIT_TIME="60"|LSF_DYNAMIC_HOST_WAIT_TIME="60"|g' $LSF_INSTALL_CONFIG
|
||||
|
||||
echo "Installing"
|
||||
pushd $LSF_INSTALL_DIR
|
||||
./lsfinstall -f $LSF_INSTALL_CONFIG
|
||||
|
||||
cat Install.err
|
||||
cat Install.log
|
||||
|
||||
echo "Apply patch"
|
||||
pushd $LSF_TOP/10.1
|
||||
tar zxvf $LSF_DOWNLOAD_DIR/lsf10.1_linux2.6-glibc2.3-x86_64-509238.tar.Z
|
||||
|
||||
|
||||
cat << EOF >> /etc/lsf.sudoers
|
||||
LSF_STARTUP_USERS="hpcadmin"
|
||||
LSF_STARTUP_PATH="$LSF_TOP/10.1/linux2.6-glibc2.3-x86_64/etc"
|
||||
EOF
|
||||
|
||||
chmod 0600 /etc/lsf.sudoers
|
||||
|
||||
cat << EOF >> /etc/profile.d/lsf.sh
|
||||
source $LSF_TOP/conf/profile.lsf
|
||||
EOF
|
||||
|
||||
chmod 0644 /etc/profile.d/lsf.sh
|
||||
|
||||
chown -R root:root $LSF_TOP
|
||||
chmod 4755 $LSF_TOP/10.1/linux2.6-glibc2.3-x86_64/bin/lsadmin
|
||||
chmod 4755 $LSF_TOP/10.1/linux2.6-glibc2.3-x86_64/bin/badmin
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче