# Post-installation for a Rocks 5.3 or 5.4 Frontend # Note: comsics and anicca are built with Rocks V5.3 #============================================ #Once the frontend node is up and running, configure the following: rocks set appliance attr compute x11 true mkdir /share/apps/configrepo ### replace the *.xml as soon as possible cd /share/apps/configrepo wget http://www2.fizik.usm.my/configrepo/howto/RocksClusters543/replace-partition.xml_noformat_windows wget http://www2.fizik.usm.my/configrepo/howto/RocksClusters543/replace-partition.xml_format_all cp /share/apps/configrepo/replace-partition.xml_format_all /export/rocks/install/site-profiles/5.3/nodes/replace-partition.xml #cp /share/apps/configrepo/replace-partition.xml_noformat_windows /export/rocks/install/site-profiles/5.3/nodes/replace-partition.xml cd /export/rocks/install rocks create distro #cd /boot/grub/ #cp /boot/grub/rocks.conf /boot/grub/rocks.conf.bk #wget http://www2.fizik.usm.my/configrepo/howto/RocksClusters543/rocks.conf #cd /share/apps/configrepo #wget http://www2.fizik.usm.my/configrepo/howto/RocksClusters543/rocks.conf #### /home/tlyoon/repo/configrepo /share/apps tlyoon@www2.fizik.usm.my contains mathematica and also windowsXP scp -r tlyoon@www2.fizik.usm.my:/home/tlyoon/repo/configrepo/* /share/apps/configrepo cd /share/apps/configrepo chmod +x *.sh *.conf *. *.run #For ACER Veriton computers in the computer lab, school of physics, USM, we need to first install ati video card, and reboot # sh /share/apps/configrepo/inst_ati # Populate /etc/yum.repos ## centos, epel, rpmforge, adobe cp /share/apps/configrepo/*.repo /etc/yum.repos.d rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm # Install some necessary application yum install -y gftp.x86_64 ### CENTOS-base yum install -y compat-libstdc++-33.x86_64 compat-libstdc++-33.i386 # copy virtualwindows to VBtemplate and cc one to VBlocal mkdir /share/apps/VBtemplate mv /share/apps/configrepo/windowsXP.vdi /share/apps/VBtemplate mkdir /state/partition1/VBlocal cp /share/apps/VBtemplate/windowsXP.vdi /state/partition1/VBlocal chmod 777 /state/partition1/VBlocal/windowsXP.vdi cd /share/apps/configrepo # install mathematica sh /share/apps/configrepo/mathematica1.conf # install mathematica licence manager wget http://www2.fizik.usm.my/configrepo/addmathlm sh addmathlm ### to activate mathlm, you may need this ### https://user.wolfram.com/portal/login.html;jsessionid=756D06AFBA4DD4209F00CF9B021672A7 ### https://user.wolfram.com/portal/passwordrequest.html ## add human users sh /share/apps/configrepo/addhuman sh /share/apps/configrepo/addusers # Installation of physics software in /share/apps in the frontend # =============================================================== # intel icc, http://www2.fizik.usm.my/configrepo/howto/intel/inst_icc_sa # ifftw, http://www2.fizik.usm.my/configrepo/howto/intel/inst_ifftw_sa # intel ifort, http://www2.fizik.usm.my/configrepo/howto/intel/inst_ifort_sa # intel impi 4.1.0.024, http://www2.fizik.usm.my/configrepo/howto/intel/inst_impi_410024_sa # intel impi 3.2.1.009, http://www2.fizik.usm.my/configrepo/howto/intel/inst_impi_321009_sa # lapack, blas mkdir /share/apps/local/lib cp /usr/lib64/liblapack* /share/apps/local/lib cp /usr/lib64/libblas* /share/apps/local/lib # fftw2, http://www2.fizik.usm.my/configrepo/howto/fftw/inst_fftw215_sa # fftw3, http://www2.fizik.usm.my/configrepo/howto/fftw/inst_fftw312_sa # dftb+, http://www2.fizik.usm.my/configrepo/howto/dftb+/inst_dftb+_sa # lammps, gnu version, http://www2.fizik.usm.my/configrepo/howto/mylammps/lammps_tmpl_5March_12_gnu_sa/inst_lammps_tmpl_5March_12_gnu_sa # lammps,intel version, http://www2.fizik.usm.my/configrepo/howto/mylammps/inst_lammps_tmpl_5March_12_intel_sa # wien2k, http://www2.fizik.usm.my/configrepo/howto/wien2k/ver_140611/inst_wien2k_140611_parallel_sa # gcc http://www2.fizik.usm.my/configrepo/howto/gcc/inst_gcc_sa (note this takes a few hours to complete) # pthbhga cd /share/apps scp tlyoon@www2.fizik.usm.my:repo/ptmbhga/ptmbhga.tar.gz tar -zxvf ptmbhga.tar.gz # ptmbhga_lammps # ptmbhga_dftb+ # ptmbhga_g09 # deMon2k #To install compute nodes: #========================= #Right after the frontend is configured, connect the frontend and all the compute nodes to the LAN switch via their eth0 ports. Of course, assure the power #supply to the LAN switch is ON. In the frontend's terminal, #*********************************************** # insert-ethers #*********************************************** #When prompted, choose `Compute'. Manually slot in a Rocks Cluster installation DVD into the individial PC. They will be detected if the LAN wires are connected properly into the LAN switch via eth0. Warning: insert-ethers ONLY after the command rocks set appliance attr compute x11 true is issed, see line number 1 of this instruction. #Post-installation for Rocks compute nodes #================================================ # Right after all nodes are up and running, the most important thing to do is issue the following rocks run host commands in frontend rocks run host 'cp /boot/grub/rocks.conf /boot/grub/rocks.conf.bk' rocks run host 'cp /share/apps/configrepo/rocks.conf /boot/grub/' # Each node in comsics (ACER) must be installed with ATI diplay driver by manually issuing in each node the following command as root # sh /share/apps/configrepo/inst_ati # populate repos for each nodes rocks run host 'cp /share/apps/configrepo/*.repo /etc/yum.repos.d' rocks run host 'rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL' rocks run host 'wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm' rocks run host 'rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt' rocks run host 'rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm' rocks run host 'rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm' ## Install some necessary packages rocks run host 'nohup yum install -y compat-libstdc++-33.x86_64 compat-libstdc++-33.i386 brasero.x86_64 gftp.x86_64 &' rocks run host 'nohup sh /share/apps/configrepo/afternodereinstall &' #rocks run host 'nohup sh /share/apps/configrepo/inst_virtualbox &' rocks run host 'mkdir /state/partition1/VBlocal/' ### note that cp *.vdi to local hardisk takes a long time, a few hours at least. rocks run host 'nohup cp /share/apps/VBtemplate/windowsXP.vdi /state/partition1/VBlocal/ &' # installation of mathematica has to be done locally; can't do it via rocks run host #sh /share/apps/configrepo/mathematica1.conf