Sun Cluster 3.1 Common Tasks
Shutdown a node within the cluster
#scswitch –S –h <host> Note: |
Shutdown all the node/s in the cluster
#scshutdown –g0 –y # This command will bring all nodes down. |
Boot a node without entering the cluster
| ok> boot –x |
Put a node into maintenance mode
| 1. Switch all resources # scswitch –S –h <host> 2. Shutdown the node # shutdown –i5 –g0 –y 3. Put the node into maintenance mode (command run on another node) # scconf –c –q node=sun2,maintstate # scstat –q check node is in maintstate 4. You can now “boot –x” and work on the node |
Add and remove a quorum device
|
|
Replace a faulty disk which is a quorum device
1. Create new temporary quorum device |
Adding a new veritas volume
The device drivers that are assigned should match. The /etc/name_to_major vxio should be the same on all nodes. Becareful if the boot disks are encapsulated this is more complex consult user guide.
After creating a veritas volume you must sync the new volume with the cluster, if you get the error were you cannot newfs/mkfs a newly create volume then the cluster does not know about it, you must run the following command:
# scconf –c –D name=<volume group>,sync
1. Create a volume |
Remove and unregister a disk group
1. Make use that all resources using the disk group are offline and removed 2 Take the device group offline Note: if you have problems regarding the device being busy use the vxdg -t import command then follow from step 1 |
Choosing Between HAStorage and HAStoragePlus
To determine whether to create HAStorage or HAStoragePlus resources within a data service resource group, consider the following criteria.
Use HAStorage if you are using Sun Cluster 3.0 12/01 or earlier.
Use HAStoragePlus if you are using Sun Cluster 3.0 5/02 or Sun Cluster 3.1. (If you want to integrate any file system locally into a Sun Cluster configured for failover, you must upgrade to Sun Cluster 3.0 5/02 or Sun Cluster 3.1 and use the HAStoragePlus resource type.
Disabling a Resource and Moving the Resource group into UNMANAGED State
Disable the resource Offline the resource group Move the resource group to umanaged |
Create a failover resource group with HAstoragePlus and logicalHostname resources
register resource types create the FAILOVER resource group create the LogicalHostname failover resource create the HAStoragePlus failover resource enable the resources (disabled by default) online the resource group Note: the ipmp network group was created using the above IP Networking group information, also the mountpoint was added to the /etc/vfstab file |
Create a scalable resource group with HAstoragePlus and shared address resources
register resource types create the SCALABLE resource group create the LogicalHostname scalable resource create the HAStoragePlus failover resource enable the resources (disabled by default) online the resource group Note: the ipmp network group was created using the above IP Networking group information, also the mountpoint was added to the /etc/vfstab file |
Remove a resource type
Disable the resource type remove each resource of the resource type that you will remove remove the resource type |
Installing Agents
#scinstall -ik -s apache -d <path to were the agent is> |
IP Networking groups
Use the below entry in the /etc/hostname.??? File to create a automatic IP network group
#cat /etc/hostname.qfe0 note: deprecated means that the IP address of the physical interface will not receive packets. only the VIP address will receive packets. |