Example--Setting the Desired Number of Secondaries (VERITAS Volume Manager)
The following example shows the scconf command that is generated by scsetup when it configures the desired number of secondaries for a device group (diskgrp1). See How to Change the Desired Number of Secondaries for a Device Group for information about changing the desired number of secondaries after a device group is created.
# scconf -a -D type=vxvm,name=diskgrp1, nodelist=host1:host2:host3,preferenced=true, \ failback=enabled,numsecondaries=2 |
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 How to Register Disk Group Configuration Changes (VERITAS Volume Manager).
Become superuser on any node of the cluster.
Determine the primary node and status for the disk device group.
# scstat -D
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.
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.
Register the disk device group configuration changes to update the global namespace, using scsetup(1M).
See How to Register Disk Group Configuration Changes (VERITAS Volume Manager).
How to Remove and Unregister a Disk Device Group (VERITAS Volume Manager)
Removing a Sun Cluster disk device group will cause the corresponding VxVM disk group to be deported, not destroyed. However, even though the VxVM disk group still exists, it cannot be used in the cluster unless re-registered.
This procedure uses the scsetup(1M) utility to remove a VxVM disk group and unregister it as a Sun Cluster disk device group.
Become superuser on any node of the cluster.
Take the disk device group offline.
# scswitch -F -D disk-device-group
-F Places the disk device group offline.
-D disk-device-group Specifies the device group to take offline.
Enter the scsetup utility.
The Main Menu is displayed.
# scsetup
To work with VxVM device groups, type 4 (Device groups and volumes).
The Device Groups Menu is displayed.
To unregister a VxVM disk group, type 3 (Unregister a VxVM device group).
Follow the instructions and enter the VxVM disk group to be unregistered.
Example--Removing and Unregistering a VERITAS Volume Manager Disk Device Group
The following example shows the VxVM disk device group dg1 taken offline, and the scconf(1M) command generated by scsetup when it removes and unregisters the disk device group.
# scswitch -F -D dg1 # scsetup scconf -r -D name=dg1 |
How to Add a Node to a Disk Device Group (VERITAS Volume Manager)
This procedure adds a node to a disk device group using the scsetup(1M) utility.
The prerequisites to add a node to a VxVM disk device group are:
Superuser privilege on a node in the cluster
The name of the VxVM device group to which the node will be added
The name or node ID of the nodes to add
Become superuser on any node of the cluster.
Enter the scsetup(1M) utility
The Main Menu is displayed.
# scsetup
To work with VxVM disk device groups, type 4 (Device groups and volumes).
The Device Groups Menu is displayed.
To add a node to a VxVM disk device group, type 4 (Add a node to a VxVM device group).
Follow the instructions and enter the device group and node names.
Verify that the node has been added.
Look for the device group information for the new disk displayed by the following command.
# scconf -p
Example--Adding a Node to a VERITAS Volume Manager Disk Device Group
The following example shows the scconf command generated by scsetup when it adds a node (phys-schost-3) to a VxVM disk device group (dg1), and the verification step.
# scsetup scconf a D type=vxvm,name=dg1,nodelist=phys-schost-3 # scconf -p Device group name: dg1 Device group type: VXVM Device group failback enabled: yes Device group node list: phys-schost-1, phys-schost-3 |



