Converting a Primary RVG to Secondary RVG
Use the
vxrvg makesecondary command to convert a Primary RVG to Secondary. For an RVG with multiple Secondaries attached, it is necessary to specify the name of the RLINK that represents the new Primary. This command keeps the specified RLINK attached and detaches the remaining RLINKs.
However, if the Primary RVG is part of a VCS cluster and the RVGPrimary resource for this RVG exists, then Volume Replicator does not execute the
vxrvg makesecondary command on this RVG as this can cause the resource to get into a faulted state.
Note: Thevxrvg makeprimaryandvxrvg makesecondarycommands can be used to perform planned migration to interchange the roles even when the Primary and Secondary are connected. The outcome of this is similar to what thevxrds migratecommand does. InfoScale recommends that you first use thevxrvg makesecondarycommand on the current Primary before using thevxrvg makeprimarycommand on the Secondary. Doing it in reverse order makes the volumes writable on both hosts for a short while in between, and can result in data corruption.
Syntax for
vxrvg makesecondary command
vxrvg [-g <diskgroup>] makeSecondary <rvg> [<rlink>]
Related information