Setting Up A Highly Available NFS Server - Page 5
10 Configure The NFS ClientNow we install NFS on our client (192.168.0.100): apt-get install nfs-common Next we create the /data directory and mount our NFS share into it: mkdir /data 192.168.0.174 is the virtual IP address we configured before. You must make sure that the forward and the reverse DNS record for client.example.com match each other, otherwise you get a "Permission denied" error on the client, and on the server you'll find this in /var/log/syslog:
If you do not have proper DNS records (or do not have a DNS server for your local network) you must change this now, otherwise you cannot mount the NFS share! If it works you can now create further test files in /data on the client and then simulate failures of server1 and server2 (but not both at a time!) and check if the test files are replicated. On the client you shouldn't notice at all if server1 or server2 fails - the data in the /data directory should always be available (unless server1 and server2 fail at the same time...). To unmount the /data directory, run umount /data If you want to automatically mount the NFS share at boot time, put the following line into /etc/fstab:
Links
|



print: 


Recent comments
12 hours 25 min ago
12 hours 29 min ago
16 hours 31 min ago
1 day 3 hours ago
1 day 5 hours ago
1 day 14 hours ago
2 days 13 hours ago
2 days 15 hours ago
2 days 19 hours ago
4 days 1 hour ago