The vradmin delsec command removes a Secondary RVG from its RDS. The vradmin delsec command can be entered from any host in an RDS.
The vradmin delsec command removes the Secondary RVG from its RDS on the specified Secondary host. Before executing this command, you must stop replication to the specified Secondary, using the vradmin stoprep command.
The vradmin delsec command performs the following by default:
Dissociates the data volumes and SRL from the Secondary RVG.
Removes the Secondary RVG from its RDS, deletes the Secondary RVG, and deletes the associated Primary and Secondary RLINKs.
The vradmin delsec command does not delete data volumes and the SRL.
To remove a Secondary from an RDS
# vradmin -g diskgroup delsec local_rvgname sec_hostname
The argument local_rvgname is the name of the RVG on the local host and represents its RDS.
The argument sec_hostname is the name of the Secondary host as displayed in the output of the vradmin printrvg command.
Example:
This example removes the Secondary RVG hr_rvg from its RDS. Table: Sample configuration shows the sample configuration.
Table: Sample configuration
Attribute |
Value on Primary |
Value on Secondary |
---|---|---|
Host Name displayed in the output of the vradmin printrvg command |
seattle |
london |
RVG |
hr_rvg |
hr_rvg |
Disk Group |
hrdg |
hrdg |
Because the command is entered on the Primary seattle, the local RVG is the Primary RVG hr_rvg belonging to the disk group hrdg.
To remove the Secondary RVG hr_rvg from its RDS, type the following command on seattle:
# vradmin -g hrdg delsec hr_rvg london