User Tools

Site Tools


cluster:146

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cluster:146 [2016/02/10 13:39]
hmeij [OpenLAVA 3.1.2.]
cluster:146 [2017/08/29 09:36] (current)
hmeij07
Line 2: Line 2:
 **[[cluster:0|Back]]** **[[cluster:0|Back]]**
  
-==== OpenLAVA 3.1.2====+==== Openlava 3.1.2 ====
  
 Build process, switching to ''git'' approach. Build process, switching to ''git'' approach.
Line 9: Line 9:
  
   * yum install git   * yum install git
-  * yum install rpmdev-setuptree 
   * yum install rpm-build   * yum install rpm-build
   * yum install rpmdevtools   * yum install rpmdevtools
   * yum install tcl tcl-devel   * yum install tcl tcl-devel
 +  * yum install ncurses ncurses-devel
 +  * yum install automake libtool
  
 <code> <code>
Line 26: Line 27:
  
 # what's new # what's new
- 1721  git log+git log
  
 # pull Dave's addition of rpm.sh # pull Dave's addition of rpm.sh
- 1723  git checkout 07f740f884d9c71d+git checkout 07f740f884d9c71d
  
 # build # build
Line 38: Line 39:
 # build packages # build packages
 ./rpm.sh ./rpm.sh
-ls -lR /root/rpmbuild/+find/root/rpmbuild/ -name *.rpm
  
 </code> </code>
 +
 +Next we remove a queue and its compute nodes from the current openlava configuration and restart those services.  Then we configure the new openlava config files. Once we have a few nodes up and one claims to be the master we do a manual install until we have enough to build a script. For my memory sake...
 +
 +<code>
 +
 +#!/bin/bash
 +
 +cd /share/apps/src/petaltail6/openlava3/
 +
 +service openlava stop
 +chkconfig openlava off
 +
 +# remove and clean, use rpm -ql list too
 +yum erase openlava -y --disablerepo=*
 +rm -rf /opt/openlava-2.2*
 +rm -rf /var/spool/mail/openlava
 +# not needed # ./openlava-2.2.rmpql
 +# still there # grep openlava /etc/passwd
 +
 +foo=`rpm -qa | grep tcl-devel | wc -l`
 +if [ $foo -eq 1 ]; then
 +        echo "tcl-devel installed"
 +else
 +        echo "tcl-devel installing"
 +        yum localinstall --nogpgcheck -y tcl-devel-8.5.7-6.el6.x86_64.rpm
 +fi
 +
 +yum localinstall --disablerepo=* --nogpgcheck -y ./rpmbuild6_jan16/RPMS/x86_64/openlava-3.1-1.x86_64.rpm
 +scp /etc/init.d/openlava /etc/init.d/openlava-orig
 +scp ./openlava.ulimit /etc/init.d/openlava
 +scp /share/apps/scripts/elim.gpu /opt/openlava-3.1/sbin/elim
 +
 +foo=`grep 'ulimit -l' /etc/pam.d/sshd | wc -l`
 +if [ $foo -eq 1 ]; then
 +        echo "ulimit code present in /etc/pam.d/sshd"
 +else
 +        echo "ulimit code added to /etc/pam.d/sshd"
 +        echo -e "# for ulimit -l -hmeij\nsession    required     pam_limits.so\n" >> /etc/pam.d/sshd
 +fi
 +
 +foo=`grep 'libibverbs' /etc/security/limits.conf | wc -l`
 +if [ $foo -eq 1 ]; then
 +        echo "ulimit code present in /etc/security/limits.conf"
 +else
 +        echo "ulimit code added to /etc/security/limits.conf"
 +        echo -e "# added for RLIMIT_MEMLOCK warnings with libibverbs -hmeij\n*                soft    memlock         unlimited\n*                hard    memlock         unlimited\n" >> /etc/security/limits.conf
 +fi
 +
 +scp /etc/postfix/main.cf /etc/postfix/main.cf-orig
 +scp ./etc_postfix_main.cf /etc/postfix/main.cf
 +chkconfig postfix on
 +
 +chkconfig openlava --list
 +chkconfig postfix --list
 +
 +#etc
 +mv /opt/openlava-3.1/etc /opt/openlava-3.1/etc-orig
 +scp -r ./etc /opt/openlava-3.1/
 +
 +#last for usage reporting
 +ln -s /opt/openlava-3.1 /opt/openlava-2.2
 +chown -R openlava:openlava /opt/openlava-3.1
 +
 +echo reboot
 +reboot
 +
 +</code>
 +
 +and now deploy from command line
 +
 +<code>
 +
 +for i in `seq 4 32`; do echo n$i; ssh n$i /share/apps/src/petaltail6/openlava3/cmd.sh; done
 +
 +</code>
 +
 +During the final roll out, copy the /opt/openlava-2.2/work directory to /opt/openlava-3.1 directory. Remove work/logdir/#lsb.events.lock and all files in work/logdir/info to preserve stats.
 +
  
 \\ \\
 **[[cluster:0|Back]]** **[[cluster:0|Back]]**
  
cluster/146.1455129583.txt.gz ยท Last modified: 2016/02/10 13:39 by hmeij