2013년 6월 13일 목요일

Avamar part Number





Avamar Rman Tapble space 복구 방법


 
(1) 복구 확인용 테이블스페이스 및 테이블 생성
OS> sqlplus / as sysdba
SQL> create tablespace test_ts datafile '/legato/oracle/oradata/master/test.dbf' size 10m;
SQL> alter user sys quota unlimited on test_ts;
SQL> create table sys.test tablespace test_ts as select 1 as no, sysdate as date1 from dual;
SQL> exit
OS> rman target /
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP OFF;
RMAN> report schema;
using target database control file instead of recovery catalog
Report of database schema
 
List of Permanent Datafiles
===========================
File Size(MB) Tablespace           RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1    510      SYSTEM               ***     /legato/oracle/oradata/master/system01.dbf
2    210      UNDOTBS1             ***     /legato/oracle/oradata/master/undotbs01.dbf
3    430      SYSAUX               ***     /legato/oracle/oradata/master/sysaux01.dbf
4    22       USERS                ***     /legato/oracle/oradata/master/users01.dbf
5    300      SPLEXT               ***     /legato/oracle/oradata/master/splext01.dbf
6    1000     ALST                 ***     /legato/oracle/oradata/master/alst01.dbf
7    100      SUJI                 ***     /legato/oracle/oradata/master/suji01.dbf
8    2400     QCO                  ***     /legato/oracle/oradata/master/qco01.dbf
9    500      LIVE                 ***     /legato/oracle/oradata/master/live.dbf
10   1024     SPLEXEE              ***     /legato/oracle/oradata/master/splexee01.dbf
11   10       TEST_TS              ***     /legato/oracle/oradata/master/test.dbf
 
List of Temporary Files
=======================
File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1    269      TEMP                 32767       /legato/oracle/oradata/master/temp01.dbf 
 
(2) 데이터 파일과 컨트롤 파일 백업
RMAN> backup database;
… 생략 …
RMAN> backup current controlfile format
            '/u01/app/oracle/oradata/devdb_fra/DEVDB/controlfile001.bck';
… 생략 …
RMAN> sql 'alter system switch logfile';
RMAN> sql 'alter system switch logfile';
RMAN> sql 'alter system switch logfile';
RMAN> sql 'alter system switch logfile';
RMAN> sql 'alter system switch logfile';
 
(3) 테이블 스페이스 삭제
RMAN> sql 'drop tablespace test_ts including contents and datafiles';   
  -테이블스페이스 삭제
RMAN> exit
OS> tail -n 20 $ORACLE_HOME/rdbms/log/alert_devdb.log
master:root:/usr/bin]tail -f /legato/oracle/admin/master/bdump/alert_master.log
        media 'avtar007'
        handle 'CONTROLFILE.master.c-2799742462-20111026-04'
Wed Oct 26 18:26:04 2011
drop tablespace test_ts including contents and datafiles
Wed Oct 26 18:26:20 2011
Deleted file /legato/oracle/oradata/master/test.dbf
Starting control autobackup
Control autobackup written to DISK device
        handle '/legato/oracle/orahome/dbs/c-2799742462-20111026-05'
Completed: drop tablespace test_ts including contents and datafiles
^Cmaster:root:/usr/bin]date
Wed Oct 26 18:32:38 KORST 2011
 
1827분 시점으로 복구 
(4) 테이블스페이스 삭제 상황이므로 컨트롤 파일과 모든 데이터 파일을 복원하고 복구
OS> export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
OS> export NLS_LANG=american
OS> rman target /
RMAN> shutdown immediate
RMAN> startup nomount
RMAN>
set dbid=2799742462;
set controlfile autobackup format for device type sbt to 'CONTROLFILE.master.%F';
run {
allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so,ENV=(PATH=/usr/sbin:/usr/bin:/sbin:/usr/local/avamar/bin)" format '%d_%U';
send '"--prefix=10g/master/"' ;
send '"--flagfile=/usr/local/avamar/var/avtar.txt"' ;
restore controlfile from 'CONTROLFILE.master.c-2799742462-20111026-04';
release channel c1;
}

allocated channel: c1
channel c1: sid=156 devtype=SBT_TAPE
channel c1: EMC|Avamar (avtar backup)
 
sent command to channel: c1
 
sent command to channel: c1
 
Starting restore at 26-OCT-11
 
avtar Info <5241>: Logging to /usr/local/avamar/var/avtar.log
avtar Info <5551>: Command Line: /usr/local/avamar/bin/avtar.bin --physicalRAM=5120 --vardir=/usr/local/avamar/var --bindir=/usr/local/avamar/bin --sysdir=/usr/local/avamar/etc --flagfile=/usr/local/avamar/var/avtar.txt --pidname=Oracle --pidnum=5002 --logfile=/usr/local/avamar/var/avtar.log --vardir=/usr/local/avamar/var --id=MCUser --password=******* --account=/clients/master --server=avatest.com --format=xml --history 10g/master/CONTROLFILE.master.c-2799742462-20111026-04 --label=CONTROLFILE.master.c-2799742462-20111026-04
avtar Info <5552>: Connecting to Server (avatest.com)
avtar Info <5554>: - Connecting to one node in each datacenter
avtar Info <5993>: - Connect: Connected to 192.168.1.120:27000, Priv=0, TCP
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32488.9574 secs)
avtar Info <5993>: - Datacenter 0 has 1 nodes: Connected to 192.168.1.120:27000, Priv=0, TCP
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32488.9584 secs)
avtar Info <5583>: Login User: "MCUser", Domain: "default", Account: "/clients/master"
avtar Info <5580>: - Logging in on connection 0
avtar Info <5582>: - Login successful
avtar Info <5018>: - Session ID: 1319623921593353
avtar Info <6509>: Successfully logged into Server
avtar Info <5922>: History of 10g/master/CONTROLFILE.master.c-2799742462-20111026-04 for /clients/master as of 2011-10-26 19:12:01 KORST
avtar Info <5314>: Command completed (exit code 0: Success)
channel c1: restoring control file
redirect sbt_stdout
avtar Info <5241>: Logging to /usr/local/avamar/var/avtar.log
avtar Info <5551>: Command Line: /usr/local/avamar/bin/avtar.bin --physicalRAM=5120 --vardir=/usr/local/avamar/var --bindir=/usr/local/avamar/bin --sysdir=/usr/local/avamar/etc --flagfile=/usr/local/avamar/var/avtar.txt --pidname=Oracle --pidnum=5002 --logfile=/usr/local/avamar/var/avtar.log --vardir=/usr/local/avamar/var --id=MCUser --password=******* --account=/clients/master --server=avatest.com --to-stdout --incpartials --label=CONTROLFILE.master.c-2799742462-20111026-04 -x 10g/master/CONTROLFILE.master.c-2799742462-20111026-04
avtar Info <5552>: Connecting to Server (avatest.com)
avtar Info <5554>: - Connecting to one node in each datacenter
avtar Info <5993>: - Connect: Connected to 192.168.1.120:27000, Priv=0, TCP
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32488.9652 secs)
avtar Info <5993>: - Datacenter 0 has 1 nodes: Connected to 192.168.1.120:27000, Priv=0, TCP
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32488.9647 secs)
avtar Info <5583>: Login User: "MCUser", Domain: "default", Account: "/clients/master"
avtar Info <5580>: - Logging in on connection 0
avtar Info <5582>: - Login successful
avtar Info <5018>: - Session ID: 1319623923968573
avtar Info <6509>: Successfully logged into Server
avtar Info <5295>: Starting restore at 2011-10-26 19:12:04 KORST as "oracle" on "master" (5 CPUs) [5.0.106-28]
avtar Info <5949>: Backup file system character encoding is UTF-8.
avtar Info <8695>: Backup from AIX host "/clients/master" (master) with plugin 5002 - AIX Oracle RMAN
avtar Info <5538>: Backup #11 label "CONTROLFILE.master.c-2799742462-20111026-04" timestamp 2011-10-27 03:16:49 KORST, 1 files, 5.750 MB
avtar Info <5291>: Estimated size for "10g/master/CONTROLFILE.master.c-2799742462-20111026-04" is 5.750 MB
avtar Info <5267>: Restore of "10g/master/CONTROLFILE.master.c-2799742462-20111026-04" completed
avtar Info <7875>: Restored 5.750 MB from selection(s) with 5.750 MB in 1 files
avtar Info <6090>: Restored 5.750 MB in 0.47 minutes: 731.9 MB/hour (127 files/hour)
avtar Info <7833>: Finished at 2011-10-26 19:12:32 KORST, Elapsed time: 0000h:00m:28s
avtar Info <6608>: Not sending wrapup anywhere.
avtar Info <5314>: Command completed (exit code 0: Success)
channel c1: restore complete, elapsed time: 00:00:37
output filename=/legato/oracle/oradata/master/control01.ctl
output filename=/legato/oracle/oradata/master/control02.ctl
output filename=/legato/oracle/oradata/master/control03.ctl
Finished restore at 26-OCT-11
 
released channel: c1
 
RMAN>
 
RMAN> startup mount
RMAN> startup mount;
 
database is already started
database mounted
 
RMAN>

RMAN>
run {
allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so,ENV=(PATH=/usr/sbin:/usr/bin:/sbin:/usr/local/avamar/bin)" format '%d_%U';
send '"--prefix=10g/master/"' ;
send '"--flagfile=/usr/local/avamar/var/avtar.txt"' ;
restore database;
release channel c1;
}
 
allocated channel: c1
channel c1: sid=159 devtype=SBT_TAPE
channel c1: EMC|Avamar (avtar backup)
 
sent command to channel: c1
 
sent command to channel: c1
 
Starting restore at 27-OCT-11
 
avtar Info <5241>: Logging to /usr/local/avamar/var/avtar.log
avtar Info <5551>: Command Line: /usr/local/avamar/bin/avtar.bin --physicalRAM=5120 --vardir=/usr/local/avamar/var --bindir=/usr/local/avamar/bin --sysdir=/usr/local/avamar/etc --flagfile=/usr/local/avamar/var/avtar.txt --pidname=Oracle --pidnum=5002 --logfile=/usr/local/avamar/var/avtar.log --vardir=/usr/local/avamar/var --id=MCUser --password=******* --account=/clients/master --server=avatest.com --hfsport=27000 --incpartials --encrypt=tls --format=xml --history 10g/master/MASTER_bmmq54us_1_1 --label=MASTER_bmmq54us_1_1
avtar Info <5552>: Connecting to Server (avatest.com)
avtar Info <5554>: - Connecting to one node in each datacenter
avtar Info <5993>: - Connect: Connected to 192.168.1.120:29000, Priv=0, SSL Cipher=AES128-SHA
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32487.9368 secs)
avtar Info <5993>: - Datacenter 0 has 1 nodes: Connected to 192.168.1.120:29000, Priv=0, SSL Cipher=AES128-SHA
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32487.9326 secs)
avtar Info <5583>: Login User: "MCUser", Domain: "default", Account: "/clients/master"
avtar Info <5580>: - Logging in on connection 0
avtar Info <5582>: - Login successful
avtar Info <5018>: - Session ID: 1319685626448011
avtar Info <6509>: Successfully logged into Server
avtar Info <5922>: History of 10g/master/MASTER_bmmq54us_1_1 for /clients/master as of 2011-10-27 12:20:26 KORST
avtar Info <5314>: Command completed (exit code 0: Success)
channel c1: starting datafile backupset restore
channel c1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /legato/oracle/oradata/master/system01.dbf
restoring datafile 00002 to /legato/oracle/oradata/master/undotbs01.dbf
restoring datafile 00003 to /legato/oracle/oradata/master/sysaux01.dbf
restoring datafile 00004 to /legato/oracle/oradata/master/users01.dbf
restoring datafile 00005 to /legato/oracle/oradata/master/splext01.dbf
restoring datafile 00006 to /legato/oracle/oradata/master/alst01.dbf
restoring datafile 00007 to /legato/oracle/oradata/master/suji01.dbf
restoring datafile 00008 to /legato/oracle/oradata/master/qco01.dbf
restoring datafile 00009 to /legato/oracle/oradata/master/live.dbf
restoring datafile 00010 to /legato/oracle/oradata/master/splexee01.dbf
restoring datafile 00011 to /legato/oracle/oradata/master/test.dbf
channel c1: reading from backup piece MASTER_bmmq54us_1_1
redirect sbt_stdout
avtar Info <5241>: Logging to /usr/local/avamar/var/avtar.log
avtar Info <5551>: Command Line: /usr/local/avamar/bin/avtar.bin --physicalRAM=5120 --vardir=/usr/local/avamar/var --bindir=/usr/local/avamar/bin --sysdir=/usr/local/avamar/etc --flagfile=/usr/local/avamar/var/avtar.txt --pidname=Oracle --pidnum=5002 --logfile=/usr/local/avamar/var/avtar.log --vardir=/usr/local/avamar/var --id=MCUser --password=******* --account=/clients/master --server=avatest.com --hfsport=27000 --incpartials --encrypt=tls --to-stdout --incpartials --label=MASTER_bmmq54us_1_1 -x 10g/master/MASTER_bmmq54us_1_1
avtar Info <5552>: Connecting to Server (avatest.com)
avtar Info <5554>: - Connecting to one node in each datacenter
avtar Info <5993>: - Connect: Connected to 192.168.1.120:29000, Priv=0, SSL Cipher=AES128-SHA
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32487.9341 secs)
avtar Info <5993>: - Datacenter 0 has 1 nodes: Connected to 192.168.1.120:29000, Priv=0, SSL Cipher=AES128-SHA
avtar Info <5693>: - Local client time and Server time are significantly different (delta=-32487.9298 secs)
avtar Info <5583>: Login User: "MCUser", Domain: "default", Account: "/clients/master"
avtar Info <5580>: - Logging in on connection 0
avtar Info <5582>: - Login successful
avtar Info <5018>: - Session ID: 1319685633198315
avtar Info <6509>: Successfully logged into Server
avtar Info <5295>: Starting restore at 2011-10-27 12:20:33 KORST as "oracle" on "master" (5 CPUs) [5.0.106-28]
avtar Info <5949>: Backup file system character encoding is UTF-8.
avtar Info <8695>: Backup from AIX host "/clients/master" (master) with plugin 5002 - AIX Oracle RMAN
avtar Info <5538>: Backup #15 label "MASTER_bmmq54us_1_1" timestamp 2011-10-27 20:18:23 KORST, 1 files, 1.252 GB
avtar Info <5291>: Estimated size for "10g/master/MASTER_bmmq54us_1_1" is 1.252 GB
avtar Info <5100>: Status 2011-10-27 12:35:32, 1 files, 76.44 MB (1 files, 15.78 MB, 20.65% new) 19MB 1% CPU
avtar Info <5100>: Status 2011-10-27 12:50:33, 1 files, 143.9 MB (1 files, 30.01 MB, 20.85% new) 19MB 1% CPU
 
(5) 복구 확인
RMAN> report schema;
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace           RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of report command at 05/18/2010 17:54:41
RMAN-20021: database not set
RMAN-06031: could not translate database keyword


RMAN> exit
OS> rman target /
 
RMAN> report schema;
using target database control file instead of recovery catalog
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace           RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1    200      SYSTEM               ***     /u01/app/oracle/oradata/devdb/system01.dbf
2    120      UNDOTBS01            ***     /u01/app/oracle/oradata/devdb/undotbs01.dbf
3    200      SYSAUX               ***     /u01/app/oracle/oradata/devdb/sysaux01.dbf
4    10       UNDO01               ***     /u01/app/oracle/oradata/devdb/undo01.dbf
5    10       USER_TAB_TS          ***     /u01/app/oracle/oradata/devdb/user_tab_ts.dbf
6    5        USER_IND_TS          ***     /u01/app/oracle/oradata/devdb/user_ind_ts.dbf
7    10       TEST_TS              ***     /u01/app/oracle/oradata/devdb/test_ts.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1    20       TEMP                 2048        /u01/app/oracle/oradata/devdb/temp01.tmp
2    10       TEMP01               10          /u01/app/oracle/oradata/devdb/temp01.dbf
 
RMAN> exit
OS> sqlplus / as sysdba
SQL> select * from sys.test;
        NO            DATE1
---------- -------------------
         1 2010-05-18 17:36:59
SQL> exit
 
(6) 정리
OS> rman target /
RMAN> show retention policy;
RMAN> crosscheck database;
RMAN> crosscheck archivelog all;
RMAN> report obsolete;
RMAN> delete obsolete;
RMAN> list backup by file;
RMAN> exit
 

 

Avamar Time sync 방법

Avamar Time Sync

NTP Server 없을 때
root@avamar:~/>: su - dpnid
dpn@avamar:~/>: ssh-agent bash
dpn@avamar:~/>: ssh-add ~/.ssh/dpnid
dpn@avamar:~/>: asktime
asktime: INFO: [asktime version 4.1.1-340 (1.6)]
asktime: INFO: Logging to /usr/local/avamar/var/asktime.log
asktime: INFO: The name "ntp" did not resolve to any DNS "IN A"
    resource records.

    If you wish asktime to suggest a list of internal time servers
        automatically, then ask your hostmaster to create one
or more "IN A" resource records for the name "ntp"
        in the "gangbuk.go.kr" zone.
        For example:
    ntp IN A 10.0.254.19
    ntp IN A 192.168.100.5
    ntp IN A 192.168.100.7
    Creating DNS resource records for "ntp" is optional; you
        will have other opportunities to enter time server information.

Continue?
y(es), n(o), q(uit/exit): y
--------------------------------------------------------
Do you wish to use U.S. public Internet time servers such as
    those offered by NIST or the U.S. Naval Observatory?
    Please note the following issues with public time servers:
    1. NETWORK CONFIGURATION: In order to use public Internet time
          servers your site must allow port 123/udp traffic to and
          from the selected Internet time servers.
    2. SECURITY: Your site security policy might forbid the use
          of Internet time servers. Consider setting up two or
          more internal NTP time servers instead.
    3. APPROPRIATE USE: Some of the U.S. public time servers known
          to asktime are intended to be used only by clients within
          specific U.S. time zones. If you use one of these time
          servers, then asktime infers that you are using the
          corresponding local time zone.
    (Your previous answer was: "n".)
y(es), n(o), q(uit/exit): n

--------------------------------------------------------
Are there other external time servers that you
would like to use?
    (Your previous answer was: "n".)
y(es), n(o), q(uit/exit): n
--------------------------------------------------------
Do you have a dedicated Axion subnet configuration, e.g., 2##.##.##.0/25?
  Answer y(es) if only Axion nodes reside in the subnet;
         n(o)  if non-Axion nodes share the subnet
    (Your previous answer was: "y".)
y(es), n(o), q(uit/exit): y

--------------------------------------------------------
This host, "avamar.backup.com", is a member of subnet 2##.##.##.0/25.
Use this subnet?
y(es), n(o), q(uit/exit): y

--------------------------------------------------------
Use this previously specified local time zone?
    Asia/Seoul
y(es), n(o), q(uit/exit): y

--------------------------------------------------------
Do you wish to configure the default set of nodes?
    Answering y(es) configures this set of nodes:
        #.s      -- all utility/services nodes,
        #.#      -- all data nodes.
    Answering n(o) will afford you the opportunity to
    configure other MCS nodes and/or individual nodes.
y(es), n(o), q(uit/exit): y
--------------------------------------------------------
Generating time configuration files...
[mktime.custom version 1.2]

--------------------------------------------------------
The time configuration files have been created
    in the following directory:
    /usr/local/avamar/var/time-config-files
Do you wish to proceed with installation of these
files on the selected nodes?
    Answering y(es) will proceed with installation.
    Answering n(o) will not proceed, but will leave
       available for future use the answers you have
       made to the preceding configuration questions.
    Answering q(uit) will exit WITHOUT saving your
       answers.
y(es), n(o), q(uit/exit): y
--------------------------------------------------------
We need an approximately correct initial date and time.
Here is the current date and time on this host, avamarex.gangbuk.go.kr:
    Fri May 22 11:00:56 KST 2009
Please pay close attention to the MONTH, DAY, and YEAR
as well as the time.
Is this approximately correct (within a minute or two)?
y(es), n(o), q(uit/exit): y
--------------------------------
Distributing and installing time configuration files.
    Please allow a minimum of 5 minutes. More time may
    be required, depending on the number of nodes in the
    Axion system and how busy those nodes are.
    If you wish to watch this process, apply this command
    in another window:
        tail -f /usr/local/avamar/var/timedist.log
    You may also find it helpful to monitor the following
    file on each node (starting with 0.s):
        /usr/local/avamar/var/timesyncmon.log
Time now: Fri May 22 11:00:58 KST 2009
Please wait...

--------------------------------------------------------
Do you wish to wait and watch for time synchronization?
y(es), n(o), q(uit/exit): y
asktime: INFO: Status monitoring key:
  x    ntpd not running on one or more nodes (should auto-correct quickly)
  o    no clock selected yet on one or more nodes
  .    unsatisfactory clock selections on one or more nodes
  <    insufficient time server contacts on one or more nodes
  >    offset still greater than 2 s on one or more nodes
  )    offset still greater than 1 s on one or more nodes
  }    offset still greater than 500 ms on one or more nodes
  |    offset still greater than 250 ms on one or more nodes
  *    possible convergence seen (offset <= 250 ms on all nodes)
Notes:
  - Ideally you will see something like this: "ooxxooooooooooooooo........***"
  - If you interrupt monitoring with control-C, there may be a delay
    of a few seconds before monitoring stops.
Commencing 60 monitoring passes, with 10-second intervals
    between passes.  Time now: Fri May 22 11:13:40 KST 2009
ooooooooooooooooooooooooooooooooooooooooooooooooooooooo***
--------------------------------------------------------
We appear to have time synchronization.
    Time now on this host: Fri May 22 11:23:57 KST 2009
    Do you wish to see the results?
y(es), n(o), q(uit/exit): y
Using /usr/local/avamar/var/probe.out
(0.s) ssh  -x  admin@2##.##.##'/usr/sbin/ntpq -pn 2>&1'
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*127.127.1.0     LOCAL(0)         8 l   25   64  377    0.000    0.000   0.001
(0.0) ssh  -x  admin@211.34.96.15 '/usr/sbin/ntpq -pn 2>&1'
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*2##.##.##.##    LOCAL(0)         9 u   41   64   17    0.132    1.346   1.848
(0.1) ssh  -x  admin@211.##.##.## '/usr/sbin/ntpq -pn 2>&1'
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*2##.##.##.##    LOCAL(0)         9 u   37   64   17    0.127    4.184   2.999
2##.##.##.##    .INIT.          16 u   34   64    0    0.000    0.000 4000.00
(0.2) ssh  -x  admin@211.##.##.## '/usr/sbin/ntpq -pn 2>&1'
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*2##.##.##.##    LOCAL(0)         9 u   37   64   17    0.125    1.608   1.130
 2##.##.##.##    .INIT.          16 u   34   64    0    0.000    0.000 4000.00
Using /usr/local/avamar/var/probe.out
(0.s) ssh  -x  admin@2##.##.##.## '/bin/date'
(0.0) ssh  -x  admin@2##.##.##.## '/bin/date'
(0.1) ssh  -x  admin@2##.##.##.## '/bin/date'
(0.2) ssh  -x  admin@2##.##.##.## '/bin/date'
Fri May 22 11:24:07 KST 2009
Fri May 22 02:24:07 UTC 2009
Fri May 22 02:24:07 UTC 2009
Fri May 22 02:24:07 UTC 2009
--------------------------------------------------------
Done.
NOTES:
* Time on this host is: Fri May 22 11:24:07 KST 2009
dpn@avamarex:~/>:

==============================================================================
==============================================================================
==============================================================================
==============================================================================
NTP Server 있을 때
root@avamar:~/>: su - dpnid
dpn@avamar:~/>: ssh-agent bash
dpn@avamar:~/>: ssh-add ~/.ssh/dpnid
dpn@avamar:~/>: asktime
asktime: INFO: [asktime version 4.1.1-340 (1.6)]
asktime: INFO: Logging to /usr/local/avamar/var/asktime.log
asktime: INFO: The name "ntp" did not resolve to any DNS "IN A"
    resource records.

    If you wish asktime to suggest a list of internal time servers
        automatically, then ask your hostmaster to create one
        or more "IN A" resource records for the name "ntp"
        in the "backup.com" zone.
        For example:
        ntp IN A 10.0.254.19
        ntp IN A 192.168.100.5
        ntp IN A 192.168.100.7
    Creating DNS resource records for "ntp" is optional; you
        will have other opportunities to enter time server information.

Continue?
y(es), n(o), q(uit/exit): y
--------------------------------------------------------
Do you wish to use U.S. public Internet time servers such as
    those offered by NIST or the U.S. Naval Observatory?
    Please note the following issues with public time servers:
    1. NETWORK CONFIGURATION: In order to use public Internet time
          servers your site must allow port 123/udp traffic to and
          from the selected Internet time servers.
    2. SECURITY: Your site security policy might forbid the use
          of Internet time servers. Consider setting up two or
          more internal NTP time servers instead.
    3. APPROPRIATE USE: Some of the U.S. public time servers known
          to asktime are intended to be used only by clients within
          specific U.S. time zones. If you use one of these time
          servers, then asktime infers that you are using the
          corresponding local time zone.

y(es), n(o), q(uit/exit): n

--------------------------------------------------------
Are there other external time servers that you
would like to use?
y(es), n(o), q(uit/exit): y
--------------------------------------------------------
Please enter the IP addresses of the external
        time servers, one per line, in the form
        A.B.C.D, e.g. 192.168.100.5.
Time servers may also be specified as host names,
       provided that those names will resolve.
Press Enter or Return after each response.
An empty response (a blank line) ends the list.
[00]  203.248.240.140
[01]  123.214.172.108
[02]
203.248.240.140 (보라넷 타임 서버)
123.214.172.108 (이화여대 타임 서버)

This is the list that you entered:
  203.248.240.140
  123.214.172.108
Is this list correct?
y(es), n(o), q(uit/exit): y

--------------------------------------------------------
Use this previously specified local time zone?
    Asia/Seoul
y(es), n(o), q(uit/exit): y
--------------------------------------------------------
Generating time configuration files...
[mktime.custom version 1.2]

--------------------------------------------------------
The time configuration files have been created
    in the following directory:
    /usr/local/avamar/var/time-config-files
Do you wish to proceed with installation of these
files on the selected node?
    Answering y(es) will proceed with installation.
    Answering n(o) will not proceed, but will leave
       available for future use the answers you have
       made to the preceding configuration questions.
    Answering q(uit) will exit WITHOUT saving your
       answers.
y(es), n(o), q(uit/exit): y

--------------------------------------------------------
We need an approximately correct initial date and time.
Here is the current date and time from NTP, but
with year and time zone from this host:
    Thu Jul  9 17:20:35 KST 2009
Please pay close attention to the MONTH, DAY, and YEAR
as well as the time.
Is this approximately correct (within a minute or two)?
y(es), n(o), q(uit/exit): y
--------------------------------
Distributing and installing time configuration files.
    Please allow a minimum of 3 minutes. More time may
    be required, depending on the number of nodes in the
    Axion system and how busy those nodes are.
    If you wish to watch this process, apply this command
    in another window:
        tail -f /usr/local/avamar/var/timedist.log
    You may also find it helpful to monitor the following
    file on each node (starting with 0.s):
        /usr/local/avamar/var/timesyncmon.log
Time now: Thu Jul  9 17:20:58 KST 2009
Please wait...

--------------------------------------------------------
Do you wish to wait and watch for time synchronization?
y(es), n(o), q(uit/exit): y
]asktime: INFO: Status monitoring key:
  x    ntpd not running on one or more nodes (should auto-correct quickly)
  o    no clock selected yet on one or more nodes
  .    unsatisfactory clock selections on one or more nodes
  <    insufficient time server contacts on one or more nodes
  >    offset still greater than 2 s on one or more nodes
  )    offset still greater than 1 s on one or more nodes
  }    offset still greater than 500 ms on one or more nodes
  |    offset still greater than 250 ms on one or more nodes
  *    possible convergence seen (offset <= 250 ms on all nodes)
Notes:
  - Ideally you will see something like this: "ooxxooooooooooooooo........***"
  - If you interrupt monitoring with control-C, there may be a delay
    of a few seconds before monitoring stops.
Commencing 60 monitoring passes, with 10-second intervals
    between passes.  Time now: Thu Jul  9 17:21:07 KST 2009
.........................***
--------------------------------------------------------
We appear to have time synchronization.
    Time now on this host: Thu Jul  9 17:25:54 KST 2009
    Do you wish to see the results?
y(es), n(o), q(uit/exit): y
Using /usr/local/avamar/var/probe.out
(0.0) ssh  -x  admin@203.###.###.### '/usr/sbin/ntpq -pn 2>&1'
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*203.248.240.140 122.199.249.2    4 u   42   64  377    4.802   -1.127   2.342
 123.214.172.108 .INIT.          16 u    -   64    0    0.000    0.000 4000.00
 127.127.1.0     LOCAL(0)         8 l   45   64  377    0.000    0.000   0.001
Using /usr/local/avamar/var/probe.out
(0.0) ssh  -x  admin@203.###.###.###'/bin/date'
Thu Jul  9 17:30:32 KST 2009
--------------------------------------------------------
Done.
NOTES:
* Time on this host is: Thu Jul  9 17:30:32 KST 2009
dpn@avamar:~/>: