
More information about a resource agent can be viewed with
meta
:
crm(live)ra# meta Filesystem ocf heartbeat
Filesystem resource agent (ocf:heartbeat:Filesystem)
Resource script for Filesystem. It manages a Filesystem on a shared storage
medium.
Parameters (* denotes required, [] the default):
...
You can leave the viewer by pressing
Q
. Find a configuration example at Chapter 6,
Setting Up a Simple Testing Resource (page 75).
5.3.3 Example Configuration for an NFS
Server
To set up the NFS server, three resources are needed: a file system resource, a drbd
resource, and a group of an NFS server and an IP address. The following subsection
shows you how to do it.
Setting Up a File System Resource
The
filesystem
resource is configured as an OCF primitive resource. It has the task
of mounting and unmounting a device to a directory on start and stop requests. In this
case, the device is
/dev/drbd0
and the directory to use as mount point is
/srv/
failover
. The file system used is
xfs
.
Use the following commands in the
crm
shell to configure a filesystem resource:
crm(live)# configure
crm(live)configure# primitive filesystem_resource \
ocf:heartbeat:Filesystem \
params device=/dev/drbd0 directory=/srv/failover fstype=xfs
Configuring drbd
Before starting with the drbd High Availability configuration, set up a
drbd
device
manually. Basically this is configuring drbd in
/etc/drbd.conf
and letting it syn-
chronize. The exact procedure for configuring drbd is described in the Storage Admin-
Configuring Cluster Resources From Command Line
63
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......