)
IPMultiNIC ip1 (
Address = \NetMask = \MultiNICResName = mnic Options = \
)
ip1 requires mnic
group grp2 (
SystemList = { sysa, sysb } AutoStartList = { sysa }
)
IPMultiNIC ip2 (
Address = \NetMask = \MultiNICResName = mnic Options = \
)
Proxy proxy (
TargetResName = mnic
)
ip2 requires proxy
⒍ Mount Agent:
功能描述:Brings online, takes offline, and monitors a file system mount point。 必要的属性:BlockDevice MountPoint FSType 可选的属性:MountOpt FsckOpt 类型定义:
type Mount (
str MountPoint str BlockDevice str FSType str MountOpt str FsckOpt
NameRule = resource.MountPoint
static str ArgList[] = { MountPoint, BlockDevice,
FSType, MountOpt, FsckOpt }
)
第 11 页 共 33 页
配置举例:
Mount export1 (
MountPoint= \
BlockDevice = \FSType = vxfs MountOpt = ro
)
⒎ MultiNICA Agent:
功能描述:Represents a set of network interfaces and provides failover capabilities between them。 必要的属性:Device
可选的属性:ArpDelay HandshakeInterval IfconfigTwice NetMask
NetworkHosts Options PingOptimize RouteOptions
类型定义:
type MultiNICA (
static str ArgList[] = { Device, NetMask, ArpDelay,
Options, RouteOptions, PingOptimize,
MonitorOnly, IfconfigTwice, HandshakeInterval, NetworkHosts }
static str Operations = None static int MonitorTimeout = 300 NameRule = MultiNICA_ + group.Name str Device{} str NetMask int ArpDelay = 1 str Options str RouteOptions int PingOptimize = 1 int IfconfigTwice = 0 int HandshakeInterval = 90 str NetworkHosts[]
)
配置举例:
group grp1 (
SystemList = { sysa, sysb } AutoStartList = { sysa }
)
MultiNICA mnic (
Device@sysa = { le0 = \Device@sysb = { le0 = \NetMask = \ArpDelay = 5
Options = \
第 12 页 共 33 页
RouteOptions@sysa = \RouteOptions@sysb = \)
IPMultiNIC ip1 (
Address = \NetMask = \MultiNICResName = mnic Options = \
)
ip1 requires mnic
group grp2 (
SystemList = { sysa, sysb } AutoStartList = { sysa }
)
IPMultiNIC ip2 (
Address = \NetMask = \MultiNICResName = mnic Options = \
)
Proxy proxy (
TargetResName = mnic
)
ip2 requires proxy
⒏ NFS Agent:
功能描述:Starts and monitors the nfsd and mountd processes required by all exported NFS file systems 可选的属性:Nservers(并行的NFS请求数) 类型定义:
type NFS (
int Nservers = 16
NameRule = \static str ArgList[] = { Nservers } static str Operations = OnOnly static int RestartLimit = 1
)
配置举例:
NFS NFS_groupx_24 (
Nservers = 24 )
⒐ NIC Agent:
第 13 页 共 33 页
功能描述:Monitors the configured NIC。 必要的属性:Device
可选的属性:NetworkType NetworkHosts PingOptimize 类型定义:
type NIC (
str Device str NetworkType str NetworkHosts[]
NameRule = group.Name + \int PingOptimize = 1
static str ArgList[] = { Device, NetworkType,
NetworkHosts, PingOptimize }
static str Operations = None
)
配置举例:
NIC groupx_le0 (
Device = le0
NetworkHosts = { \
)
NIC groupx_le0 (
Device = le0 PingOptimize = 1
)
⒑ Phantom Agent:
功能描述:Enables groups with no OnOff resources to display the correct status。 类型定义:
type Phantom (
static str ArgList[] = {}
NameRule = Phantom_ + group.Name
)
配置举例:
Phantom ( )
⒒ Process Agent:
功能描述:Starts, stops, and monitors a process specified by the user。 必要的属性:PathName 可选的属性:Arguments 类型定义:
type Process (
str PathName str Arguments
第 14 页 共 33 页
NameRule = resource.PathName
static str ArgList[] = { PathName, Arguments }
)
配置举例:
Process usr_lib_sendmail (
PathName = /usr/lib/sendmail Arguments = \
)
⒓ Proxy Agent:
功能描述:Mirrors the state of another resource on the local or a remote system。 必要的属性:TargetResName 可选的属性:TargetSysName 类型定义:
type (
static str ArgList[] = { TargetResName, TargetSysname,
\TargetResName:State }
NameRule = Proxy_ + resource.TargetResName static str Operations = None str TargetResName str TargetSysName
)
配置举例:
Proxy(
TargetResName = \
)
Proxy (
TargetResName = \TargetSysName = \
)
⒔ ServiceGroupHB Agent:
功能描述:Starts, stops, and monitors disk heartbeats associated with service groups。 必要的属性:Disks 类型定义:
type ServiceGroupHB (
str Disks[]
NameRule = SGHB_ + resource.Disks static str ArgList[] = { Disks }
)
配置举例:
ServiceGroupHB SGHB_c1t2d0s3 (
第 15 页 共 33 页