サーバ削除の手順

サーバ削除の手順

qconf -ds m128y
qconf -dh m128y
qconf -mq all.q #m128yを削除する。vimエディタが使用される。
qconf -mhgrp @allhosts #m128yを削除する。vimエディタが使用される。
qconf -de m128y

上で消せない場合、次を試す

HOST_TO_REMOVE=ip-xxx-xx-xx-xx
# first, you need to delete jobs on this host
qdel -f <job id>
# disable the host from queue to avoid any jobs to be allocated to this host
qmod -d all.q@$HOST_TO_REMOVE
# wait for jobs to be finished execution on this host, then kill the execution script
qconf -ke $HOST_TO_REMOVE
# remove it from the cluster, this opens an editor, just remove the lines referring to this host
qconf -mq all.q
# remove it from allhosts group, this also opens an editor, remove lines referring to this host
qconf -mhgrp @allhosts
# remove it from execution host list
qconf -de $HOST_TO_REMOVE
 
#If the host isn't removed then:
#Remove worker's files
rm -rf /opt/sge/default/common/local_conf/$HOST_TO_REMOVE.eu-west-1.compute.internal
rm -rf /opt/sge/default/spool/qmaster/qinstances/all.q/$HOST_TO_REMOVE.eu-west-1.compute.internal
rm -rf /opt/sge/default/spool/qmaster/exec_hosts/$HOST_TO_REMOVE.eu-west-1.compute.internal
#restart sge
/etc/init.d/sgemaster.p6444 restart
ps auxf|grep sge
で出てきたIDをkill
sudo su -
nano /root/auto.suikou.files #m128を削除する

cd /root
./run-setup-user-linux.sh #ユーザ追加と各ユーザの共有フォルダのシンボリックリンクを作成する

su - suikou
ssh m768
source /suikou/tool/ge6.2u6/default/common/settings.sh
for i in `qhost|tail -n+4|cut -f 1 -d " "`; do echo $i; ssh $i sudo cp /root/auto.suikou.files /etc/auto.suikou.files; ssh $i sudo systemctl restart autofs & done

ssh -l root suikouvm.s #password: suikou
cp /root/auto.suikou.files /etc/auto.suikou.files
systemctl restart autofs
ls /home/user1/files/
#samba共有へ追加(例としてm128yを削除する場合)
rm /samba/share/m128y
exit

http://suikou.fs.a.u-tokyo.ac.jp:7080/ にuser:admin, pass: suikou311で接続し、 File Stationを開いて、リモートフォルダの中の該当サーバのフォルダを右クリック→アンマウント、その後「NAS」の中の該当サーバのフォルダを右クリック→削除で消す。

内部dns登録を参照して、該当サーバの記述を削除する。

サーバのipアドレスとホスト名の対応表の記述を編集する。

  • サーバ削除の手順.1618322421.txt.gz
  • 最終更新: 2021/04/13 14:00
  • by 118.240.79.152