Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Resource attribute is a reference value used when the resource takes some actions or determines the status.
Resource attribute can be identified from Resource Attributes view of MCCS web console.
From the group management view of MCCS web console, select the resource, then select ‘Resource Attributes’ tab located on the top of detailed information panel.

The values of gray colored are read only. They just contain and show the information of resource state.
The values of white colored are configurable by user definition. Below is description of some of them.

...

Info

Among the attributes listed on the following tables, those with the * marks do not work on the network card resources that is unable to use the online/offline command.


AttributeDescriptionTypeDefaultMinimum Value/
Maximum Value
EditNote
 Key AttributeCritical

When a failure occurs in the resource it indicated whether to failover the group.
true : failover the group.
false : no action.

BOOLEAN

X
Enabled

It is used when deciding whether to manage the resource. 
true : enabled.
false : disabled.

BOOLEAN

X
General AttributeAgentState

It indicates the agent state of the resource.
This cannot be edited by user. It is displayed after collecting all the agent state for all the nodes in the MCCS engine.

STRING

X

*BatchAfterOffline

This is a batch command to be executed after a resource is taken offline.  
Success or failure of the batch file does not affect group procedure.  
Also, it still operates regardless of other resource online or offline. 

FILE
8 to 254 characters of textO

*BatchAfterOnline

This is a batch command to be executed after a resource is brought online.  
Success or failure of batch does not affect group procedure.  
Also, it still operates regardless of other resource online or offline.

FILE
8 to 254 characters of textO
*BatchBeforeOffline

This is a batch command to be executed before a resource is brought online.  
Success or failure of batch does not affect group procedure.  
Also, it still operates regardless of other resource online or offline. 

FILE
8 to 254 characters of textO
*BatchBeforeOnline

This is a batch command to be executed before a resource is taken offline.  
Success or failure of batch does not affect group procedure.  
Also, it still operates regardless of other resource online or offline.

FILE
8 to 254 characters of textO
*BatchTimeout

It is the waiting time until execution of batch command completes. If execution result is over this time, it is considered as a failure. 

INTEGER300sec100 to 1500 secondsO
CleanProgram

This program is executed to initialize related resources and state when a failure occurs to a resource. This program must be written separately.

FILE
8 to 254 characters of textO
CleanTimeoutIt represents the time out until execution of CleanProgram is completed.
When the limit is exceeded, it will be forcefully stoped.
INTEGER60 sec0 to 300 secondsO
EnableTimeoutIt is the waiting time until the execution of Enable completes. If the execution result is over this time, it is considered as a failure. (unit = second)INTEGERINFINITY
1 to INFINITY secondsO
*FailoverableIt indicates whether the resource is in the state to be failover.BOOLEAN

X
FaultOnMonitorTimeoutsIf the monitoring timeout take place as much as this value, it is regarded as fault.
If it is '0', it is not regarded as fault.
INTEGER4 times0 to 12 timesO
GroupIt is the name of the group which the resource belongs.STRING
4 to 50 characters of textX
*LastOnline

It is name of the node on which state of the resource is online lastly.

STRING

X
Monitored

Depending on the 'MonitorTimeout', attribute values for the resource types, it record periodically whether each node's monitoring is completed.

BOOLEAN

X
MonitorIntervalIt indicates the interval to the next monitoring when online resources are monitored. If the value is too small, it may result in malfunction.
If the value is too big, then it will take too long until it detects the status changes.
INTEGER10 sec1 to 300 secondsO
MonitorTimeoutIt represents the time elapsed until monitoring is completed or terminated.INTEGER60 sec1 to 300 secondsO
NoAction

It represents the action attribute of the resource.
If the attribute is set to true, the resource is MonitorOnly resource. The value is set to false in case of NIC resource.

BOOLEAN

X
OfflineMonitorIntervalIt is the time interval until the next monitoring of offline resource.
If the time interval is '0', the offline resources will not be monitored.
INTEGER10 sec0 to 300 secondsO
*OfflineTimeoutIt indicates the maximum time until resources is taken offline successfully, stop or final judgment is made.INTEGER300 sec1 to 1500 secondsO
*OnlineRetryLimitIt indicate the number of retry count if it fails to start resource.INTEGER0 time0 to 10 timesO
*OnlineTimeoutIt indicates the maximum time until resources is brought online successfully, stop or final judgment is made.INTEGER300 sec1 to 1500 secondsO
*OnlineTrustTimeIt is the time to reset the retry count of resource.
If resources remain normal for a specified amount of time after starting, the retry count will be initialized. 
INTEGER600 sec60 to 3000 secondsO
*OnlineWaitLimitIf the timeout occurs while determining whether the resource goes online properly, it will retry as many times as defined.
It is the time interval of retry is defined in 'MonitorInterval'.
INTEGER2 times0 to 30 timesO
PersistIt is used when deciding whether to manage the resource. Persist Resource just has two resource state Online and fault.BOOLEAN

X
ResNameIt is the name of the resource.NAME
4 to 50 characters of textX
*Restartlimit 

It shows the retry count before failover when the resource is determined as a failure. 

INTEGER00 to 100 times

Shared Disk DR X
Mirror Disk DR X
Other Resources O


StateIt is the resource state of each node.STRING

X
ToleranceLimitWhen the monitoring results cannot be trusted , monitoring will be retried during the defined time.
For instance, if the result of the ICMP ping test with a network interface card cannot be trusted, it must be retried as many times as defined.
INTEGER0 time0 to 100 timesO
TypeIt is the name of the agent type of the resource.STRING

X
WaitMonitorIntervalIt indicates the time interval until starting the next monitoring when monitoring resources which are waiting for online or offline.INTEGER1 sec1 to 300 secondsO

...

Info

Copied resource name is defined which "_number" is added from original name by default and this can be editable.

Depending on the resource type, you need to enter extra information if necessary.


Image Added

[Figure] Paste Networkcard Resource View



CLI Use (mcres command)

It sends the commands related to MCCS resource. Resource related commands such as add, delete, online, offline and etc can be done.

...


mcres [-u userid -pw password] [-ip node_ip_address] [-p port] -command [ resource ] [ -g group ] [ -n node]
mcres [-u userid -pw password] [-ip node_ip_address] [-p port] -add [ resource ] [ -t resource_type ] [ -g group ]
mcres [-u userid -pw password] [-ip node_ip_address] [-p port] -monitor [ group_name ] [ -t interval(seconds)]
mcres [-u userid -pw password] [-ip node_ip_address] [-p port] -modify [ resource ] [-a attribute attribute_value] [ -g group ] [ -n node]


Options

OptionDescription

-h

Display help menu.

-uEnter the user account.
-pwEnter the password.

-ip

It defines the node to access to execute command. If omitted, it will access to execute command for local node.

-p

It defines the port to access to execute command. If omitted, it will access to the default value which is 4321, and when you define specific port number as heartbeat, enter this followed by --p.

-resourcecommand

It defines resource command.

(add, delete, enable, disable, monitor, modify, link, unlink, local, Global, Online, Offline, Offlineprop, Probe, clear, list)

resource

It enters resource name.

-a

[list] It defines the attribute value that should be listed if it is command.  
[modify] It defines the attribute and attribute value that should be changed if it is command.  
attribute: It defines the values of the group.  
attribute_value: It defines the values that should be changed.

-t

It defines resource type when it is [-add] command. It specifies time interval when it is [-monitor] command.

-g

It defines group name to be managed.

-n

It defines node name to be managed.

...