Managing HP Serviceguard Extension for SAP for Linux (May 2013)
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
On each NFS client, add a direct map entry /- /etc/auto.direct to the /etc/auto.master
automounter configuration file.
On each NFS client that will mount the /sapmnt/C11 from the NFS server, edit and add the
following to /etc/auto.direct:
nl
/sapmnt/C11 -fstype=nfs,nfsvers=3,udp,nosymlink 192.168.100.99:/export/sapmnt/C11
This is also valid if both the NFS server and the NFS client are on the same cluster node.
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.
Infrastructure setup, pre-installation preparation (Phase 1) 51