1. #installer install SF and VVR packages
VVR License 4.1 Opteron
2. #vxinstall on each node
3.
Create 2 volumes , one as Data Vol, andn another as SRL Vol
on Host A :
bash-3.00# vxdg init oradg Disk_1 Disk_3 (at least 2 disks)
bash-3.00# vxassist -g oradg make ora_vol 10g
bash-3.00# vxassist -g oradg make SRL_vol 10g
on Host B:
bash-3.00# vxdg init oradg Disk_1 Disk_3 (at least 2 disks)
bash-3.00# vxassist -g oradg make ora_vol 10g
bash-3.00# vxassist -g oradg make SRL_vol 10g
4.
To create a Primary RVG of an RDS
# vradmin -g oradg createpri testrvg ora_vol SRL_vol
5. To create Secondary RVG
# vradmin -g oradg addsec testrvg SxRTFS04 SxRTFS05
6. start replication
bash-3.00# vradmin -g oradg -a startrep testrvg
Message from Primary:
VxVM VVR vxrlink WARNING V-5-1-3359 Attaching rlink to non-empty rvg. Autosync will be
performed.
VxVM VVR vxrlink INFO V-5-1-3614 Secondary data volumes detected with rvg testrvg as
parent:
VxVM VVR vxrlink INFO V-5-1-6183 ora_vol: len=20971520
primary_datavol=ora_vol
VxVM VVR vxrlink INFO V-5-1-3365 Autosync operation has started
bash-3.00# vradmin -g oradg repstatus testrvg
Replicated Data Set: testrvg
Primary:
Host name: SxRTFS04
RVG name: testrvg
DG name: oradg
RVG state: enabled for I/O
Data volumes: 1
SRL name: SRL_vol
SRL size: 10.00 G
Total secondaries: 1
Secondary:
Host name: SxRTFS05
RVG name: testrvg
DG name: oradg
Data status: inconsistent
Replication status: resync in progress (autosync)
Current mode: asynchronous
Logging to: DCM (contains 4550912 Kbytes) (autosync)
Timestamp Information: N/A
bash-3.00#
bash-3.00# vradmin -g oradg repstatus testrvg
Replicated Data Set: testrvg
Primary:
Host name: SxRTFS04
RVG name: testrvg
DG name: oradg
RVG state: enabled for I/O
Data volumes: 1
SRL name: SRL_vol
SRL size: 10.00 G
Total secondaries: 1
Secondary:
Host name: SxRTFS05
RVG name: testrvg
DG name: oradg
Data status: inconsistent
Replication status: stopped (primary detached)
Current mode: N/A
Logging to: SRL
Timestamp Information: N/A
//How to Check VVR started normally
bash-3.00# ps -ef|grep vradmin
root 25658 25603 0 09:17:22 pts/2 0:00 grep vradmin
root 17176 1 0 16:46:32 ? 0:10 /usr/sbin/vradmind
bash-3.00# netstat -an |grep 4145
*.4145 Idle
*.4145 *.* 0 0 49152 0 LISTEN
bash-3.00# vxdctl list
Volboot file
version: 3/1
seqno: 0.1
cluster protocol version: 60
hostid: SxRTFS04
//Problem solving
bash-3.00# vradmin -g oradg createpri testrvg ora_vol SRL_vol
Message from Primary:
VxVM vxmake WARNING V-5-1-10310 A RVG object cannot function properly with less than 1
I/O daemon(s) running. Setting iod count to 1.
bash-3.00# vxiod
1 volume I/O daemon running
bash-3.00# vxiod -H
VxVM vxiod: illegal option -- H
Usage: vxiod [-f] set count
With no arguments, report count of I/O daemons
bash-3.00# vxiod set 1
bash-3.00# vxiod
1 volume I/O daemon running
bash-3.00# vradmin -g oradg addsec testrvg SxRTFS04 SxRTFS05
Message from Host SxRTFS05:
VxVM VVR vradmin ERROR V-5-52-422 Primary disk group 1215597289.20.SxRTFS04 is not
authenticated.
VxVM VVR vradmin ERROR V-5-52-802 Cannot start command execution on Secondary.
/etc/vx/vras/.rdg
+
bash-3.00# vradmin -g oradg startrep testrvg
VxVM VVR vradmin ERROR V-5-52-21 One of the options -a, -c, or -f must be used.
VxVM VVR vradmin INFO V-5-52-44
Usage: vradmin [-g diskgroup] {-a | -c checkpoint | -f} startrep rvg [sechost]
bash-3.00# vradmin -g oradg -a startrep testrvg
Message from Primary:
VxVM VVR vxrlink WARNING V-5-1-3359 Attaching rlink to non-empty rvg. Autosync will be
performed.
VxVM VVR vxrlink INFO V-5-1-3614 Secondary data volumes detected with rvg testrvg as
parent:
VxVM VVR vxrlink INFO V-5-1-6183 ora_vol: len=20971520
primary_datavol=ora_vol
VxVM VVR vxrlink INFO V-5-1-3365 Autosync operation has started
bash-3.00# vradmin -g oradg repstatus testrvg
Replicated Data Set: testrvg
Primary:
Host name: SxRTFS04
RVG name: testrvg
DG name: oradg
RVG state: enabled for I/O
Data volumes: 1
SRL name: SRL_vol
SRL size: 10.00 G
Total secondaries: 1
Secondary:
Host name: SxRTFS05
RVG name: testrvg
DG name: oradg
Data status: inconsistent
Replication status: resync in progress (autosync)
Current mode: asynchronous
Logging to: DCM (contains 10469376 Kbytes) (autosync)
Timestamp Information: N/A
bash-3.00#
//How to Delete a RVG
bash-3.00# vxrvg -g oradg stop testrvg
bash-3.00# vxprint
Disk group: oradg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg oradg oradg - - - - - -
dm Disk_1 Disk_1 - 62860032 - - - -
dm Disk_3 Disk_3 - 62860032 - - - -
rv testrvg - DISABLED - - CLEAN - -
v ora_vol testrvg ENABLED 20971520 - ACTIVE - -
pl ora_vol-01 ora_vol ENABLED 20971520 - ACTIVE - -
sd Disk_1-01 ora_vol-01 ENABLED 20971520 0 - - -
pl ora_vol-02 ora_vol ENABLED LOGONLY - ACTIVE - -
sd Disk_1-02 ora_vol-02 ENABLED 352 LOG - - -
pl ora_vol-03 ora_vol ENABLED LOGONLY - ACTIVE - -
sd Disk_3-02 ora_vol-03 ENABLED 352 LOG - - -
v SRL_vol testrvg ENABLED 20971520 SRL ACTIVE - -
pl SRL_vol-01 SRL_vol ENABLED 20971520 - ACTIVE - -
sd Disk_3-01 SRL_vol-01 ENABLED 20971520 0 - - -
bash-3.00# vradmin -g oradg printrvg
Replicated Data Set: testrvg
Primary:
HostName: SxRTFS05
RvgName: testrvg
DgName: oradg
bash-3.00# vradmin -g oradg delpri testrvg
bash-3.00# vradmin -g oradg stoprep testrvg
VxVM VVR vradmin WARNING V-5-52-92 Secondary data volumes will become out-of-date.
vradmin: Continue with stoprep (y/n)? y
bash-3.00# vradmin -g oradg delsec testrvg SxRTFS05
Message from Host SxRTFS05:
VxVM VVR vxrlink WARNING V-5-1-3532 Rlink rlk_SxRTFS04_testrvg is already detached
bash-3.00#
bash-3.00# vradmin -g oradg delpri testrvg
bash-3.00#
bash-3.00#
++++++++++++
1. bash-3.00# vxdg init oradg Disk_1 Disk_3
2.
bash-3.00# vxassist -g oradg make ora_vol 10g Disk_1
bash-3.00# vxassist -g oradg make ora_vol2 10g Disk_1
bash-3.00# vxassist -g oradg make SRL_vol 500m Disk_3
bash-3.00#
3.
bash-3.00# vradmin -g oradg createpri oraclervg ora_vol,ora_vol2 SRL_vol
4. On host b
bash-3.00# vxdg init oradg Disk_1 Disk_3
bash-3.00# vxassist -g oradg make ora_vol 10g Disk_1
bash-3.00# vxassist -g oradg make ora_vol2 10g Disk_1
bash-3.00# vxassist -g oradg make SRL_vol 500m Disk_3
bash-3.00#
5.
on secondary node
edit /etc/vx/vras/.rdg
on primary node
bash-3.00# vradmin -g oradg addsec oraclervg SxRTFS04 SxRTFS05
6.
bash-3.00# vradmin -g oradg -a startrep oraclervg
Message from Primary:
VxVM VVR vxrlink WARNING V-5-1-3359 Attaching rlink to non-empty rvg. Autosync will be
performed.
VxVM VVR vxrlink INFO V-5-1-3614 Secondary data volumes detected with rvg oraclervg as
parent:
VxVM VVR vxrlink INFO V-5-1-6183 ora_vol: len=20971520
primary_datavol=ora_vol
VxVM VVR vxrlink INFO V-5-1-6183 ora_vol2: len=20971520
primary_datavol=ora_vol2
VxVM VVR vxrlink INFO V-5-1-3365 Autosync operation has started
bash-3.00#
7.
bash-3.00# vradmin -g oradg set oraclervg SxRTFS05 synchronous=override
bash-3.00#
//
++++++++++++++++
on host A
bash-3.00# vxdg init oradg AMS_WMS0_3 AMS_WMS0_4
bash-3.00# vxassist -g oradg make ora_vol01 50m AMS_WMS0_3
bash-3.00#
vxassist -g oradg make ora_vol02 50m AMS_WMS0_3
bash-3.00# vxassist -g oradg make SRL_vol 500m AMS_WMS0_4
vradmin -g oradg createpri oraclervg ora_vol01,ora_vol02 SRL_vol
on host B
bash-3.00# vxdg init oradg AMS_WMS0_0 AMS_WMS0_2
bash-3.00#
vxassist -g oradg make ora_vol01 50m AMS_WMS0_0
vxassist -g oradg make ora_vol02 50m AMS_WMS0_0
vxassist -g oradg make SRL_vol 500m AMS_WMS0_2
on secondary node
edit /etc/vx/vras/.rdg
on primary node
bash-3.00# vradmin -g oradg addsec oraclervg SxRTFS04 SxRTFS05
vradmin -g oradg -a startrep oraclervg
+++++++++++++++++
// migrate
bash-3.00# vradmin -g oradg migrate oraclervg
vradmin -g data createpri repvg ora_vol1 srl_vol
vradmin -g data addsec repvg vvr440 vvr240
评论