Previous  |  Next  >  
Product: Volume Replicator Guides   
Manual: Volume Replicator 4.1 Administrator's Guide   

Mapping the Name of a Secondary Data Volume to a Differently Named Primary Data Volume

We recommend that you use the same name for a data volume in a Primary RVG and the corresponding data volume in a Secondary RVG. However, each Secondary data volume can have a different name from that of the corresponding Primary data volume. The Primary does not know whether the name is mapped to a different name at any given Secondary. The name mapping information is maintained entirely at the Secondary. To facilitate name-mapping, each data volume associated to an RVG has a primary_datavol field. This field can be set to the name of the corresponding data volume on the Primary.

By default, global mapping is in effect, that is, the primary_datavol field is not used on any Secondary data volumes. This requires that all the Secondary data volumes have the same names as used on the Primary.

One of the prerequisites for adding a Secondary using the vradmin addsec command is that data volumes of the same names and lengths as the Primary must exist on the Secondary. When adding a Secondary using the vradmin addsec command, the Secondary data volumes cannot have different names from that of the corresponding Primary data volumes.

If you use different names for the Secondary data volumes and their corresponding Primary data volumes, the vradmin migrate command does not set the primary_datavol field on the new Primary after transferring the Primary role. To facilitates seamless transfer of the Primary role, make sure you set the primary_datavol field of the Primary data volumes, in addition to the Secondary. Note that you can use the vradmin command to perform all other VVR operations in a configuration containing differently named volumes on the Primary and Secondary.

There are two ways to set the primary_datavol field on a Secondary data volume. In the examples that follow, the commands are executed only on the Secondary. The Secondary data volume is called secondaryname-dv_name, and the corresponding Primary data volume name is dv_name.

  1. To set the name of the corresponding Primary data volume on a Secondary data volume after the volume has been associated to the Secondary RVG, use the vxedit command:
      # vxedit -g diskgroup set primary_datavol=dv_name \
         secondaryname-dv_name

    OR
  2. To set the name of the Primary data volume on a corresponding Secondary data volume when it is being associated with the Secondary RVG, specify the -m option on the vxvol command line:
    # vxvol -g diskgroup -m assoc rvg_name \
    secondaryname-dv_name dv_name
  3. On the Secondary, display the primary_datavol field for a volume using vxprint -l:
      # vxprint -g diskgroup -l secondaryname-dv_name

Output resembles:


    Volume:     secondaryname-vol03
    assoc:     rvg=rvg_name
         plexes=secondaryname-vol03-01
         primary_datavol=dv_name
Note   Note    If any volume (on the Primary or a Secondary) is associated with an RVG (as an SRL or a data volume), the vxprint -l listing for that volume will indicate the RVG name on the output line beginning with assoc:, as shown above.
 ^ Return to Top Previous  |  Next  >  
Product: Volume Replicator Guides  
Manual: Volume Replicator 4.1 Administrator's Guide  
VERITAS Software Corporation
www.veritas.com