2010-09-26 11:41 AM
WAAS System を管理する Central Manager の config の backup 、restore 方法を紹介します。
Central Manager は各 Application Accelerator の設定情報を保持しているため、Application Accelerator については、基本的なネットワーク設定情報を記録しておくだけで構いません。Application Accelerator の recovery 方法については、別のドキュメントで紹介します。
config backup方法:
1) Central Manager の CLI にログインし、EXEC mode で "cms database backup" コマンドを実行します。
赤字で記したように、作成された backup file 名が表示されます。
WAE7326-A#cms database backup Creating database backup file cms-db-09-26-2010-02-42_4.2.1.0.38.dump Backup file cms-db-09-26-2010-02-42_4.2.1.0.38 is ready. Please use `copy' commands to move the backup file to a remote host. |
2) 作成された backup file を "dir" コマンドで確認した後、"copy disk ftp" コマンドで ftp server に保存し、backup は完了です。
WAE7326-A#dir size time of last change name -------------- ------------------------- ----------- 125052 Sat Sep 25 20:43:00 2010 UcliEvt.bak 7252 Sun Sep 26 02:43:00 2010 UcliEvt.log 268905651 Tue Aug 10 04:58:50 2010 WAAS-4.2.1.38-K9.bin 4096 Thu Aug 5 05:00:00 2010 <DIR> actona 99728 Sun Sep 26 02:42:09 2010 cms-db-09-26-2010-02-42_4.2.1 .0.38.dump 4096 Thu Aug 5 04:51:45 2010 <DIR> core_dir 4096 Mon Aug 9 02:22:05 2010 <DIR> crash 0 Tue Aug 10 05:03:04 2010 db-downgrade.log 8757 Tue Aug 10 05:08:46 2010 dbupgrade.log 4096 Mon Aug 9 02:22:05 2010 <DIR> downgrade 4096 Thu Sep 16 04:12:04 2010 <DIR> errorlog 892 Tue Aug 10 05:08:10 2010 irqbal_debug.txt 4096 Tue Aug 10 05:08:15 2010 <DIR> logs 16384 Thu Aug 5 04:51:29 2010 <DIR> lost+found 4096 Mon Aug 9 02:22:05 2010 <DIR> pki 4096 Sun Sep 26 00:02:00 2010 <DIR> sa 12288 Sun Sep 26 02:46:26 2010 <DIR> service_logs 4096 Thu Aug 5 04:53:29 2010 <DIR> spool 909452 Sun Sep 26 02:44:00 2010 syslog.txt 8 Sun Sep 26 02:39:11 2010 userdeletiontimestamp 4096 Thu Aug 5 04:51:38 2010 <DIR> var 508 Thu Aug 5 04:51:40 2010 wdd.sh.signed WAE7326-A# WAE7326-A#copy disk ftp ? Hostname or A.B.C.D FTP server's IP address WAE7326-A#copy disk ftp 192.168.61.13 ? WORD Remote file directory WAE7326-A#copy disk ftp 192.168.61.13 / ? WORD Remote filename WAE7326-A#copy disk ftp 192.168.61.13 / cms-db-09-26-2010-02-42_4.2.1.0.38.dump ? WORD Local filename WAE7326-A#copy disk ftp 192.168.61.13 / cms-db-09-26-2010-02-42_4.2.1.0.38.dump cms-db-09-26-2010-02-42_4.2.1.0.38.dump ? <cr> WAE7326-A#copy disk ftp 192.168.61.13 / cms-db-09-26-2010-02-42_4.2.1.0.38.dump cms-db-09-26-2010-02-42_4.2.1.0.38.dump Enter username for remote ftp server: anonymous Enter password for remote ftp server: Initiating FTP upload... Sending: USER anonymous 3Com 3CDaemon FTP Server Version 2.0 User name ok, need password Sending: PASS *** User logged in Sending: TYPE I Type set to I. Sending: PASV Entering passive mode (192,168,61,13,14,169) Sending: CWD / CWD command successful Sending PASV Entering passive mode (192,168,61,13,14,170) Sending: STOR cms-db-09-26-2010-02-42_4.2.1.0.38.dump Using existing data connection Closing data connection; File transfer successful. Sent 99728 bytes |
restore 方法:
1) restore を行う WAE が工場出荷状態もしくは Application Accelerator として利用していた場合は、Central Manager として機能するよう "device mode" コマンドで設定し config save 後、再起動します。
NO-HOSTNAME#show device-mode current Current device mode: application-accelerator NO-HOSTNAME#conf t NO-HOSTNAME(config)#device mode ? application-accelerator Configure device to function as a WAAS Engine. central-manager Configure device to function as a WAAS Central Manager. NO-HOSTNAME(config)#device mode central-manager ? <cr> NO-HOSTNAME(config)#device mode central-manager The new configuration will take effect after a reload NO-HOSTNAME(config)#end NO-HOSTNAME#copy running-config startup-config NO-HOSTNAME# NO-HOSTNAME#reload Proceed with reload?[confirm] |
2) backup ファイルを ftp server から download する為に、ネットワークの設定を行います。
NO-HOSTNAME#config t NO-HOSTNAME(config)#interface gigabitEthernet 1/0 NO-HOSTNAME(config-if)#ip address 192.168.62.41 255.255.255.0 NO-HOSTNAME(config-if)#exit NO-HOSTNAME(config)#ip default-gateway 192.168.62.254 NO-HOSTNAME(config)#end NO-HOSTNAME#ping 192.168.61.13 PING 192.168.61.13 (192.168.61.13) 56(84) bytes of data. 64 bytes from 192.168.61.13: icmp_seq=1 ttl=127 time=1.14 ms 64 bytes from 192.168.61.13: icmp_seq=2 ttl=127 time=0.669 ms |
3) "copy ftp disk" コマンドで、ftp server から backup file を download します。
NO-HOSTNAME#copy ftp disk ? Hostname or A.B.C.D FTP server's IP address NO-HOSTNAME#copy ftp disk 192.168.61.13 ? WORD Remote file directory NO-HOSTNAME#copy ftp disk 192.168.61.13 / ? WORD Remote filename NO-HOSTNAME#copy ftp disk 192.168.61.13/ cms-db-09-26-2010-02-42_4.2.1.0.38.dump ? WORD Local filename NO-HOSTNAME#copy ftp disk 192.168.61.13/ cms-db-09-26-2010-02-42_4.2.1.0.38.dump cms-db-09-26-2010-02-42_4.2.1.0.38.dump ? <cr> NO-HOSTNAME#copy ftp disk 192.168.61.13/ cms-db-09-26-2010-02-42_4.2.1.0.38.dump cms-db-09-26-2010-02-42_4.2.1.0.38.dump Enter username for remote ftp server: anonymous Enter password for remote ftp server: Initiating FTP download... Sending: USER anonymous 3Com 3CDaemon FTP Server Version 2.0 User name ok, need password Sending: PASS *** User logged in Sending: TYPE I Type set to I. Sending: PASV Entering passive mode (192,168,61,13,14,171) Sending: CWD / CWD command successful Sending PASV Entering passive mode (192,168,61,13,14,172) Sending: RETR cms-db-09-26-2010-02-42_4.2.1.0.38.dump Using existing data connection # Downloaded 99728 bytes |
3) "dir" コマンドで download した backup file を確認した後、"cms database restore" コマンドで backup file を指定します。
Overwrite current key manager configuration/state with one in backup ? の質問には yes と答え、
Choose type of restoration では、通常 1 を入力して全ての CLI 設定を元に戻します。
NO-HOSTNAME#dir size time of last change name -------------- ------------------------- ----------- 102 Sun Sep 26 03:53:00 2010 UcliEvt.log 4096 Sun Sep 26 03:44:14 2010 <DIR> actona 99728 Sun Sep 26 03:53:43 2010 cms-db-09-26-2010-02-42_4.2.1 .0.38.dump 4096 Sun Sep 26 03:44:16 2010 <DIR> core_dir 4096 Sun Sep 26 03:46:17 2010 <DIR> crash 0 Sun Sep 26 03:48:01 2010 db-downgrade.log 4096 Sun Sep 26 03:44:14 2010 <DIR> downgrade 4096 Sun Sep 26 03:56:29 2010 <DIR> errorlog 458 Sun Sep 26 03:55:50 2010 irqbal_debug.txt 4096 Sun Sep 26 03:56:35 2010 <DIR> logs 16384 Sun Sep 26 03:43:31 2010 <DIR> lost+found 4096 Sun Sep 26 03:44:14 2010 <DIR> pki 4111 Sun Sep 26 03:55:51 2010 restore-4721.log 4096 Sun Sep 26 03:52:00 2010 <DIR> sa 8192 Sun Sep 26 03:57:44 2010 <DIR> service_logs 4096 Sun Sep 26 03:55:40 2010 <DIR> spool 191495 Sun Sep 26 03:57:22 2010 syslog.txt 8 Sun Sep 26 03:56:39 2010 userdeletiontimestamp 4096 Sun Sep 26 03:44:10 2010 <DIR> var 508 Sun Sep 26 03:44:11 2010 wdd.sh.signed NO-HOSTNAME#cms database restore ? WORD Database backup local file name NO-HOSTNAME#cms database restore cms-db-09-26-2010-02-42_4.2.1.0.38.dump ? <cr> NO-HOSTNAME#cms database restore cms-db-09-26-2010-02-42_4.2.1.0.38.dump Overwrite current key manager configuration/state with one in backup (yes|no) [no]?yes Restoring CLI running configuration to the state when the backup was made. Choose type of restoration. 1. Fully restore all CLI configurations. 2. Partially restore CLI configurations, omitting network configuration settings. 3. Do not restore any CLI configurations from the backup. Please enter your choice : [2] 1 Please enable the cms process using the command 'cms enable' to complete the cms database restore procedure. Database files and node identity information successfully restored from file `cms-db-09-26-2010-02-42_4.2.1.0.38.dump' |
4) "cms enable" コマンドで、Central Manager を有効にし、config を save します。
WAE7326-A#conf t WAE7326-A(config)#cms enable Please preserve running configuration using 'copy running-config startup-config'. Otherwise management service will not be started on reload and node will be shown 'offline' in WAAS Central Manager UI. management services enabled WAE7326-A(config)#end WAE7326-A#copy running-config startup-config |
5) license が追加されていない場合は、"license add" コマンドで Enterprise license を追加します。
WAE7326-A#show license There are no active licenses configured. The following list of licenses is available in this release for configuration: Enterprise Please, use "license add <LicenseName>" CLI command to enter the license you purchased already. WAE7326-A#license add Enterprise |
6) 最後に Central Manager に browser でログインし、各 WAE が online になっていることを確認します。
検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう
シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします
下記より関連するコンテンツにアクセスできます