Converting a Secondary RVG to Primary RVG

Use the vxrvg makeprimary command to convert a Secondary RVG to a Primary, that is to take over the Primary role. If the RVG has multiple RLINKs, with none of them attached, then it is necessary to explicitly specify the name of the RLINK to the original Primary. If you do not want to enable failback logging use the command with the -N option.

Note:

The vxrvg makeprimary command with the -F -r option performs the same task as the vxrds takeover command with the -autofb option. Hence, to perform a takeover operation you can use either of these commands.

The command when used with the -M option, enables you to migrate the Primary role even when the Primary is still available.

Note:

The vxrvg makeprimary and vxrvg makesecondary commands can be used to perform planned migration to interchange the roles when the Primary and Secondary are connected. The outcome of this is similar to what the vxrds migrate command does. Veritas also recommends that you first use the vxrvg makesecondary command on the current Primary before using the vxrvg makeprimary command 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 makeprimary command

vxrvg [-g <diskgroup>] {-F [-r]| -N | -M} makeprimary <rvg>    
\[<rlink>]

Example

vxrvg -g vvrdg -F -r makeprimary rvg rlink_sechost