Hi Guy.
I have a global cluster formed by 2 mini-cluster of one node only each one synchronized in asynchronous mode.
I wanted to simulate a fault of primary node with solaris command 'halt'
root@MILWB02S # hagrp -state AppService
#Group Attribute System Value
AppService State MILWB03SCluster:MILWB03S |OFFLINE|
AppService State localclus:MILWB02S |ONLINE|
after 'halt' on primary node MILWB02S, we have:
root@MILWB03S # hagrp -state AppService
#Group Attribute System Value
AppService State MILWB02SCluster:MILWB02S |OFFLINE|
AppService State localclus:MILWB03S |OFFLINE|
root@MILWB03S # hasys -state
#System Attribute Value
MILWB02SCluster:MILWB02S SysState EXITED
localclus:MILWB03S SysState RUNNING
root@MILWB03S # vradmin -g datadg repstatus datarvg
VxVM VVR vradmin INFO V-5-52-1205 Primary is unreachable or RDS has configuration error. Displayed status information is from Secondary and can be out-of-date.
Replicated Data Set: datarvg
Primary:
Host name: 10.66.28.53
RVG name: datarvg
DG name: datadg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: srl_vol
SRL size: 1.00 G
Total secondaries: 1
Secondary:
Host name: 10.66.28.54
RVG name: datarvg
DG name: datadg
Data status: consistent, up-to-date
Replication status: paused due to network disconnection
Current mode: asynchronous
Logging to: SRL (0 updates behind, last update ID 5730.50511)
Timestamp Information: behind by 0h 0m 0s
Last Update on Primary: May 29 13:32:06
Secondary up-to-date as of: May 29 13:32:06
Config Errors:
10.66.28.53: Pri or Sec IP not available or vradmind not running, stale information
is this situation correct ?
I decided to manually start the service (AppService) on secondary node, because MILWB02S is down
root@MILWB03S # hagrp -online -force AppService -sys MILWB03S
root@MILWB03S # hagrp -state AppService
#Group Attribute System Value
AppService State MILWB02SCluster:MILWB02S |OFFLINE|
AppService State localclus:MILWB03S |ONLINE|
root@MILWB03S # vradmin -g datadg repstatus datarvg
Replicated Data Set: datarvg
Primary:
Host name: 10.66.28.54
RVG name: datarvg
DG name: datadg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: srl_vol
SRL size: 1.00 G
Total secondaries: 1
Config Errors:
10.66.28.53: Pri or Sec IP not available or vradmind not running
after a lot of time, I booted the server down, and I noted a automatic switch of service from MILWB03S to MILWB02S
root@MILWB02S # hagrp -state AppService
#Group Attribute System Value
AppService State MILWB03SCluster:MILWB03S |OFFLINE|
AppService State localclus:MILWB02S |ONLINE|
root@MILWB02S # vradmin -g datadg repstatus datarvg
Replicated Data Set: datarvg
Primary:
Host name: 10.66.28.53
RVG name: datarvg
DG name: datadg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: srl_vol
SRL size: 1.00 G
Total secondaries: 1
Config Errors:
10.66.28.54: Primary-Primary configuration
Is thi situation correct ? Why the cluster switched the service ?