Sun Cluster Common Tasks
This sheet contains common tasks for both Sun Cluster 3.1 and 3.2, I will try not to dupilcate the same stuff I have in the Sun Cluster cheatsheet.
Cluster Tasks
3.1 |
3.2 |
|
shutdown entire cluster | ##other nodes in cluster |
cluster shutdown -g0 -y |
shutdown single node | scswitch -S -h <host> ## login to the node that you wish to shutdown shutdown -i5 -g0 -y |
## login to the node that you wish to shutdown clnode evacuate <node> shutdown -i5 -g0 -y |
reboot a node into non-cluster mode | ok> boot -x |
ok> boot -x |
Backup the cluster | /usr/cluster/bin/cluster export -o <configfile> Note: the export command will create a XML file of the configuration of the cluster, this file can then be imported |
Node Tasks
3.1 |
3.2 |
|
Put a node into maintenance state | scconf -c -q node=<node>,maintstate Note: use the scstat -q command to verify that the node is in maintenance mode, the vote count should be zero for that node. |
## On the node to be disabled clnode evacuate <node> shutdown -i0 -g0 -y ## On another node within the cluster clquorum disable -t node <node> clquorum status -t node |
Get a node out of maintenance state | scconf -c -q node=<node>,reset Note: use the scstat -q command to verify that the node is in maintenance mode, the vote count should be one for that node. |
## On the node to be disabled clnode evacuate <node> shutdown -i0 -g0 -y ## On another node within the cluster clquorum enable -t node <node> clquorum status -t node |
Adding a node to the cluster | ## Make sure that all the cluster software has been installed see installation ## using the clsetup text GUI ## Commandline |
|
Removing a node from the cluster | ## Make sure that all the cluster software has been ## using the clsetup text GUI ## Commandline, make sure you are on the node that |
|
Evacuate a node from the cluster | scswitch -S -h <node> | clnode evacuate <node> |
Quorum Tasks
3.1 |
3.2 |
|
Replacing a faulty quorum device | 1. Create new temporary quorum device Note: commands can be fond in the cheatsheet |
1. Create new temporary quorum device Note: commands can be fond in the cheatsheet |
Adding a NetApp NAS quorum device | n/a | 1. Install the ISCSI license from NetApp 2. configure a ISCSI LUN 3. Configure the NetApp to use NTP 4. configure the cluster to see the ISCSI device 5. configure the cluster to use the ISCSI device Note: make sure that the NetApp uses the same NTP server as the cluster. Also a cluster can use a NAS device for only a single quorum device |
Devices
3.1 |
3.2 |
|
Display the global SCSI protocol settings |
|
cluster show -t global |
Display device settings | cldevice show <device> |
Miscellanous
3.1 |
3.2 |
|
Adding a new veritas volume | ##Create a volume |
##Create a volume |
Remove and unregister a disk group | ## Make use that all resources using the disk group are offline ## 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 |
## Make use that all resources using the disk group are offline ## 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 |
Create a failover resource group with HAstoragePlus and logicalHostname resources | ## Register resource types scrgadm -a -t SUNW.HAStoragePlus scrgadm -a -t SUNW.LogicalHostname ## 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 |
## 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 |
## Register resource types ## Create the SCALABLE resource group clresourcegroup create ## 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 |
## 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> Note: you can also use scsetup (option 3) |