では 処理します
こちらが 元のサーバーになります。
sv20:~# cd /etc/ sv20:/etc# mv HOSTNAME 20100524_HOSTNAME_as_sv20.bcnet.ne.jp_zantei sv20:/etc# cp 20100524_HOSTNAME_as_sv20.bcnet.ne.jp_zantei HOSTNAME sv20:/etc# diff -s HOSTNAME 20100524_HOSTNAME_as_sv20.bcnet.ne.jp_zantei 1c1 < nl.bcnet.ne.jp --- > sv20.bcnet.ne.jp
sv20:/etc# mv hosts 20100524_hosts_as_sv20.bcnet.ne.jp_sv20_zantei sv20:/etc# cp 20100524_hosts_as_sv20.bcnet.ne.jp_sv20_zantei hosts sv20:/etc# vi hosts sv20:/etc# diff -s hosts 20100524_hosts_as_sv20.bcnet.ne.jp_sv20_zantei 18a19 > 192.168.24.20 sv20.bcnet.ne.jp sv20
sv20:/etc# cd rc.d/ sv20:/etc/rc.d# mv rc.inet1.tradnet 20100524_rc.inet1.tradnet_as_192.168.24.20_zantei sv20:/etc/rc.d# cp 20100524_rc.inet1.tradnet_as_192.168.24.20_zantei rc.inet1.tradnet sv20:/etc/rc.d# vi rc.inet1.tradnet sv20:/etc/rc.d# diff -s rc.inet1.tradnet 20100524_rc.inet1.tradnet_as_192.168.24.20_zantei 27c27 < IPADDR="192.168.24.8" # REPLACE with YOUR IP address! --- > IPADDR="192.168.24.20" # REPLACE with YOUR IP address!
FLORA 370の 再起動準備 完了しました。
こちらは再起動させるだけです その後 FLORA 370 を 再起動するまで の 間 は 外部に 向けた サービスの停止時間になります。
nl:/var/log# shutdown -r now Broadcast message from root (pts/1) (Fri May 28 21:35:55 2010): The system is going down for reboot NOW! nl:/var/log# Connection to 192.168.24.8 closed by remote host. Connection to 192.168.24.8 closed.
外部向けサービスは 停止しました
$ ping -c3 192.168.24.8 PING 192.168.24.8 (192.168.24.8): 56 octets data --- 192.168.24.8 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss $ ping -c3 192.168.24.9 PING 192.168.24.9 (192.168.24.9): 56 octets data 64 octets from 192.168.24.9: icmp_seq=0 ttl=64 time=0.8 ms 64 octets from 192.168.24.9: icmp_seq=1 ttl=64 time=0.2 ms 64 octets from 192.168.24.9: icmp_seq=2 ttl=64 time=3.3 ms --- 192.168.24.9 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.2/1.4/3.3 ms
IP Adr 192.168.24.9 として 再起動 しているようです。
さて こちらも 再起動 させましょう
$ ping -c3 192.168.24.20 PING 192.168.24.20 (192.168.24.20): 56 octets data 64 octets from 192.168.24.20: icmp_seq=0 ttl=64 time=0.3 ms 64 octets from 192.168.24.20: icmp_seq=1 ttl=64 time=0.2 ms 64 octets from 192.168.24.20: icmp_seq=2 ttl=64 time=0.2 ms --- 192.168.24.20 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.2/0.2/0.3 ms $ ping -c3 192.168.24.8 PING 192.168.24.8 (192.168.24.8): 56 octets data --- 192.168.24.8 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss
sv20:/etc/rc.d# shutdown -r now Broadcast message from root (pts/0) (Fri May 28 21:41:47 2010): The system is going down for reboot NOW! sv20:/etc/rc.d# Connection to 192.168.24.20 closed by remote host. Connection to 192.168.24.20 closed.
当然ですが IP Adr 192.168.24.20 は 無くなります。
$ ping -c3 192.168.24.20 PING 192.168.24.20 (192.168.24.20): 56 octets data --- 192.168.24.20 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss $ ping -c3 192.168.24.8 PING 192.168.24.8 (192.168.24.8): 56 octets data 64 octets from 192.168.24.8: icmp_seq=0 ttl=64 time=0.4 ms 64 octets from 192.168.24.8: icmp_seq=1 ttl=64 time=0.2 ms 64 octets from 192.168.24.8: icmp_seq=2 ttl=64 time=8.3 ms --- 192.168.24.8 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.2/2.9/8.3 ms
IP Adr 192.168.24.8 が 立ち上がった様です。
にゃんたろう 拝!
2010年 5月28日 (金) 21:10:21 JST 作成