< Previous | Next > | |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide |
Using the vxprint Display CommandsThis section describes the VVR commands that you can use to view the status of the objects that take part in replication. Displaying a Specific RLINKUse the vxprint -Pl command to display detailed information about the status of an RLINK. This command prints one record per RLINK. The following table lists the information displayed in the output. To display detailed information about a specific RLINK: # vxprint -g diskgroup -Pl rlink_name Note To display all the RLINK names in a single column, issue the following command: # vxrvg -g diskgroup [-1] getrlinks rvg_name Interpreting RLINK Flag SettingsThe following table lists the various flags that can appear in the flags field of the vxprint -Pl output. Note The Primary and Secondary RLINKs are communicating only when the connected flag is on. However, replication is taking place only if the following set of flags is displayed: write enabled attached consistent connected In all other cases, a corrective action may be needed. Displaying an Individual RVGThe vxprint -Vl command displays detailed information about the status of an individual RVG. This command is useful to determine the role of the Primary or Secondary RVG and the state of the RVG as seen by the operating system. To display detailed information about an RVG: # vxprint -g diskgroup -Vl rvg_name
The following table lists the output of the vxprint -Vl command.
Interpreting RVG Flag Settings
Displaying an Individual Data Volume
Use the vxprint -l volume_name command to display information about a specific data volume. The output fields of special interest for VVR are shown in the next table.
Shows the RVG to which this data volume is associated (rvg=).
Shows the logging type, which should always be DCM for a data volume.
Note To list all data volumes in an RVG in a single column, issue the following command: # vxrvg -g diskgroup [-1] getdatavols rvg_name Displaying the Status of a SecondaryUse the vxrlink status command to determine the status of a Secondary. This command displays different information depending on what state the replication is in for that Secondary. For example, whether the Primary is currently replicating to the Secondary, synchronizing the Secondary with a checkpoint, using the DCM to resynchronize the Secondary, or using automatic synchronization for the Secondary. To determine the state of the replication, see Displaying Consolidated Replication Status. If the state is replicating, the vxrlink status command displays whether the Secondary corresponding to the specified RLINK is up-to-date and if not, how much the Secondary is behind. Note that outstanding writes are shown even if the Secondary is replicating in synchronous mode. Although for synchronous mode, the write is considered complete to the application when the network acknowledgement is received from the Secondary, VVR still considers the write outstanding until it is written to the data volume on the Secondary. If automatic synchronization or DCM resynchronization is in progress, the vxrlink status command shows the progress of the automatic synchronization. To show the status of a Secondary # vxrlink -g diskgroup status rlink_name If replication is in progress, the output resembles: VxVM VVR vxrlink INFO V-5-1-4640 Rlink rlink_name has <x> outstanding writes, occupying <y> Kbytes (17%) on the SRL If automatic synchronization is in progress, the output resembles: VxVM VVR vxrlink INFO V-5-1-4464 Rlink rlink_name is in AUTOSYNC. 100864 Kbytes remaining. If DCM resynchronization is in progress, the output resembles: VxVM VVR vxrlink INFO V-5-1-4348 DCM is in use on Rlink rlink_name. DCM contains 88832 Kbytes. To display the Secondary status periodically, specify a time interval using the -i option. For example, to print the status of the Secondary every five seconds, use the command: # vxrlink -g diskgroup -i5 status rlink_name If replication is in progress, the output resembles: VxVM VVR vxrlink INFO V-5-1-4640 Rlink rlink_name has <x> outstanding writes, occupying <y> Kbytes (17%) on the SRL VxVM VVR vxrlink INFO V-5-1-4640 Rlink rlink_name has <x> outstanding writes, occupying <y> Kbytes (19%) on the SRL If automatic synchronization is in progress, the output resembles: VxVM VVR vxrlink INFO V-5-1-4464 Rlink rlink_name is in AUTOSYNC. 100864 Kbytes remaining. VxVM VVR vxrlink INFO V-5-1-4464 Rlink rlink_name is in AUTOSYNC. 94464 Kbytes remaining. To display the status of an RLINK with a timestamp, use the vxrlink status command with the -T option. This is useful if the Secondary is not up-to-date. The output of the command displays a timestamp in the locale's appropriate time format to indicate the time by which the Secondary is behind. For example, if there are pending writes in the Primary SRL, use the following command to check the status of the Primary: # vxrlink -g diskgroup -T status rlink_name VxVM VVR vxrlink INFO V-5-1-4640 Rlink rlink_name has <x> outstanding writes, occupying <y> Kbytes (20%) on the SRL VxVM VVR vxrlink INFO V-5-1-0 Rlink rlink_name is behind by 0:00:40 hours The second message indicates the time by which the RLINK is behind. Note If the system time is reset to a value different from that of the current system time, then, the output of the vxrlink -T status command will appropriately show a negative or an inaccurate value, until the updates that were done before resetting the system time get replicated. Displaying a List of CheckpointsVVR enables you to get a list of the Primary checkpoints using the vxrvg cplist command; the vxrlink cplist command enables you to get a list of the Secondary checkpoints. The vxrvg cplist and vxrlink cplist commands can be run on the Primary only. VVR supports a maximum of 46 checkpoints, and hence the list displays a maximum of 46 checkpoints. If you try to create more than the specified number of checkpoints, an error message prompts you to delete older checkpoints before creating new checkpoints.
Primary checkpoints are created using the vxrvg -c checkpoint_name checkstart command on the Primary and are associated with an RVG. Issue the vxrvg cplist command to display a list of the existing Primary checkpoints associated with the specified RVG. The Primary checkpoints can be deleted using the Secondary checkpoints are created using the vxrlink -c checkpoint_name pause command on the Secondary and are associated with the RLINK. Issue the vxrlink cplist command on the Primary to display a list of the existing Secondary checkpoints associated with the specified RLINK. The Secondary checkpoint can be deleted by using the vxrlink -c checkpoint_name checkdelete rlink_name command. Note The vxrlink cplist command and the vxrlink checkdelete command must be run on the Primary only. The displayed information includes details about each checkpoint, such as checkpoint name, size, percentage of SRL used, and whether the checkpoint has been started or completed. If the SRL usage reaches 100%, the checkpoint overflows and becomes unusable. In this case, VVR displays the message Checkpoint overflowed. To display a list of Primary checkpoints, enter the following command on the Primary: # vxrvg -g diskgroup cplist rvg_name To display a list of Secondary checkpoints, enter the following command on the Primary: # vxrlink -g diskgroup cplist rlink_name where rlink_name is the name of the Primary RLINK that connects to the Secondary where the vxrlink -c checkpoint_name pause was issued. The output resembles: Name MBytes % Log Started/Completed ---- ------ ------ ----------------- a8 200 5 Completed a9 800 20 Completed a6 2000 40 Started |
^ Return to Top | < Previous | Next > |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |