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.
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 bringing resources offline, see the Veritas Cluster Server User's Guide.
# 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. |
# vxrlink -g diskgroup det rlink_name
Dissociate the SRL from the RVG.
# 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
Reassociate the SRL with the RVG:
# vxvol -g diskgroup aslog rvg_name srl_name
# 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.
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 bringing resources online, see the Veritas Cluster Server User's Guide. The resize operation is complete.
# vxrvg -g diskgroup start rvg_name