Decreasing the Size of the SRL on the Primary
Before resizing the SRL, do the following:
To decrease the size of the SRL on the Primary
-
If the application and the RVG are not configured as VCS resources, proceed to the next step.
OR
If the application and the RVG are configured as VCS resources, OFFLINE the application resource, as well as, the RVG resource and then proceed to step 4. To OFFLINE resources, use the hagrp command. For more information on offlining resources, see the VERITAS Cluster Server User's Guide.
-
Make sure that the application is not running.
-
Stop the RVG:
# vxrvg -g diskgroup stop rvg_name
-
Make sure all RLINKs are up-to-date:
# vxrlink -g diskgroup status rlink_name
Note
If you see any outstanding writes, do not proceed to step 5.
-
Detach all RLINKs:
# vxrlink -g diskgroup det rlink_name
-
Dissociate the SRL from the RVG.
Note
Any checkpoints that you have created will be lost after dissociating the SRL.
# vxvol -g diskgroup dis srl_name
-
Decrease the size of the Primary SRL using the vxassist command. For example, to decrease the size of the SRL:
# vxassist -g diskgroup shrinkto srl_name new_length
Note
It is recommended that the SRL reside on disks that are not being used for the data volumes. Also, it is recommended that the Primary and Secondary SRLs must be of the same size. See the vxassist(1M) manual page for more information.
-
Reassociate the SRL with the RVG:
# vxvol -g diskgroup aslog rvg_name srl_name
-
Attach all RLINKs:
# vxrlink -f att rlink_name
Note
The RLINK was up-to-date when it was detached in step 5 and the Secondary is consistent with the Primary; therefore, it is appropriate to use the force option here.
-
If the application and the RVG are not configured as VCS resources, proceed to the next step.
OR
If the application and the RVG are configured as VCS resources, ONLINE the RVG resource, as well as, the application resource. To ONLINE resources, use the hagrp command. For more information on onlining resources, see the VERITAS Cluster Server User's Guide. The resize operation is complete. Do not perform step 11 and step 12.
-
Start the RVG:
# vxrvg -g diskgroup start rvg_name
-
Restart the application.
|