First, you have to make the appropriate directories available to nfs by "exporting" them. On the remote server, edit the /etc/exports file to expose the directories you need to the hosts that need to access them. See the man page for exports to find out all your options, but here's a simple example from my setup:
# /etc/exports
Add the below entry
/backup 192.168.1.0(rw,no_root_squash,async)
/backup2 192.168.1.1(rw,no_root_squash,async)
The /etc/exports file must contain a directory, (in this example the directory being exported is /home), as well as the networks (or hosts) the file system is exported to.In this case it's exported a range of hosts in the network 192.168.1.0. Alternately, it could be exported to a single host using the configuration: Then go to virtozo and mount the destination as given below:
# mount -t nfs 192.168.1.0:/backup2 /vz/backups
showmount -e mount
198.168.0.1:/backup2 /vz/backup nfs rsize=1024,wsize=1024,noauto 0 0
Then restart nfs and portmap on Virtuzzo server
# /etc/init.d/portmap restart
# /etc/init.d/nfs restart
Then go to backup server and check if its mounted on this server as well, you can use to check it showmount -e or mount command
If everything is ok, fire the command to effect the changes of /etc/exports:
# exportfs -r
and restart both services on this server as well:
# /etc/init.d/portmap restart
# /etc/init.d/nfs restart
That's it, I got it worked. If you have any problem please email me at mayur.c24@gmail.com
Go_GrEen^ThiNk_GReeN~LoVE_GreEn - Pushkar
No comments:
Post a Comment