ENVIRONMENT:

WA: 192.168.37.140(Master)
WB: 192.168.37.138(Slave)
WC: 192.168.37.141(Slave)
Base on CentOS 7

1.Install NFS on master

WA:

2.Edit exports on master

Edit exports file to add slave.
WA:

3.Enable on boot and start NFS server on master

WA:
Enable server on boot:

Start servers:

Check out server:

Check out slave mount point:

4.Install NFS on slave

WB and WC:

5.Check out share directory

WB:

WC:

You will see the same above.

6.Mount NFS on slave

WB:

WC:

7.Enable mount nfs on boot

Edit rc.local on slave:
WB:

WC:

8.Notice

If you want to restart servers, remember restart the master first and then the slave.

发表评论

电子邮件地址不会被公开。 必填项已用*标注