Configuring for a multiple NFS environment

Use this configuration to export the NFS shares from multiple virtual IP addresses. You need to create different NFS share service groups, where each service group has one virtual IP address. The following example has a single service group with a virtual IP. Note that NFS is now a part of a different parallel service group. This configuration supports lock recovery and also prevents potential NFS ACK storms. This configuration also supports NFSv4.

Creating the NFS service group for a multiple NFS environment

This service group contains an NFS resource. Depending on the service group's use, it can also contain a NIC resource and a Phantom resource.

To create the NFS service group

  1. Configure a separate parallel service group (nfs_grp).
  2. Set the value of the AutoStart and Parallel attributes to 1 for the service group.
  3. The value for the AutoStartList attribute must contain the list of all the cluster nodes in the service group.
  4. Configure an NFS resource (nfs) inside this service group. You can also put NIC resource in this service group to monitor a NIC.

    Note:

    You must set NFSLockFailover to 1 for NFSRestart resource if you intend to use NFSv4.

  5. You must create a Phantom resource in this service group to display the correct state of the service group.
Creating the NFS exports service group for a multiple NFS environment

This service group contains the Share and IP resources for exports. The value for the PathName attribute for the Share resource must be on shared storage and it must be visible to all nodes in the cluster.

To create the NFS exports service group

  1. Create an NFS Proxy resource inside the service group. This Proxy resource points to the actual NFS resource that is configured on the system.
  2. If you configure the backing store for the NFS exports with VxVM, create DiskGroup and Mount resources for the mount point that you want to export.

    If the backing store for the NFS exports is configured using LVM, configure the LVMVolumeGroup resource and Mount resources for the mount points that you want to export.

    Refer to Storage agents in the Cluster ServerBundled Agents Reference Guide for details.

  3. Create an NFSRestart resource. Set the Lower attribute of this NFSRestart resource to 1. Ensure that NFSRes attribute points to the NFS resource configured on the system.

    For NFS lock recovery, make sure that the NFSLockFailover attribute and the LocksPathName attribute have appropriate values. The NFSRestart resource depends on the Mount resources that you have configured for this service group. The NFSRestart resource gets rid of preonline and postoffline triggers for NFS.

  4. Create a Share resource. Set the PathName attribute to the mount point that you want to export. In case of multiple shares, create multiple Share resources with different values for their PathName attributes. All the Share resources that are configured in the service group need to have dependency on the NFSRestart resource that has a value of 1 for its Lower attribute.
  5. Create an IP resource. The value of the Address attribute for this IP resource is used to mount the NFS exports on the client systems. Make the IP resource depend on the Share resources that are configured in the service group.
  6. Create a DNS resource if you want NFS lock recovery. The DNS resource depends on the IP resource. Refer to the sample configuration on how to configure the DNS resource.
  7. Create an NFSRestart resource. Set the NFSRes attribute to the NFS resource (nfs) that is configured on the system. Set the value of the Lower attribute for this NFSRestart resource to 0. Make the NFSRestart resource depend on the IP resource or the DNS resource to use NFS lock recovery.

Note:

Ensure that all attributes except the Lower attribute are identical for the two NFSRestart resources.