# /etc/init.d/iptables stop
# chkconfig iptables off # chkconfig --list iptables iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
SELINUX=disabled
/etc/init.d/network restart
Port 22 Protocol 2,1
/etc/init.d/sshd restart
LANG="en_US.eucJP" SYSFONT="none"
# halt
# yum -y install binutils gcc gcc-c++ compat-gcc-34-g77 httpd php samba samba-client # yum -y install squashfs-tools patch mkisofs
# useradd -u 600 sgeadmin # passwd sgeadmin
# mkdir /home/sgeadmin/sge # chown sgeadmin:sgeadmin /home/sgeadmin/sge
sge_qmaster 536/tcp # SGE sge_execd 537/tcp # SGE
ALL:ALL
ALL:ALL
/home/sgeadmin/sge *(rw,no_root_squash,sync) /tmp *(rw,no_root_squash,sync)
# exportfs -a
# /etc/init.d/nfs start # chkconfig nfs on
# wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/DNSmasq/dnsmasq-2.33-1.rh9.rf.i386.rpm
# rpm -ihv dnsmasq-2.33-1.rh9.rf.i386.rpm
127.0.0.1 localhost.localdomain localhost 172.16.0.45 okkun-lab.rd.fukuoka-u.ac.jp okkun-lab 現在のIP sge000.1cd-network sge000 192.168.0.1 sge001.1cd-network sge001 192.168.0.1 sge002.1cd-network sge002 …… 192.168.0.1 sge999.1cd-network sge999
# chmod 755 ./create-hosts-dummy.sh # ./create-hosts-dummy.sh [現在のIPアドレス]
search 1cd-network nameserver 現在のIP
# /etc/init.d/dnsmasq start
# hostname sge000.1cd-network
# su - sgeadmin $ cd /home/sgeadmin/sge $ wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/SGE/sge-6.0u8-common.tar.tar $ wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/SGE/sge-6.0u8-bin-lx24-x86.tar.tar
$ tar zxvf sge-6.0u8-common.tar.tar $ tar zxvf sge-6.0u8-bin-lx24-x86.tar.tar
# cd /home/sgeadmin/sge/ # wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/SGE_inst/admin_install.conf # ./inst_sge -m -auto /home/sgeadmin/sge/admin_install.conf
# su - sgeadmin $ . /home/sgeadmin/sge/default/common/settings.sh
. /home/sgeadmin/sge/default/common/settings.sh
# su - sgeadmin $ qconf -ah sge001.1cd-network $ qconf -ah sge002.1cd-network ……
# su - sgeadmin $ wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/1CD_SGE/linux_setup/qconf-entry.sh $ chmod 755 qconf-entry.sh $ ./qconf-entry.sh
# su - sgeadmin $ wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/mpich/mpich.tar.gz $ tar zxvf mpich.tar.gz
$ cd mpich-1.2.7p1/ $ ./configure -prefix=/home/sgeadmin/sge/share/mpich $ make
# su - # cd /home/sgeadmin/mpich-1.2.7p1/ # make install
#!/bin/sh export PATH=/home/sgeadmin/sge/share/mpich/bin:$PATH
# chmod 755 /etc/profile.d/mpich.sh
# su - sgeadmin $ cp /home/sgeadmin/sge/mpi/mpich.template /home/sgeadmin/ $ vi /home/sgeadmin/mpich.template
pe_name mpich slots 1000 user_lists NONE xuser_lists NONE start_proc_args /home/sgeadmin/sge/mpi/startmpi.sh -catch_rsh $pe_hostfile stop_proc_args /home/sgeadmin/sge/mpi/stopmpi.sh allocation_rule $round_robin control_slaves TRUE job_is_first_task FALSE urgency_slots min
$ qconf -Ap mpich.template sgeadmin@cap-sge00.rd.fukuoka-u.ac.jp added "mpich" to parallel environment list
$ qconf -spl mpich
$ qconf -mq all.q
pe_list make mpich
shell /bin/bash
# su - sgeadmin $ mkdir -p /home/sgeadmin/sge/himeno/src $ mkdir -p /home/sgeadmin/sge/himeno/result/output $ mkdir -p /home/sgeadmin/sge/himeno/result/error
$ wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/himeno/f77_xp_mpi.zip
$ unzip f77_xp_mpi.zip $ mv f77_xp_mpi/* /home/sgeadmin/sge/himeno/src/
$ chmod 755 /home/sgeadmin/sge/himeno/src/paramset.sh
# wget http://okkun-lab.rd.fukuoka-u.ac.jp/wiki/up/SGE/1CD_SGE/1cd-tools/1cd-admin-tools-src.tar.gz # tar zxvf 1cd-admin-tools-src.tar.gz # cd 1cd-admin-tools-src # ./make
#!/bin/sh # set SGE argument #$ -N himenoBMT_Job #$ -pe mpich <<<WORK_HOST_NUM>>> #$ -o $SGE_ROOT/himeno/result/output #$ -e $SGE_ROOT/himeno/result/error # set $TMPDIR path export PATH=$TMPDIR:$PATH # execute MPICH Binary $SGE_ROOT/share/mpich/bin/mpirun -np $NSLOTS -machinefile $TMPDIR/machines \ $SGE_ROOT/himeno/src/himenoBMT
#======================================= # グローバル環境設定 #======================================= [global] #================================ # 共通設定 #================================ dos charset = CP932 unix charset = EUCJP-MS display charset = EUCJP-MS log level = 1 log file = /var/log/samba/smbd.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 encrypt passwords = Yes update encrypted = Yes #================================ # サーバ固有の設定 #================================ workgroup = EDEN server string = 1CD-Linux with Samba security = USER password level = 16 username level = 16 smb passwd file = /etc/samba/smbpasswd username map = /etc/samba/smbusers create mode = 0644 #======================================= # 共有ディレクトリ #======================================= [SGE_ROOT] path = /home/sgeadmin/sge comment = 1CD-Linux SGE_ROOT writable = Yes browseable = Yes valid users = root sgeadmin
smbpasswd -a root smbpasswd -a sgeadmin
New SMB password: Retype new SMB password:
# cat /dev/null > /etc/samba/smbusers
# /etc/rc.d/init.d/smb start
さらに起動時に Samba が立ち上がるように設定する。
# chkconfig smb on