Symantec logo

Dissociating a data volume from its Replicated Data Set

You can remove a data volume, a volume set, or a component volume of a volume set from a Replicated Data Set (RDS) using the vradmin delvol command. The vradmin delvol command dissociates a data volume from all the RVGs in an RDS; the volumes are not deleted.

The vradmin delvol command can be entered from any host in an RDS. If the vradmin delvol command fails on any of the hosts in the RDS during its execution, the original configuration remains unchanged.

 To remove a data volume from an RDS when the Primary RVG has been stopped

Type the following command on any host in the RDS:

# vradmin -g diskgroup delvol local_rvgname \

volume_name|vset_name

The argument local_rvgname is the name of the RVG on the local host and represents its RDS.

The argument volume_name is the name of the volume to be removed from the RDS. If the volume specified is a component of a volume set, this command removes the component volume from the RDS but not from the volume set.

The argument vset_name can be used to specify a volume set name instead of a volume name; in this case, the entire volume set is dissociated from the RDS.

 To remove a component volume from a volume set associated to the RDS when the Primary RVG has been stopped

Type the following command on any host in the RDS:

# vradmin -g diskgroup delvol -fromvset local_rvgname \

volume_name

The argument local_rvgname is the name of the RVG on the local host and represents its RDS.

The argument volume_name is the name of the component volume to be removed from the volume set. The specified volume is also removed from the RDS.

 To remove a data volume from an RDS when the Primary RVG has not been stopped


  Note   Although you can use -f option with vradmin delvol command to remove a data volume from an RDS when the Primary RVG has not been stopped, this is not the recommended approach. It is recommended that you stop the Primary RVG before proceeding with this command.


Type the following command on any host in the RDS:

# vradmin -g diskgroup -f delvol local_rvgname volume_name

The argument local_rvgname is the name of the RVG on the local host and represents its RDS.

The argument volume_name is the name of the volume to be removed from the RDS.

Example:

This example shows how to remove a data volume hr_dv01 from all RVGs of its RDS. The data volume hr_dv01 resides on the local host london on which the command is entered. The data volume hr_dv01 is associated with the local RVG hr_rvg, which belongs to the disk group hrdg.

# vradmin -g hrdg delvol hr_rvg hr_dv01

 To remove a component volume from a volume set associated to the RDS when the Primary RVG has not been stopped


  Note   Although you can use -f option with vradmin delvol command to remove a component volume from a volume set associated to an RDS when the Primary RVG has not been stopped, this is not the recommended approach. It is recommended that you stop the Primary RVG before proceeding with this command.


Type the following command on any host in the RDS:

# vradmin -g diskgroup -f delvol -fromvset local_rvgname \

volume_name

The argument local_rvgname is the name of the RVG on the local host and represents its RDS.

The argument volume_name is the name of the component volume to be removed from the volume set. The specified volume is also removed from the RDS.