Post Installation Custom Scripts

From Define Wiki
Jump to navigation Jump to search
  • Add scripts to the following location:
/depot/repos/custom_scripts
  • Add/Delete custom script in the Node Group
    If the script in /depot/repos/custom_scrips directory,use on the script name.
    DO NOT include the full path of the script (PCM 2.1, 3.0)

    when delete the associated script, it will also remove the script file in /depot/repos/custome_scripts
    directory. Make a backup first if you do not want to looe the script
  • Sample custom script (*note last line, this ensure this script only runs once)
#!/bin/bash

chkconfig --level 2345 ipmi on
chkconfig --level 2345 blcr on
chkconfig --level 2345 panfs on

service ipmi restart
service blcr restart
service panfs restart

for i in `seq 0 6`
do
        mkdir /stor00${i}
done

chmod 777 /data

yum -y install glibc-devel

mv $0 /etc/rc.kusu.d/firstrun


Manually Install DirectFlow Kernel Module
   rpm -ivh /root/panfs-3.5.1.e-2.6.18.92.WMS.x86_64.rpm # this will confirm installation but will warn about not being configured
   config_panfs -r pan00