![]() |
![]() |
| |||||||||||||||||||||||||
SPARC: Example--Registering VERITAS Volume Manager Disk Group Configuration ChangesThe following example shows the scconf command generated by scsetup when registering a changed VxVM disk device group (dg1). This example assumes that the VxVM disk group and volume were created previously.
|
# scsetup |
The Main Menu is displayed.
To work with VxVM disk device groups, type 4 (Device groups and volumes).
The Device Groups Menu is displayed.
To change key properties of a device group, type 6 (Change key properties of a device group).
The Change Key Properties Menu is displayed.
To change the desired number of secondaries, type 2 (Change the numsecondaries property).
Follow the instructions and type the desired number of secondaries to be configured for the disk device group. After an appropriate value has been typed, the corresponding scconf command is executed. Following, a log is printed, and the user is returned to the previous menu.
Validate the device group configuration by using the scconf
-p command. # scconf -p | grep Device
Device group name: dg-schost-1
Device group type: VxVM
Device group failback enabled: yes
Device group node list: phys-schost-1,phys-schost-2, phys-schost-3
Device group ordered node list: yes
Device group desired number of secondaries: 1
Device group diskset name: dg-schost-1
Note - If you change any configuration information for a VxVM disk group or volume that is registered with the cluster, you must reregister the disk device group by using scsetup. Such configuration changes include adding or removing volumes, as well as changing the group, owner, or permissions of existing volumes. Reregistration after configuration changes ensures that the global namespace is in the correct state. See How to Update the Global Device Namespace.
Verify the primary node and status for the disk device group.# scstat -D
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 |
SPARC: 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).
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 SPARC: How to Register Disk Group Configuration Changes (VERITAS Volume Manager).
SPARC: 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.
The following example shows the VxVM disk device group dg1 taken offline, and the scconf command generated by scsetup when it removes and unregisters the disk device group.
# scswitch -F -D dg1 # scsetup scconf -r -D name=dg1 |
Previous Contents Index Next ![]() |