サーバ削除の手順

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
サーバ削除の手順 [2021/04/13 14:00] – [synology NASからマウント解除] 118.240.79.152サーバ削除の手順 [Unknown date] (現在) – 削除 - 外部編集 (Unknown date) 127.0.0.1
行 1: 行 1:
-# サーバ削除の手順 
  
-## グリッドエンジンからの削除 
- 
-``` 
-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 
-``` 
- 
-## synology NASからマウント解除 
- 
-http://suikou.fs.a.u-tokyo.ac.jp:7080/ にuser:admin, pass: suikou311で接続し、 
-File Stationを開いて、リモートフォルダの中の該当サーバのフォルダを右クリック→アンマウント、その後「NAS」の中の該当サーバのフォルダを右クリック→削除で消す。 
- 
-## DNSからの削除 
- 
-[[内部dns登録]]を参照して、該当サーバの記述を削除する。 
- 
-[[サーバのipアドレスとホスト名の対応表]]の記述を編集する。 
  • サーバ削除の手順.1618322421.txt.gz
  • 最終更新: 2021/04/13 14:00
  • by 118.240.79.152