########################################################## # # 2008年度 DNS(1st, 2nd) サーバ 入れ替え手順書 (Ver.1.0) # # 2008/09/04 岩堀 智子 2007 年度版から作成. # ########################################################## □ 構築ドキュメントとインストールするもの ・OS - Debian GNU/Linux 4.0 (etch) ・インストールソフト - 1st, 2nd 両方に必要なもの + bind9 + gate-toroku-system - 2nd のみ必要なもの + dhcp + syslon-ng ・構築ドキュメント http://www.ep.sci.hokudai.ac.jp/~epdns/ □ メモ ・2008 年度留意事項 - Debian バージョンを sarge から etch に移行. - サーバソフトは bind8 から bind9 へ移行. - ルータへの DHCP 機能移行は見送り(blue で DHCP の設定を行う). - カーネル再構築なし. - 2nd ではルータのログの受信設定を行う. ・サーバが停止する期間は 1st, 2nd ともに 1 日間 である。 ・入れ換え日までに OS, bind9, gate-toroku-system (の一部) その他ツール群のインストールを済ませておく. ・入れ換え日はサーバの入れ替え, gate-toroku-system のインストールの残り, 細かな設定の調整を行う. ・全作業が完了したらメールで報告して DNS サーバ再開. ・細かな作業が多いのでサーバ入れ替えの流れを良く 理解し混乱しないようにすること. ・入れ換え順序 - 2nd を先, 1st を後にする - ホスト名の張り変えは以下のようになる 2007年度 2008年度 yellow (1st) ==> kihada (1st予備) kihada (1st予備) ==> yellow (1st) blue (2nd) ==> aoi (2nd予備) aoi (2nd予備) ==> blue (2nd) ・2nd 停止から DHCP サーバによるアドレス配布が停止するので 個人の PC を用いた通信は手動で設定しておく. □ 作業内容 - 2nd DNS aoi (2nd予備) ==> blue (2nd) blue (2nd) ==> aoi (2nd予備) [ 入れ換え日前日まで ] 0. ドキュメントのプリントアウト 不測の事態に備え http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/ 以下を紙にプリントアウトして資料室に保存しておく. 1. OS のインストール http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/basic/ 2. bind のインストール http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/bind/index.html 2nd DNS サーバとして bind のインストール, 及び設定を行う. 3. dhcp のインストール http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/dhcp/dhcpconf.html 4. syslog-ng のインストール http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/syslog-ng/ 5. gate-toroku-sysytem のインストール(1) http://www/~gate/dvlop/y2006/gate-reconfig.html#before_change [ 入れ換え当日 ] + aoi での作業 + 番号の前に * がついているものは現行の blue での作業 *1. 現サーバからいくつかの設定ファイルをバックアップ http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/basic/backup.html - バックアップ先は適宜 *2. blue をシャットダウン - プライベート LAN 停止 3. 現 blue の eth1 側(プライベート側)のネットワーク線を抜いて 新 blue の eth1 側につなぐ 4. ホスト名, IP アドレスの変更 - aoi から blue へ. - blue のプライベート IP アドレスを 192.168.16.2 に. - 具体的には以下のファイル書き換え + /etc/hosts /etc/hostname /etc/motd /etc/network/interfaces + /etc/gate.conf - $DHCP_SERVER ='blue.ep.sci.hokudai.ac.jp' 5. 新設定の読み込み # /etc/init.d/networking restart # /etc/init.d/hostname.sh # /etc/init.d/syslog-ng restart 6. gate-toroku-system のインストール(2) http://www/~gate/dvlop/y2006/gate-reconfig.html#after_change 7. 各ソフトウェアの動作確認 - bind http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/bind/secondary.html#nslooku - gate + データベースの転送 + ユーザの作成 (2nd DNS は gate-toroku-system によってゾーンファイルを 生成しないため, それに関してはチェックする必要は無い) ※ ゾーンファイル … IP アドレスとホスト名の対応表のファイル - dhcp + プライベート IP 登録されたホストが接続可能か確認 - syslog-ng + lemon のログは受信できているか 8. 後始末 - お片付け - テプラのはりかえ - 資料室のダンボックス作り直し - 引き継ぎ作業 - gate 登録更新 + マシン(blue, aoi)管理者の変更 + MAC アドレス入れ替え - サーバ室鍵の受け渡し 9. 再構築完了をメールで報告, 2nd DNS サーバ再開 ! □ 作業内容 - 1st DNS kihada (予備) ==> yellow (1st) [ 入れ換え日前日まで ] + kihada での入替準備作業 1. OS のインストール http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/basic/ 2. bind のインストール http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/bind/index.html 1st DNS サーバとして bind のインストール, 及び設定を行う. 3. gate-toroku-sysytem のインストール http://www/~gate/dvlop/y2007/gate-reconfig.html#before_change [ 入れ換え当日 ] + kihada での作業 + 番号の前に * がついているものは現行の yellow での作業 *1. 現サーバからいくつかの設定ファイルをバックアップ http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/basic/backup.html - バックアップ先は適宜 *2. yellow をシャットダウン 3. ホスト名, IP アドレスの変更 - kihada から yellow へ - 具体的には以下のファイル書き換え + /etc/hosts /etc/hostname /etc/motd /etc/network/interfaces 4. kihada(新 yellow) 設定ファイルの読み込み # /etc/init.d/networking restart # /etc/init.d/hostname.sh # /etc/init.d/klogd restart # /etc/init.d/sysklogd restart 5. gate-toroku-system のインストール(続) http://www/~gate/dvlop/y2007/gate-reconfig.html#after_change 6. 各ソフトウェアの動作確認 - bind http://www.ep.sci.hokudai.ac.jp/~epdns/dvlop/bind/primary.html#nslookp - gate + データベースの転送 + ユーザの作成 + ゾーンファイルの生成 ※ ゾーンファイル … IP アドレスとホスト名の対応表のファイル 7. 後始末 - お片付け - テプラのはりかえ - 引き継ぎ作業(gate 登録) - マシン(yellow, kihada)管理者の変更 - MAC アドレスの変更 8. 再構築完了をメールで報告, 1st DNS サーバ再開 !