Friday, April 10, 2009

Sun Cluster 3.1 (Resources)

Adding failover network resource : scrgadm –a –L –g -l
Adding shared network resource : scrgadm –a –S –g -l

adding a failover apache application and attaching the network resource
scrgadm –a –j apache_res -g \ -t SUNW.apache -y Network_resources_used = -y Scalable=False –y Port_list = 80/tcp \ -x Bin_dir = /usr/apache/bin

adding a shared apache application and attaching the network resource
scrgadm –a –j apache_res -g \ -t SUNW.apache -y Network_resources_used = -y Scalable=True –y Port_list = 80/tcp \ -x Bin_dir = /usr/apache/bin

Create a HAStoragePlus failover resource
scrgadm -a -g rg_oracle -j hasp_data01 -t SUNW.HAStoragePlus \> -x FileSystemMountPoints=/oracle/data01 \> -x Affinityon=true

Removing
scrgadm –r –j res-ip

Note: must disable the resource first

changing properties
scrgadm -c -j -y
List : scstat -g
Detailed List : scrgadm –pv –j res-ipscrgadm –pvv –j res-ip
Disable resoure monitor: scrgadm –n –M –j res-ip
Enable resource monitor: scrgadm –e –M –j res-ip
Disabling : scswitch –n –j res-ip
Enabling : scswitch –e –j res-ip

Clearing a failed resource
scswitch –c –h, -j -f STOP_FAILED

Find the network of a resource
# scrgadm –pvv –j grep –I network

Removing a resource and resource group

offline the group
# scswitch –F –g rgroup-1

remove the resource
# scrgadm –r –j res-ip

remove the resource group
# scrgadm –r –g rgroup-1

Resource Types:

Adding : scrgadm –a –t i.e SUNW.HAStoragePlus
Deleting : scrgadm –r –t
Listing : scrgadm –pv grep ‘Res Type name’

No comments: