Example 2 The maincf for a TwoNode Asymmetric NFS Cluster
The following example is a basic two-node cluster exporting an NFS file system. The systems are configured as:
♦ servers: Serverl and Server2
♦ storage: One disk group managed using VERITAS Volume Manager, sharedl
♦ public interface: hme0
♦ Server1 is primary location to start the NFS_group1
In an NFS configuration, the resource dependencies must be configured to bring up the IP
address last. This prevents the client from accessing the server until everything is ready, and preventing unnecessary "Stale File Handle" errors on the clients.
include "types.cf"
cluster demo (
system Server1
system Server2
group NFS_group1 (
SystemList = { Server1, Server2 } AutoStartList = { Server1 } )
DiskGroup DG_shared1 ( DiskGroup = shared1 )
IP IP_nfs1 ( Device = hme0 Address = "192.168.1.3" )
Mount Mount_home (
MountPoint = "/export/home"
BlockDevice = "/dev/vx/dsk/shared1/home_vol" FSType = vxfs FsckOpt = "-y" MountOpt = rw )
NIC NIC_group1_hme0 ( Device = hme0 NetworkType = ether )
Share Share_home (
PathName = "/export/home" )
IP_nfs1 requires Share_home IP_nfs1 requires NIC_group1_hme0 Mount_home requires DG_shared1 Share_home requires NFS_group1_16 Share_home requires Mount_home
Post a comment