Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

VVR - How to add host has secondary after take over

Created: 30 Apr 2013 • Updated: 28 May 2013 | 2 comments
This issue has been solved. See solution.

Hi,

I've done a take over after a crash of my primary storage.

After done all of the hardware recover, we can see than the data on this storage are lost.

I have recreate the disk group and the volumes, but  cannot  add the server has secondary because it's allready exist.

I've tried to delete the rlink with vxrlink det and vxrlink dis and vxedit rm but I've a error when I execute the vxrlink det on the primary:

"vxrlink ERROR V-5-1-10128  Database file not found"

anyone can help on this ?

Thanks,

Hervé

Operating Systems:

Comments 2 CommentsJump to latest comment

mikebounds's picture

Please provide output from both servers of:

vxprint -v
vxprint -VPl

I think you are saying you can't run "vradmin addsec" as there is already rlink on primary, so deleting rlink and then running "vradmin addsec" should work.  Alternatively you can run on the secondary:

vradmin createpri  
vxrvg makesecondary
vxmake rlink
vxrlink assoc

Then start replication (vradmin startrep, or vxrlink att).

Also, have you tried using "-f" with vxlrink det

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

hzuchuat's picture

Hi,

Probably an OS issue, the server crashed last wednesday and needed an reinstall of the OS because the / filesystem corrupted.

After the reinstall, all the commands are ok:

 

root@sonacgbb# vxrlink -g datadg -f det rlk_sonacgbp_vvr_datarvg
VxVM VVR vxrlink INFO V-5-1-6466 Data volumes are in use. Before restarting replication a complete synchronization of the secondary data volumes must be performed.
root@sonacgbb# vxrlink -g datadg dis rlk_sonacgbp_vvr_datarvg
root@sonacgbb# vxedit -g datadg rm rlk_sonacgbp_vvr_datarvg
root@sonacgbb# vradmin -l printrvg
Replicated Data Set: datarvg
Primary:
        HostName: sonacgbb      <localhost>
        RvgName: datarvg
        DgName: datadg
        datavol_cnt: 88
        vset_cnt: 0
        srl: srl0
        RLinks:
 
 
root@sonacgbb# vradmin -g datadg repstatus datarvg
Replicated Data Set: datarvg
Primary:
  Host name:                  sonacgbb
  RVG name:                   datarvg
  DG name:                    datadg
  RVG state:                  enabled for I/O
  Data volumes:               88
  VSets:                      0
  SRL name:                   srl0
  SRL size:                   32.00 G
  Total secondaries:          0
 
root@sonacgbb# vradmin -g datadg addsec datarvg sonacgbb_vvr sonacgbp_vvr
root@sonacgbb# vradmin -g datadg repstatus datarvg
Replicated Data Set: datarvg
Primary:
  Host name:                  sonacgbb_vvr
  RVG name:                   datarvg
  DG name:                    datadg
  RVG state:                  enabled for I/O
  Data volumes:               88
  VSets:                      0
  SRL name:                   srl0
  SRL size:                   32.00 G
  Total secondaries:          1
 
Secondary:
  Host name:                  sonacgbp_vvr
  RVG name:                   datarvg
  DG name:                    datadg
  Data status:                inconsistent
  Replication status:         stopped (primary detached)
  Current mode:               N/A
  Logging to:                 SRL
  Timestamp Information:      N/A
 
root@sonacgbb# vradmin -g datadg -a startrep datarvg
 
Thanks for your help.
 
Regards,
Hervé
SOLUTION