Cari di RHE Linux 
    Red Hat Enterprise Linux Manual
Daftar Isi
(Sebelumnya) 12 : Fence Device Parameters - ...12 : HA Resource Behavior - Cl ... (Berikutnya)

Cluster Administration

HA Resource Parameters

This appendix provides descriptions of HA resource parameters. You can configure the parameters with luci, by using the ccs command, or by editing the etc/cluster/cluster.conf file. Table B.1, "HA Resource Summary" lists the resources, their corresponding resource agents, and references to other tables containing parameter descriptions. To understand resource agents in more detail you can view them in /usr/share/cluster of any cluster node.
In addition to the resource agents described in this appendix, the /usr/share/cluster directory includes a dummy OCF script for a resource group, service.sh. For more information about the parameters included in this script, refer to the service.sh script itself.
For a more comprehensive list and description of cluster.conf elements and attributes, refer to the cluster schema at /usr/share/cluster/cluster.rng, and the annotated schema at /usr/share/doc/cman-X.Y.ZZ/cluster_conf.html (for example /usr/share/doc/cman-3.0.12/cluster_conf.html).

Table B.1. HA Resource Summary

ResourceResource AgentReference to Parameter Description
Apacheapache.shTable B.2, "Apache Server"
Condor Instancecondor.shTable B.3, "Condor Instance"
File Systemfs.shTable B.4, "Filesystem"
GFS2 File Systemclusterfs.shTable B.5, "GFS2"
IP Addressip.shTable B.6, "IP Address"
HA LVMlvm.shTable B.7, "HA LVM"
MySQLmysql.shTable B.8, "MySQL"
NFS Clientnfsclient.shTable B.9, "NFS Client"
NFS Exportnfsexport.shTable B.10, "NFS Export"
NFS Servernfsserver.shTable B.11, "NFS Server"
NFS/CIFS Mountnetfs.shTable B.12, "NFS/CIFS Mount"
Open LDAPopenldap.shTable B.13, "Open LDAP"
Oracle 10g/11g Failover Instanceoracledb.shTable B.14, "Oracle 10g/11G Failover Instance"
Oracle 10g Failover Instanceorainstance.shTable B.15, "Oracle 10g Failover Instance"
Oracle 10g Listeneroralistener.shTable B.16, "Oracle 10g Listener"
PostgreSQL 8postgres-8.shTable B.17, "PostgreSQL 8"
SAP DatabaseSAPDatabaseTable B.18, "SAP Database"
SAP InstanceSAPInstanceTable B.19, "SAP Instance"
Sambasamba.shTable B.20, "Samba Server"
Scriptscript.shTable B.21, "Script"
Sybase ASEASEHAagent.shTable B.22, "Sybase ASE Failover Instance"
Tomcat 6tomcat-6.shTable B.23, "Tomcat 6"
Virtual Machinevm.shTable B.24, "Virtual Machine"
NOTE: luci displays this as a virtual service if the host cluster can support virtual machines.

Table B.2. Apache Server

luci Fieldcluster.conf AttributeDescription
NamenameThe name of the Apache Service.
Server Rootserver_rootThe default value is /etc/httpd.
Config Fileconfig_fileSpecifies the Apache configuration file. The default valuer is /etc/httpd/conf.
httpd Optionshttpd_optionsOther command line options for httpd.
Shutdown Wait (seconds)shutdown_waitSpecifies the number of seconds to wait for correct end of service shutdown.

Table B.3. Condor Instance

Fieldluci Fieldcluster.conf Attribute
Instance NamenameSpecifies a unique name for the Condor instance.
Condor Subsystem TypetypeSpecifies the type of Condor subsystem for this instance: schedd, job_server, or query_server.

Table B.4. Filesystem

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies a name for the file system resource.
Filesystem TypefstypeIf not specified, mount tries to determine the file system type.
Mount PointmountpointPath in file system hierarchy to mount this file system.
Device, FS Label, or UUIDdeviceSpecifies the device associated with the file system resource. This can be a block device, file system label, or UUID of a file system.
Mount OptionsoptionsMount options; that is, options used when the file system is mounted. These may be file-system specific. Refer to the mount(8) man page for supported mount options.
File System ID (optional)fsid

Note

File System ID is used only by NFS services.
When creating a new file system resource, you can leave this field blank. Leaving the field blank causes a file system ID to be assigned automatically after you commit the parameter during configuration. If you need to assign a file system ID explicitly, specify it in this field.
Force Unmountforce_unmountIf enabled, forces the file system to unmount. The default setting is disabled. Force Unmount kills all processes using the mount point to free up the mount when it tries to unmount.
Force fsckforce_fsckIf enabled, causes fsck to be run on the file system before mounting it. The default setting is disabled.
Enable NFS daemon and lockd workaround (Red Hat Enterprise Linux 6.4 and later)nfsrestartIf your filesystem is exported via NFS and occasionally fails to unmount (either during shutdown or service relocation), setting this option will drop all filesystem references prior to the unmount operation. Setting this option requires that you enable the Force unmount option and must not be used together with the NFS Server resource. You should set this option as a last resort only, as this is a hard attempt to unmount a file system.
Use Quick Status Checksquick_statusIf enabled, performs quick status checks.
Reboot Host Node if Unmount Failsself_fenceIf enabled, reboots the node if unmounting this file system fails. The filesystem resource agent accepts a value of 1, yes, on, or true to enable this paramater, and a value of 0, no, off, or false to disable it. The default setting is disabled.

Table B.5. GFS2

luci Fieldcluster.conf AttributeDescription
NamenameThe name of the file system resource.
Mount PointmountpointThe path to which the file system resource is mounted.
Device, FS Label, or UUIDdeviceThe device file associated with the file system resource.
Filesystem TypefstypeSet to GFS2 on luci
Mount OptionsoptionsMount options.
File System ID (optional)fsid

Note

File System ID is used only by NFS services.
When creating a new GFS2 resource, you can leave this field blank. Leaving the field blank causes a file system ID to be assigned automatically after you commit the parameter during configuration. If you need to assign a file system ID explicitly, specify it in this field.
Force Unmountforce_unmountIf enabled, forces the file system to unmount. The default setting is disabled. Force Unmount kills all processes using the mount point to free up the mount when it tries to unmount. With GFS2 resources, the mount point is not unmounted at service tear-down unless Force Unmount is enabled.
Enable NFS daemon and lockd workaround (Red Hat Enterprise Linux 6.4 and later)nfsrestartIf your filesystem is exported via NFS and occasionally fails to unmount (either during shutdown or service relocation), setting this option will drop all filesystem references prior to the unmount operation. Setting this option requires that you enable the Force unmount option and must not be used together with the NFS Server resource. You should set this option as a last resort only, as this is a hard attempt to unmount a file system.
Reboot Host Node if Unmount Failsself_fenceIf enabled and unmounting the file system fails, the node will immediately reboot. Generally, this is used in conjunction with force-unmount support, but it is not required. The GFS2 resource agent accepts a value of 1, yes, on, or true to enable this paramater, and a value of 0, no, off, or false to disable it.

Table B.6. IP Address

luci Fieldcluster.conf AttributeDescription
IP Address, Netmask BitsaddressThe IP address (and, optionally, netmask bits) for the resource. Netmask bits, or network prefix length, may come after the address itself with a slash as a separator, complying with CIDR notation (for example, 10.1.1.1/8). This is a virtual IP address. IPv4 and IPv6 addresses are supported, as is NIC link monitoring for each IP address.
Monitor Linkmonitor_linkEnabling this causes the status check to fail if the link on the NIC to which this IP address is bound is not present.
Disable Updates to Static Routesdisable_rdiscDisable updating of routing using RDISC protocol.
Number of Seconds to Sleep After Removing an IP AddresssleeptimeSpecifies the amount of time (in seconds) to sleep.

Table B.7. HA LVM

luci Fieldcluster.conf AttributeDescription
NamenameA unique name for this LVM resource.
Volume Group Namevg_nameA descriptive name of the volume group being managed.
Logical Volume Name (optional)lv_nameName of the logical volume being managed. This parameter is optional if there is more than one logical volume in the volume group being managed.
Fence the Node if It is Unable to Clean UP LVM Tagsself_fenceFence the node if it is unable to clean up LVM tags. The LVM resource agent accepts a value of 1 or yes to enable this paramater, and a value of 0 or no to disable it.

Table B.8. MySQL

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies a name of the MySQL server resource.
Config Fileconfig_fileSpecifies the configuration file. The default value is /etc/my.cnf.
Listen Addresslisten_addressSpecifies an IP address for MySQL server. If an IP address is not provided, the first IP address from the service is taken.
mysqld Optionsmysqld_optionsOther command line options for httpd.
Startup Wait (seconds)startup_waitSpecifies the number of seconds to wait for correct end of service startup.
Shutdown Wait (seconds)shutdown_waitSpecifies the number of seconds to wait for correct end of service shutdown.

Table B.9. NFS Client

luci Fieldcluster.conf AttributeDescription
NamenameThis is a symbolic name of a client used to reference it in the resource tree. This is not the same thing as the Target option.
Target Hostname, Wildcard, or NetgrouptargetThis is the server from which you are mounting. It can be specified using a hostname, a wildcard (IP address or hostname based), or a netgroup defining a host or hosts to export to.
Allow Recovery of This NFS Clientallow_recoverAllow recovery.
OptionsoptionsDefines a list of options for this client - for example, additional client access rights. For more information, refer to the exports (5) man page, General Options.

Table B.10. NFS Export

luci Fieldcluster.conf AttributeDescription
Namename
Descriptive name of the resource. The NFS Export resource ensures that NFS daemons are running. It is fully reusable; typically, only one NFS Export resource is needed.

Tip

Name the NFS Export resource so it is clearly distinguished from other NFS resources.

Table B.11. NFS Server

luci Fieldcluster.conf AttributeDescription
Namename
Descriptive name of the NFS server resource. The NFS server resource is useful for exporting NFSv4 file systems to clients. Because of the way NFSv4 works, only one NFSv4 resource may exist on a server at a time. Additionally, it is not possible to use the NFS server resource when also using local instances of NFS on each cluster node.

Table B.12. NFS/CIFS Mount

luci Fieldcluster.conf AttributeDescription
Namename
Symbolic name for the NFS or CIFS mount.

Note

This resource is required when a cluster service is configured to be an NFS client.
Mount PointmountpointPath to which the file system resource is mounted.
HosthostNFS/CIFS server IP address or hostname.
NFS Export Directory Name or CIFS shareexportNFS Export directory name or CIFS share name.
Filesystem typefstype
File system type:
  • NFS - Specifies using the default NFS version. This is the default setting.
  • NFS v4 - Specifies using NFSv4 protocol.
  • CIFS - Specifies using CIFS protocol.
Force Unmountforce_unmountIf Force Unmount is enabled, the cluster kills all processes using this file system when the service is stopped. Killing all processes using the file system frees up the file system. Otherwise, the unmount will fail, and the service will be restarted.
Do Not Unmount the Filesystem During a Stop of Relocation Operation.no_unmountIf enabled, specifies that the file system should not be unmounted during a stop or relocation operation.
OptionsoptionsMount options. Specifies a list of mount options. If none are specified, the file system is mounted -o sync.

Table B.13. Open LDAP

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies a service name for logging and other purposes.
Config Fileconfig_fileSpecifies an absolute path to a configuration file. The default value is /etc/openldap/slapd.conf.
URL Listurl_listThe default value is ldap:///.
slapd Optionsslapd_optionsOther command line options for slapd.
Shutdown Wait (seconds)shutdown_waitSpecifies the number of seconds to wait for correct end of service shutdown.

Table B.14. Oracle 10g/11G Failover Instance

luci Fieldcluster.conf AttributeDescription
Instance name (SID) of Oracle instancenameInstance name.
Oracle User NameuserThis is the user name of the Oracle user that the Oracle AS instance runs as.
Oracle Application Home DirectoryhomeThis is the Oracle (application, not user) home directory. It is configured when you install Oracle.
Oracle Installation TypetypeThe Oracle installation type. Default: 10g, Database Instance and Listener Only base, Database, Listener, Enterprise Manager, and ISQL*Plus: base-em (or 10g), or Internet Application Server (infrastructure): ias (or 10g-ias).
Virtual Hostname (optional)vhostVirtual Hostname matching the installation hostname of Oracle 10g. Note that during the start/stop of an oracledb resource, your hostname is changed temporarily to this hostname. Therefore, you should configure an oracledb resource as part of an exclusive service only.

Table B.15. Oracle 10g Failover Instance

luci Fieldcluster.conf AttributeDescription
Instance name (SID) of Oracle instancenameInstance name.
Oracle User NameuserThis is the user name of the Oracle user that the Oracle instance runs as.
Oracle Application Home DirectoryhomeThis is the Oracle (application, not user) home directory. It is configured when you install Oracle.
List of Oracle Listeners (optional, separated by spaces)listenersList of Oracle listeners which will be started with the database instance. Listener names are separated by whitespace. Defaults to empty which disables listeners.
Path to Lock File (optional)lockfileLocation for lockfile which will be used for checking if the Oracle should be running or not. Defaults to location under /tmp.

Table B.16. Oracle 10g Listener

luci Fieldcluster.conf AttributeDescription
Listener NamenameListener name.
Oracle User NameuserThis is the user name of the Oracle user that the Oracle instance runs as.
Oracle Application Home DirectoryhomeThis is the Oracle (application, not user) home directory. It is configured when you install Oracle.

Table B.17. PostgreSQL 8

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies a service name for logging and other purposes.
Config Fileconfig_fileDefine absolute path to configuration file. The default value is /var/lib/pgsql/data/postgresql.conf.
Postmaster Userpostmaster_userUser who runs the database server because it cannot be run by root. The default value is postgres.
Postmaster Optionspostmaster_optionsOther command line options for postmaster.
Shutdown Wait (seconds)shutdown_waitSpecifies the number of seconds to wait for correct end of service shutdown.

Table B.18. SAP Database

luci Fieldcluster.conf AttributeDescription
SAP Database NameSIDSpecifies a unique SAP system identifier. For example, P01.
SAP Executable DirectoryDIR_EXECUTABLESpecifies the fully qualified path to sapstartsrv and sapcontrol.
Database TypeDBTYPESpecifies one of the following database types: Oracle, DB6, or ADA.
Oracle Listener NameNETSERVICENAMESpecifies Oracle TNS listener name.
ABAP Stack is Not Installed, Only Java Stack is InstalledDBJ2EE_ONLYIf you do not have an ABAP stack installed in the SAP database, enable this parameter.
Application Level MonitoringSTRICT_MONITORINGActivates application level monitoring.
Automatic Startup RecoveryAUTOMATIC_RECOVEREnable or disable automatic startup recovery.
Path to Java SDKJAVE_HOMEPath to Java SDK.
File Name of the JDBC DriverDB_JARSFile name of the JDBC driver.
Path to a Pre-Start ScriptPRE_START_USEREXITPath to a pre-start script.
Path to a Post-Start ScriptPOST_START_USEREXITPath to a post-start script.
Path to a Pre-Stop ScriptPRE_STOP_USEREXITPath to a pre-stop script
Path to a Post-Stop ScriptPOST_STOP_USEREXITPath to a post-stop script
J2EE Instance Bootstrap DirectoryDIR_BOOTSTRAPThe fully qualified path the J2EE instance bootstrap directory. For example, /usr/sap/P01/J00/j2ee/cluster/bootstrap.
J2EE Security Store PathDIR_SECSTOREThe fully qualified path the J2EE security store directory. For example, /usr/sap/P01/SYS/global/security/lib/tools.

Table B.19. SAP Instance

luci Fieldcluster.conf AttributeDescription
SAP Instance NameInstanceNameThe fully qualified SAP instance name. For example, P01_DVEBMGS00_sapp01ci.
SAP Executable DirectoryDIR_EXECUTABLEThe fully qualified path to sapstartsrv and sapcontrol.
Directory Containing the SAP START ProfileDIR_PROFILEThe fully qualified path to the SAP START profile.
Name of the SAP START ProfileSTART_PROFILESpecifies name of the SAP START profile.
Number of Seconds to Wait Before Checking Startup StatusSTART_WAITTIMESpecifies the number of seconds to wait before checking the startup status (do not wait for J2EE-Addin).
Enable Automatic Startup RecoveryAUTOMATIC_RECOVEREnable or disable automatic startup recovery.
Path to a Pre-Start ScriptPRE_START_USEREXITPath to a pre-start script.
Path to a Post-Start ScriptPOST_START_USEREXITPath to a post-start script.
Path to a Pre-Stop ScriptPRE_STOP_USEREXITPath to a pre-stop script
Path to a Post-Stop ScriptPOST_STOP_USEREXITPath to a post-stop script

Note

Regarding Table B.20, "Samba Server", when creating or editing a cluster service, connect a Samba-service resource directly to the service, not to a resource within a service.

Table B.20. Samba Server

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies the name of the Samba server.
Config Fileconfig_fileThe Samba configuration file
Other Command-Line Options for smbdsmbd_optionsOther command-line options for smbd.
Other Command-Line Options for nmbdnmbd_optionsOther command-line options for nmbd.
Shutdown Wait (seconds)shutdown_waitSpecifies number of seconds to wait for correct end of service shutdown.

Table B.21. Script

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies a name for the custom user script. The script resource allows a standard LSB-compliant init script to be used to start a clustered service.
Full Path to Script FilefileEnter the path where this custom script is located (for example, /etc/init.d/userscript).

Table B.22. Sybase ASE Failover Instance

luci Fieldcluster.conf AttributeDescription
Instance NamenameSpecifies the instance name of the Sybase ASE resource.
ASE Server Nameserver_nameThe ASE server name that is configured for the HA service.
SYBASE Home directorysybase_homeThe home directory of Sybase products.
Login Filelogin_fileThe full path of login file that contains the login-password pair.
Interfaces Fileinterfaces_fileThe full path of the interfaces file that is used to start/access the ASE server.
SYBASE_ASE Directory Namesybase_aseThe directory name under sybase_home where ASE products are installed.
SYBASE_OCS Directory Namesybase_ocsThe directory name under sybase_home where OCS products are installed. For example, ASE-15_0.
Sybase Usersybase_userThe user who can run ASE server.
Start Timeout (seconds)start_timeoutThe start timeout value.
Shutdown Timeout (seconds)shutdown_timeoutThe shutdown timeout value.
Deep Probe Timeoutdeep_probe_timeoutThe maximum seconds to wait for the response of ASE server before determining that the server had no response while running deep probe.

Table B.23. Tomcat 6

luci Fieldcluster.conf AttributeDescription
NamenameSpecifies a service name for logging and other purposes.
Config Fileconfig_fileSpecifies the absolute path to the configuration file. The default value is /etc/tomcat6/tomcat6.conf.
Shutdown Wait (seconds)shutdown_waitSpecifies the number of seconds to wait for correct end of service shutdown. The default value is 30.

Important

Regarding Table B.24, "Virtual Machine", when you configure your cluster with virtual machine resources, you should use the rgmanager tools to start and stop the virtual machines. Using virsh to start the machine can result in the virtual machine running in more than one place, which can cause data corruption in the virtual machine. For information on configuring your system to reduce the chances of administrators accidentally "double-starting" virtual machines by using both cluster and non-cluster tools, refer to Section 2.14, "Configuring Virtual Machines in a Clustered Environment".

Note

Virtual machine resources are configured differently than other cluster resources. To configure a virtual machine resource with luci, add a service group to the cluster then add a resource to the service, selecting Virtual Machine as the resource type and entering the virtual machine resource parameters. For information on configuring a virtual machine with the ccs, refer to Section 5.12, "Virtual Machine Resources".

Table B.24. Virtual Machine

luci Fieldcluster.conf AttributeDescription
Service NamenameSpecifies the name of the virtual machine. When using the luci interface, you specify this as a service name.
Automatically Start This ServiceautostartIf enabled, this virtual machine is started automatically after the cluster forms a quorum. If this parameter is disabled, this virtual machine is not started automatically after the cluster forms a quorum; the virtual machine is put into the disabled state.
Run ExclusiveexclusiveIf enabled, this virtual machine can only be relocated to run on another node exclusively; that is, to run on a node that has no other virtual machines running on it. If no nodes are available for a virtual machine to run exclusively, the virtual machine is not restarted after a failure. Additionally, other virtual machines do not automatically relocate to a node running this virtual machine as Run exclusive. You can override this option by manual start or relocate operations.
Failover DomaindomainDefines lists of cluster members to try in the event that a virtual machine fails.
Recovery Policyrecovery
Recovery policy provides the following options:
  • Disable - Disables the virtual machine if it fails.
  • Relocate - Tries to restart the virtual machine in another node; that is, it does not try to restart in the current node.
  • Restart - Tries to restart the virtual machine locally (in the current node) before trying to relocate (default) to virtual machine to another node.
  • Restart-Disable - The service will be restarted in place if it fails. However, if restarting the service fails the service will be disabled instead of moved to another host in the cluster.
Restart Optionsmax_restarts, restart_expire_timeWith Restart or Restart-Disable selected as the recovery policy for a service, specifies the maximum number of restart failures before relocating or disabling the service and specifies the length of time in seconds after which to forget a restart.
Migration TypemigrateSpecifies a migration type of live or pause. The default setting is live.
Migration Mappingmigration_mapping
Specifies an alternate interface for migration. You can specify this when, for example, the network address used for virtual machine migration on a node differs from the address of the node used for cluster communication.
Specifying the following indicates that when you migrate a virtual machine from member to member2, you actually migrate to target2. Similarly, when you migrate from member2 to member, you migrate using target.
member:target,member2:target2
Status Programstatus_program
Status program to run in addition to the standard check for the presence of a virtual machine. If specified, the status program is executed once per minute. This allows you to ascertain the status of critical services within a virtual machine. For example, if a virtual machine runs a web server, your status program could check to see whether a web server is up and running; if the status check fails (signified by returning a non-zero value), the virtual machine is recovered.
After a virtual machine is started, the virtual machine resource agent will periodically call the status program and wait for a successful return code (zero) prior to returning. This times out after five minutes.
Path to xmlfile Used to Create the VMxmlfileFull path to libvirt XML file containing the libvirt domain definition.
VM Configuration File Pathpath
A colon-delimited path specification that the Virtual Machine Resource Agent (vm.sh) searches for the virtual machine configuration file. For example: /mnt/guests/config:/etc/libvirt/qemu.

Important

The path should never directly point to a virtual machine configuration file.
Path to the VM Snapshot DirectorysnapshotPath to the snapshot directory where the virtual machine image will be stored.
Hypervisor URIhypervisor_uriHypervisor URI (normally automatic).
Migration URImigration_uriMigration URI (normally automatic).
Tunnel data over ssh during migrationtunnelledTunnel data over ssh during migration.

(Sebelumnya) 12 : Fence Device Parameters - ...12 : HA Resource Behavior - Cl ... (Berikutnya)