Sun Cluster System Administration Guide for Solaris OS

ProcedureSPARC: How to Remove a Volume From a Disk Device Group (VERITAS Volume Manager)


Note –

After removing the volume from the disk device group, you must register the configuration changes to the disk device group using the procedure SPARC: How to Register Disk Group Configuration Changes (VERITAS Volume Manager).


Steps
  1. Become superuser on any node of the cluster.

  2. Determine the primary node and status for the disk device group.


    # scstat -D
    
  3. If the disk device group is offline, bring it online.


    # scswitch -z -D disk-device-group  -h node
    
    -z

    Performs the switch.

    -D disk-device-group

    Specifies the device group to switch.

    -h node

    Specifies the name of the node to switch to. This node becomes the new primary.

  4. From the primary node (the node currently mastering the disk device group), remove the VxVM volume in the disk group.


    # vxedit -g diskgroup -rf rm volume
    
    -g diskgroup

    Specifies the VxVM disk group containing the volume.

    -rf rm volume

    Removes the specified volume. The -r option makes the operation recursive. The -f option is required to remove an enabled volume.

  5. Register the disk device group configuration changes to update the global namespace, using scsetup(1M).

    See SPARC: How to Register Disk Group Configuration Changes (VERITAS Volume Manager).