Sponsored Content
Special Forums UNIX and Linux Applications High Performance Computing sun Cluster resource group cant failover Post 302213080 by lesliek on Wednesday 9th of July 2008 06:16:27 AM
Old 07-09-2008
Sun cluster 3.2

hi,

I have also attached acopy of the /etc/cluster/ccr/rgm_rg_proxy2-rg
file:

bash-3.00# cat rgm_rg_proxy2-rg
ccr_gennum 6
ccr_checksum 53FF13F4E152CAB05ED6D524C74B089C
Unmanaged FALSE
Nodelist 1,2,3,4
Maximum_primaries 1
Desired_primaries 1
Failback FALSE
RG_System FALSE
Resource_list proxy2-HAS-rs,proxy2-zone-rs
RG_dependencies
Global_resources_used *
RG_mode Failover
Implicit_network_dependencies TRUE
Pathprefix
RG_description
Pingpong_interval 3600
RG_project_name
RG_SLM_type manual
RG_SLM_pset_type default
RG_SLM_CPU_SHARES 1
RG_SLM_PSET_MIN 0
RG_affinities
Auto_start_on_new_cluster TRUE
Suspend_automatic_recovery FALSE
Ok_To_Start
RS_proxy2-HAS-rs Type=SUNW.HAStoragePlus:6;Type_version=6;R_description=;On_off_switch=1,2,3,4;Monitored_switch=1,2,3 ,4;Resource_project_name=;Resource_dependencies=;Resource_dependencies_weak=;Resource_dependencies_r estart=;Resource_dependencies_offline_restart=;Extension;FilesystemMountPoints=/opt/zones/mail/proxy2.mail.internal,/opt/zones/mail/proxy2.mail.internal/mounts/var
RS_proxy2-zone-rs Type=SUNW.gds:6;Type_version=6;R_description=;On_off_switch=1,2,3,4;Monitored_switch=1,2,3,4;Resourc e_project_name=;Resource_dependencies=proxy2-HAS-rs;Resource_dependencies_weak=;Resource_dependencies_restart=;Resource_dependencies_offline_restart= ;Extension;Start_command=/opt/SUNWsczone/sczbt/bin/start_sczbt -R proxy2-zone-rs -G proxy2-rg -P /opt/ParameterFile;Stop_command=/opt/SUNWsczone/sczbt/bin/stop_sczbt -R proxy2-zone-rs -G proxy2-rg -P /opt/ParameterFile;Probe_command=/opt/SUNWsczone/sczbt/bin/probe_sczbt -R proxy2-zone-rs -G proxy2-rg -P /opt/ParameterFile;Network_aware=FALSE;Stop_signal=9
 

10 More Discussions You Might Find Interesting

1. HP-UX

ServiceGuard cluster & volume group failover

I have a 2-node ServiceGuard cluster. One of the cluster packages has a volume group assigned to it. When I fail the package over to the other node, the volume group does not come up automatically on the other node. I have to manually do a "vgchange -a y vgname" on the node before the package... (5 Replies)
Discussion started by: Wotan31
5 Replies

2. High Performance Computing

Veritas Cluster Server Management Console IP Failover

I have just completed a first RTFM of "Veritas Cluster Server Management Console Implementation Guide" 5.1, with a view to assessing it to possibly make our working lives easier. Unfortunately, at my organisation, getting a test installation would be worse than pulling teeth, so I can't just go... (2 Replies)
Discussion started by: Beast Of Bodmin
2 Replies

3. Solaris

Sun Cluster 3.1 failover

Hi, We have two sun SPARC server in Clustered (Sun Cluster 3.1). For some reason, System 1 failed over to System 2. Where can I find the logs which could tell me the reason for this failover? Thanks (5 Replies)
Discussion started by: Mack1982
5 Replies

4. AIX

Resource Group Monitoring

Hi, I have a requirement to monitor the HACMP Resource Groups. At present in my environment, if the Resource Groups fail over from preferred node to Secondary node we dont get notification. Can some one help me in creating a scrript. I have more than one RG online. (Max 4 Resource Groups in... (2 Replies)
Discussion started by: srnagu
2 Replies

5. Gentoo

How to failover the cluster ?

How to failover the cluster ? GNU/Linux By which command, My Linux version 2008 x86_64 x86_64 x86_64 GNU/Linux What are the prerequisites we need to take while failover ? if any Regards (3 Replies)
Discussion started by: sidharthmellam
3 Replies

6. AIX

Adding a Volume Group to an HACMP Resource Group?

Hi, I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over) Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies

7. Solaris

Sun cluster 4.0 - zone cluster failover doubt

Hello experts - I am planning to install a Sun cluster 4.0 zone cluster fail-over. few basic doubts. (1) Where should i install the cluster s/w binaries ?. ( global zone or the container zone where i am planning to install the zone fail-over) (2) Or should i perform the installation on... (0 Replies)
Discussion started by: NVA
0 Replies

8. Solaris

Solaris Cluster Failover based on scan rate

Dear Experts, If there is a possible Solaris Cluster failover to second node based on scan rate? I need the documentation If solaris cluster can do this. Thank You in Advance Edy (3 Replies)
Discussion started by: edydsuranta
3 Replies

9. Red Hat

Linux Cluster failover issue

Hi Guys, I am not much aware of clusters but i have few questions can someone provide the overview as it would be very helpful for me. How can i perform cluster failover test to see all the services are failing back to other node ? If it is using veritas cluster then what kind of... (2 Replies)
Discussion started by: munna529
2 Replies

10. Solaris

Process to add mount point in Sun Cluster existing HAplus resource

Hi Well I would like to know step by step process of adding a mountpoint in HAPLUS resource in SUN cluster as I go the below command to add a mount point but not the step by step process of adding a mount point in existing HA Plus resource. clrs set -p FileSystemMountPoints+=<new_MP>... (3 Replies)
Discussion started by: amity
3 Replies
SUNW.gds(5)						     Sun Cluster Miscellaneous						       SUNW.gds(5)

NAME
SUNW.gds - resource type for making simple network-aware and nonnetwork-aware applications highly available or scalable DESCRIPTION
The Generic Data Service (GDS) is a mechanism that enables you to make simple network-aware and nonnetwork-aware applications highly avail- able or scalable by plugging them into the Sun Cluster Resource Group Manager (RGM) framework. The GDS contains a fully functional Sun Cluster resource type, complete with callback methods (rt_callbacks(1HA)) and a Resource Type Reg- istration (RTR) file (rt_reg(4)). Standard Properties Network_resources_used (string array) A list of logical-hostname or shared-address network resources upon which this resource has a dependency. This list contains all net- work-address resources that appear in the properties Resource_dependencies, Resource_dependencies_weak, Resource_dependencies_restart, or Resource_dependencies_offline_restart. This property is updated automatically by the RGM, based on the setting of the resource-dependencies properties. You do not set this property directly. Instead, use the Resource_dependencies property. Category Conditional/Optional Default The empty list Tunable Any time Port_list (string array) Specifies a comma-separated list of port numbers on which the application listens. See the r_properties(5) man page. The Port_list property must be specified in the start script that Agent Builder creates or with the clresource command if you are using Sun Cluster administration commands. Note - If Network_aware is set to False, Port_list is not required. Category Conditional/Required Default No default Tunable Any time Resource_dependencies (string array) Specifies a list of resources upon which a resource depends. This list includes any logical-hostname or shared-address network resources that are used by a resource. The default value for this property is null. If the Network_aware property is set to true, you must set this property to the logical-hostname or shared-address network resources on which the application is listening. Before you create the GDS resource, a LogicalHostname or SharedAddress resource must already be configured. You can specify one or more resource names. Each network resource can contain one or more logical hostnames. See the clreslogicalhost- name(1CL) and clressharedaddress(1CL) man pages for more information. You can specify an alternate kind of dependency by using the Resource_dependencies_weak, Resource_dependencies_restart, or Resource_dependencies_offline_restart property instead of the Resource_dependencies property. For more information, see the r_proper- ties(5) man page. Category Optional Default The empty list Tunable Any time Start_timeout (integer) Specifies the timeout value, in seconds, for the start command. Category Optional Default 300 seconds Tunable Any time Stop_timeout (integer) Specifies the timeout value, in seconds, for the stop command. Category Optional Default 300 seconds Tunable Any time Validate_timeout (integer) Specifies the timeout value, in seconds, for the validate command. Category Optional Default 300 seconds Tunable Any time Extension Properties Child_mon_level (integer) Provides control over the processes that are monitored through the Process Monitor Facility (PMF). This property denotes the level to which the forked children processes are monitored. Omitting this property or setting this property to the default value is the same as omitting the -C option for pmfadm(1M): all children (and their descendents) are monitored. Category Optional Default -1 Tunable At creation Failover_enabled (boolean) Allows the resource to fail over. If this property is set to False, failover of the resource is disabled. You can use this property to prevent the application resource from initiating a failover of the resource group. Note - Use the Failover_mode property instead of the Failover_enabled extension property because Failover_mode better controls failover behavior. For more information, see the descriptions of the LOG_ONLY and RESTART_ONLY values for Failover_mode in r_properties(5). Category Optional Default True Tunable When disabled Log_level (enum) Specifies the level, or type, of diagnostic messages that are logged by GDS. You can specify None, Info, or Err for this property. When you specify None, diagnostic messages are not logged by GDS. When you specify Info, both information and error messages are logged. When you specify Err, only error messages are logged. Category Optional Default Info Tunable Any time Network_aware (boolean) This property specifies whether an application uses the network. Category Optional Default True Tunable At creation Probe_command (string) Specifies the command that periodically checks the health of a network-aware or nonnetwork-aware application. This command must be a complete command line that can be passed directly to a shell to probe the application. The probe command returns with an exit status of 0 if the application is running correctly. The exit status of the probe command is used to determine the severity of the failure of the application. This exit status, called probe status, is an integer between 0 (for success) and 100 (for complete failure). The probe status can also be 201, which causes the application to fail over unless Failover_enabled is set to False. The probe status is used within the GDS probing algorithm to determine whether to restart the application locally or to fail over the application to another node or zone. If the probe command is omitted, the GDS provides its own simple probe that connects to the appli- cation on the network resource. If the connect succeeds, the GDS disconnects immediately. If both connect and disconnect succeed, the application is deemed to be running correctly. The GDS does not provide "default" probing behavior for nonnetwork-aware applications. However, a nonnetwork-aware application is started under the PMF, which monitors the application and restarts the application if it fails. The pmfadm(1M) man page contains more information. Category Optional Default Null Tunable When disabled Probe_timeout (integer) Specifies the timeout value, in seconds, for the probe command. Category Optional Default 30 seconds Tunable Any time Start_command (string) Specifies the command that starts the application. This command must be a complete command line that can be passed directly to a shell to start the application. The start command, or one of its forked children, is expected to be a long-running program or daemon which actually provides the ser- vice to clients. The start command process tree is monitored by the Process Monitor Facility (PMF) as described under the Child_mon_level extension property. If the monitored processes exit, they are restarted according to the settings of the Retry_count and Retry_interval resource properties. If the retry count is exceeded, an attempt is made to relocate the resource group to a differ- ent node or zone. The exit status that is returned by the start command or its children is ignored. Category Required Default No default Tunable When disabled Stop_command (string) Specifies the command that stops the application. This command must be a complete command line that can be passed directly to a shell to stop the application. If this property is omitted, or if the stop command exits nonzero, the GDS stops the application by using sig- nals. Category Optional Default Null Tunable When disabled Stop_signal (integer) Specifies the signal that stops the application. The values of this property are the same as those defined in signal(3HEAD). Category Optional Default 15 Tunable When disabled Validate_command (string) Specifies the absolute path to the command that validates the application. If you do not provide an absolute path, the application is not validated. The exit status of the validate command is used to determine whether the creation or update of the GDS resource should be permitted. Before creating or updating the resource, the specified validate command is executed on each node of the node list of the resource group that contains the resource. If the validate command exits nonzero, the requested resource creation or update is not permitted. Any output that is written to stdout or stderr by the validate command will be passed back to the user who issued the administrative command to create or update the resource. Such output can be used to explain why the resource validation failed. The validate command is also executed when bringing the gds resource online, before executing the Start_command extension property. If the validate command exits nonzero, it is treated as a start failure. The validate command is also executed before performing the GIVEOVER option of the scha_control command to relocate the resource group to a new node or zone. If the command exits nonzero, the giveover is blocked and the resource group remains mastered on its current node or zone. Category Optional Default Null Tunable When disabled EXAMPLES
The following examples show how to use GDS to make an application named app highly available. You can also use Sun Cluster Agent Builder (scdsbuilder(1HA)) to create scripts that contain these commands. Basic Example This example shows how to register the SUNW.gds resource type, create a resource group for the application, create the LogicalHostname resource for the logical host name hhead, create the network-aware application resource, manage the resource group, enable all its resources, and bring its resources online. At this point, the application is running, highly available, and monitored by the simple probe that is provided by GDS. You can now check the status of the application. # clresourcetype register SUNW.gds # clresourcegroup create rg1 # clreslogicalhostname create -g rg1 -h hhead # clresource create -g rg1 -t SUNW.gds -p Start_command="/usr/local/app/bin/start" -p Port_list="1234/tcp" -p Network_aware=True -p Resource_dependencies=hhead app-rs # clresourcegroup online -M rg1 # clresourcegroup status + Complex Example This example shows how to register the SUNW.gds resource type, create a resource group for the application, create the LogicalHostname resource for the logical host name hhead, create the network-aware application resource, log error messages only, manage the resource group, enable all the resources, and bring the resources online. At this point, the application is running, highly available, and monitored by the fault monitor that is specified by Probe_command. You can now check the status of the application. # clresourcetype register SUNW.gds # clresourcegroup create rg1 # clreslogicalhostname create -g rg1 -h hhead # clresource create -g rg1 -t SUNW.gds -p Start_command="/usr/local/app/bin/start" -p Stop_command="/usr/local/app/bin/stop" -p Validate_command="/usr/local/app/bin/config" -p Probe_command="/usr/local/app/bin/probe" -p stop_signal=9 -p failover_enabled=FALSE -p Start_timeout=120 -p Stop_timeout=180 -p Port_list="1234/tcp" -p Probe_timeout=60 -p Network_aware=True -p Validate_timeout=120 -p Log_level=Err -p Resource_dependencies=hhead app-rs # clresourcegroup online -M rg1 # clresourcegroup status + ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscgds | +-----------------------------+-----------------------------+ SEE ALSO
clreslogicalhostname(1CL), clresource(1CL), clresourcegroup(1CL), clresourcetype(1CL), clressharedaddress(1CL), rt_callbacks(1HA), scds- builder(1HA), scha_control(1HA), scha_resource_get(1HA), hatimerun(1M), pmfadm(1M), signal(3HEAD), rt_reg(4), attributes(5), r_proper- ties(5), scalable_service(5) SunOS 5.9 24 Sep 2007 SUNW.gds(5)
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy