February 5, 2009

Dataservice creation from beginning

Posted in Sun Cluster at 3:51 pm by alessiodini

I configured a dataservice on a new cluster installed , Sun Cluster 3.1u4

Resource type:

root@system01 # /usr/cluster/bin/scha_cluster_get -O ALL_RESOURCETYPES
SUNW.LogicalHostname:2
SUNW.SharedAddress:2
SUNW.HAStoragePlus:2
root@system01 #

I installed gds (Generic Data Service) resource type:

root@system01# scrgadm -a -t SUNW.gds
root@system01 # /usr/cluster/bin/scha_cluster_get -O ALL_RESOURCETYPES
SUNW.LogicalHostname:2
SUNW.SharedAddress:2
SUNW.HAStoragePlus:2
SUNW.gds:5

The version of gds is 5 , good!

after environment is configured I wrote with Gianluca a new register script:

bash-2.03# cat register_resource
#####################################
# Automatic registration of DataService
# Agent Author: A.Dini G.Pesoli
#####################################
DIR=/opt/DSER/DS_SOA
. ${DIR}/DS_SOA_env.ksh
scrgadm -a -j “DS_SOA-res” \
-g “$RESOURCEGROUP” \
-t “SUNW.gds” \
-x Start_command=”/opt/DSER/DS_SOA/DS_SOA_start.ksh” \
-x Stop_command=”/opt/DSER/DS_SOA/DS_SOA_stop.ksh ” \
-x Probe_command=”/opt/DSER/DS_SOA/DS_SOA_test.ksh ” \
-y Thorough_Probe_Interval=”60″ \
-y Network_aware=”FALSE” \
-y Retry_Count=”1″ \
-y Retry_Interval=”240″ \
-y Retry_count=”4″ \
-x Child_mon_level=”-1″
bash-2.03#

The registration was succesfully 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: