差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| サーバ削除の手順 [2021/10/12 02:03] – 133.11.222.89 | サーバ削除の手順 [Unknown date] (現在) – 削除 - 外部編集 (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | # サーバ削除の手順 | ||
| - | ## グリッドエンジンからの削除 | ||
| - | |||
| - | ``` | ||
| - | qconf -ds m128y | ||
| - | qconf -dh m128y | ||
| - | qconf -mq all.q # | ||
| - | qconf -mhgrp @allhosts # | ||
| - | 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' | ||
| - | rm -rf / | ||
| - | rm -rf / | ||
| - | rm -rf / | ||
| - | #restart sge | ||
| - | / | ||
| - | ``` | ||
| - | |||
| - | ## サーバ名を変更したくてグリッドエンジンから削除するなら、グリッドエンジンのプログラムを終了させておく | ||
| - | ``` | ||
| - | ps auxf|grep sge | ||
| - | で出てきたIDをkill | ||
| - | ``` | ||
| - | |||
| - | また、sgemasterを再起動する必要がある。 | ||
| - | |||
| - | ``` | ||
| - | ssh m24.s | ||
| - | / | ||
| - | / | ||
| - | exit | ||
| - | ``` | ||
| - | |||
| - | その後は[[http:// | ||
| - | |||
| - | ## 共有フォルダからの削除 | ||
| - | |||
| - | ``` | ||
| - | sudo su - | ||
| - | nano / | ||
| - | |||
| - | cd /root | ||
| - | ./ | ||
| - | |||
| - | su - suikou | ||
| - | ssh m768 | ||
| - | source / | ||
| - | for i in `qhost|tail -n+4|cut -f 1 -d " "`; do echo $i; ssh $i sudo cp / | ||
| - | |||
| - | ssh -l root suikouvm.s #password: suikou | ||
| - | cp / | ||
| - | systemctl restart autofs | ||
| - | ls / | ||
| - | # | ||
| - | rm / | ||
| - | exit | ||
| - | ``` | ||
| - | |||
| - | ## synology NASからマウント解除 | ||
| - | |||
| - | http:// | ||
| - | File Stationを開いて、リモートフォルダの中の該当サーバのフォルダを右クリック→アンマウント、その後「NAS」の中の該当サーバのフォルダを右クリック→削除で消す。 | ||
| - | |||
| - | ## DNSからの削除 | ||
| - | |||
| - | [[内部dns登録]]を参照して、該当サーバの記述を削除する。 | ||
| - | |||
| - | [[サーバのipアドレスとホスト名の対応表]]の記述を編集する。 | ||