Sun Cluster 3

Resource Group Operations
Shutdown a resource group: scswitch -F -g nfs-rg Turn on a resource group: scswitch -Z -g nfs-rg Switchover a failover resource group: scswitch -z -g nfs-rg -h new_primary_node Change list of primaries for a scalable group: scswitch -z -g nfs-rd -h node1,node2,... Restart a resource group: scswitch -R -h node,node -g nfs-rg Evacuate all resources and resource groups from a node: scswitch -S -h node

Resource Operations
Disable a resource and its fault monitor: scswitch -n -j nfs-res Enable a resource and its fault monitor: scswitch -e -j nfs-res Disable fault monitor for a resource: scswitch -n -M -j nfs-res Enable fault monitor for a resource: scswitch -e -M -j nfs-res

Maintainance Operations
Boot node outside of cluster boot -x (from prom)

Place node into maintenance mode (NB, node will lose it's vote so primary node will not failure fence, ensure primary node is up and available before resuming secondary from maint) scconf -c -q node=nodename,maintstate

Other handy commands
View cluster status scstat

View cluster config scconf -p[vv]

View quorum votes scstat -q

View disk device groups scstat -D

View Dids (disk virtual devices) scdidadm -l

Reconfigure dids (after disk replacement) scdidadm -r

Switch disk devices between nodes scswith -z -D dgname -h nodename

View cluster ntp config cat /etc/inet/ntp.conf.cluster

Disable interface in IPMP group if_mpadm -d qfe1

Reenable interface in IPMP group if_mpadm -r qfe1

Resource and Resource Group properties are in 'man r_properties' and 'man rg_properties'

Clear STOP_FAILED flag scswitch -c -j resource -h node -f STOP_FAILED

Replaced a removed transport cable, this doesn't seem to work in the menu on SC3.2 scconf -a -m endpoint= :bge1,endpoint= @3

Oracle Logs
Oracle Logs are at /var/opt/SUNWscor/oracle_server|listener sometimes only one node gets the logs tho so check both.

Changing NFS shares
See this document for how to change NFS share options: http://docs.sun.com/app/docs/doc/817-6999/6mmbmf9vc?a=view

Basically, disable the fault monitor, test the change with 'share' update the cluster dfstab file (NOT /etc/dfs/dfstab!), then reenable the fault monitor.