Managing Serviceguard Extension for SAP Version A.06.00 for Linux, December 2012

Creating NFS toolkit package using Serviceguard CLI
NOTE: To create a package you can use either Serviceguard Manager GUI or the CLI. This
section describes the CLI steps and the GUI steps are described in the“Creating NFS Toolkit package
using Serviceguard Manager” (page 48) section.
1. Run the cmmakepkg n sapnfs -m tkit/nfs/nfs sapnfs.config command to
create the NFS server package configuration file using the CLI.
2. Edit the sapnfs.config configuration file.
The following is an example for a package configuration with volume group vgnfs with
filesystem lvnfsC11 to be exported and mounted from virtual host 192.168.100.99.
Add the relevant attributes for the NFS server: virtual hostname, volume groups, file systems,
and the mount point of the /export directory. A package_ip address specifies the virtual
address through which the NFS clients must mount the exports.
vg vgnfs
fs_name /dev/vgnfs/lvnfsC11
fs_server ""
fs_directory /export/sapmnt/C11
fs_type ext4
fs_mount_opt ""
fs_umount_opt ""
fs_fsck_opt ""
ip_subnet 192.168.100.0
ip_address 192.168.100.99
Add the list of exported files systems for the NFS clients. The fsid needs to be unique for each
exported file system:
tkit/nfs/nfs/XFS "-o rw,no_root_squash,fsid=102 *:/export/sapmnt/C11"
NOTE: Change the service_name attribute, if it is not unique within the cluster.
3. Run the cmapplyconf P sapnfs.config command to apply the package.
4. Run the cmrunpkg sapnfs command to start the package.
Automount setup
Add the following to /etc/auto.direct on each NFS client that will mount /sapmnt/C11
from the NFS server. This is also valid, if the NFS server and an NFS client are on the same cluster
node.
/sapmnt/C11 -fstype=nfs,nfsvers=3,udp,nosymlink 192.168.100.99:/export/sapmnt/C11
NOTE: You can specify the virtual host name nfsreloc, instead of the IP address.
Reload the autofs changes with:
/etc/init.d/autofs reload
For more information about how to specify options and the NFS export string, see HP Serviceguard
Toolkit for NFS version A.03.03.01 for Linux User Guide at http://www.hp.com/go/
linux-serviceguard-docs.
NOTE: If a common sapnfs package already exists it can be extended by the new volume
groups, file systems, and exports instead.
Infrastructure setup, pre-installation preparation (Phase 1) 51