Managing Serviceguard NFS for Linux, July 2007
Contents
3
1. Serviceguard NFS for LINUX Introduction
Overview of Serviceguard NFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Limitations of Serviceguard NFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Overview of the NFS File Lock Migration Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Limitations of the NFS File Lock Migration Feature . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Supported Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Failover to an Idle Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Failover between Active Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Failover with an Adoptive Node for Multiple Packages . . . . . . . . . . . . . . . . . . . . . . . 15
Cascading Failover with Multiple Adoptive Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Understanding the Serviceguard NFS Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
How the Control and Monitor Scripts Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Starting the NFS Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Starting File Lock Migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Halting the NFS Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Monitoring the NFS Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Remote mount table synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
On the Client Side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2. Installing and Configuring Serviceguard NFS for Linux
Installing Serviceguard NFS for Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Copying the Template Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Before Creating an Serviceguard NFS Package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Configuring a Serviceguard NFS Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Editing the Package Configuration File (pkg.conf) . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Editing the Package Control Scripts (pkg.cntl). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Editing the NFS Configuration File (hanfs.conf) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Configuring Lock Migration Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Creating the Serviceguard Binary Configuration File . . . . . . . . . . . . . . . . . . . . . . . . 39
Housekeeping Suggestions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3. Sample Configurations
Configuring Multiple Nodes to Support Failover of Multiple Packages . . . . . . . . . . . . 42
Cluster Configuration File for Three-Server Mutual Takeover . . . . . . . . . . . . . . . . . 44
Package Configuration File for pkg01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Package Control Script for pkg01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
NFS Toolkit Configuration File for pkg01. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Package Configuration File for pkg02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47