ifconfig em1 10.0.0.100/24 route add 0 10.0.0.254
after that we check the availability on the real server network, if all Ok we run nfs /etc/rc.d/rpcbind onestart /etc/rc.d/nfsclient onestart
/etc/rc.d/rpcbind onestart /etc/rc.d/nfsd onestart /etc/rc.d/mountd onestart
When you run nfsd, it will ask for the / etc / exports file in this variant (the file system historically contained only 2 / and / var sections): / -maproot=root -network 10.0.0.0 -mask 255.255.0.0 /var -maproot=root -network 10.0.0.0 -mask 255.255.0.0
If everything is done correctly, the mount command will show the “NFS exported” parameter for the section: # mount /dev/da0s1a on / (ufs, asynchronous, NFS exported, local) devfs on /dev (devfs, local, multilabel) /dev/da0s1d on /var (ufs, asynchronous, NFS exported, local)
mount /dev/da0s1a /var/mount/root mount /dev/da0s1d /var/mount/var
After that, let's deal with the disks of the physical server and create folders: mount_nfs 10.0.0.50:/ /var/nfs/root mount_nfs 10.0.0.50:/var /var/nfs/var
Now the servers are ready for transfer. cd /var/nfs/root && pax -p eme -X -rw . /var/mount/root cd /var/nfs/var && pax -p eme -X -rw . /var/mount/var
Source: https://habr.com/ru/post/150121/
All Articles