![]() |
![]() |
| |||||||||||||||||||
Example--Changing the Desired Number of SecondariesThe following example shows the scconf command that is generated by scsetup when it configures the desired number of secondaries for a device group (dg-schost-1). This example assumes that the disk group and volume were created previously.
The following example shows use of a null string value to configure the default number of secondaries. The device group will be configured to use the default value, even if the default value changes.
|
-- Device Group Servers --
Device Group Primary Secondary
------------ ------- ---------
Device group servers: phys-schost-2 - -
Device group servers: phys-schost-1 phys-schost-2 phys-schost-3
Device group servers: phys-schost-3 - -
-- Device Group Status --
Device Group Status
------------ ------
Device group status: phys-schost-2 Offline
Device group status: phys-schost-1 Online
Device group status: phys-schost-3 Offline
|
When using the scconf command, look for the information listed under device groups.
# scconf -p ... Device group name: dg-schost-1 Device group type: SDS/SVM Device group failback enabled: yes Device group node list: phys-schost-2, phys-schost-3 Device group diskset name: dg-schost-1 |
How to Switch the Primary for a Device GroupThis procedure can also be used to start (bring online) an inactive device group.
You can also bring an inactive device group online, or switch the primary for a device group, by using the SunPlex Manager GUI. See the SunPlex Manager online help for more information.
Become superuser on any node of the cluster.
Use scswitch(1M)
to switch the disk device group primary.# 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 become the new primary. |
Verify that the disk device group has been switched to the new primary.
If the disk device group is properly registered, information for the new disk device group displays when using the following command.
# scstat -D |
The following example shows how to switch the primary for a disk device group and verify the change.
# scswitch -z -D dg-schost-1 -h phys-schost-1
# scstat -D
-- Device Group Servers --
Device Group Primary Secondary
------------ ------- ---------
Device group servers: dg-schost-1 phys-schost-1 phys-schost-2
-- Device Group Status --
Device Group Status
------------ ------
Device group status: dg-schost-1 Online
|
How to Put a Disk Device Group in Maintenance StatePutting a device group in maintenance state prevents that device group from automatically being brought online whenever one of its devices is accessed. You should put a device group in maintenance state when completing repair procedures that require that all I/O activity be acquiesced until completion of the repair. Putting a device group in maintenance state also helps prevent data lost by ensuring that a disk device group is not brought online on one node while the diskset or disk group is being repaired on another node.
Note - Before a device group can be placed in maintenance state, all access to its devices must be stopped, and all dependent file systems must be unmounted.
Place the device group in maintenance state.# scswitch -m -D disk-device-group
If the repair procedure being performed requires ownership of a diskset or disk group, manually import that diskset or disk group.
For Solstice DiskSuite/Solaris Volume Manager:
# metaset -C take -f -s diskset |
Caution - If you are taking ownership of a Solstice DiskSuite/Solaris Volume Manager diskset, the metaset -C take command must
be used when the device group is in maintenance state. Using metaset
-t will bring the device group online as part of taking ownership.
If you are importing a VxVM disk group, the -t flag must
be used when importing the disk group. This prevents the disk group from automatically
being imported if this node is rebooted.
For VERITAS Volume Manager:
# vxdg -t import disk-group-name |
Complete whatever repair procedure you need to perform.
Release ownership of the diskset or disk group.
Caution - Before taking the disk device group out of maintenance state,
you must release ownership of the diskset or disk group. Failure to do so
may result in data loss.
For Solstice DiskSuite/Solaris Volume Manager:
# metaset -C release -s diskset |
For VERITAS Volume Manager:
# vxdg deport disk-group-name |
Bring the disk device group online.# scswitch -z -D disk-device-group -h node
Previous Contents Index Next ![]() |