差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
サーバ削除の手順 [2021/04/13 13:33] – 118.240.79.152 | サーバ削除の手順 [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 | ||
- | ``` | ||
- | |||
- | ## 共有フォルダからの削除 | ||
- | |||
- | ``` | ||
- | 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 | ||
- | ``` | ||
- | |||
- | ## DNSからの削除 | ||
- | |||
- | [[内部dns登録]]を参照して、該当サーバの記述を削除する。 | ||
- | |||
- | [[サーバのipアドレスとホスト名の対応表]]の記述を編集する。 |