|
Sign-In Sources Mailing lists Downloads Live collector Documentation Admins Contacts Welcome |
||||||||
|
Documentation index NFS High Availability setupNFS is a tricky beast to setup for high availability. Without proper configuration NFS clients tend to hang waiting for i/o completion on the shares. This guide exposes the Linux NFS servers configuration for smooth failover. OpenSVC HA setupCreate a HA service, using this cookbook. Make sure the /opt/opensvc/nfssvc.d symlink points to a directory hosted on a shared filesystem, handled by the nfssvc OpenSVC service. For example, with /nfssvc the root service shared filesystem: On the master node NFS configurationLinux NFS service uses /var/lib/nfs to store both node-private and service-private data. The tricky part of the HA setup is to separate this data. NFS server startupNFS startup will be handled by the OpenSVC service. Stop the NFS service and inhibit its launch at server startup. On both nodes Create the OpenSVC service startup script. On the master node And activate this script. On the master node Node private dataThe data that must remain local to each node is the RPC pipefs pseudo filesystem. It is mounted by default under /var/lib/nfs/rpc_pipefs. As /var/lib/nfs will be moved to the shared filesystem, we need to change the location of this mount point. Create the new mount point. On both nodes Change these system configuration files to use this new mountpoint. On both nodes Service private data/var/lib/nfs contains data essential for nfs client sessions takeover. Thus, this directory must follow the service in case of failover. On the master node The exports list should also move with the service, to avoid configuration drift between the 2 nodes. On the master node On both nodes Configure nfs to listen on the service IP addressOn both nodes Modify STATD_HOSTNAME in /etc/sysconfig/nfs EpilogReboot the nodes to activate the new rpc_pipefs location and start testing failovers. |
|||||||||
|
Copyright © 2010 OpenSVC - Powered by web2py |
|||||||||