Friday, February 26, 2010

NFS way to link files in Linux

NFS way to link files

1. Start Portmap Service
/etc/init.d/portmap start
2. Start NFS service
/etc/init.d/nfs start
3. Got /etc/exports. Put the folder location which you want to export with the permissions.
ex:

/home/user/upload (rw,sync,no_root_squash)

4. Export the file
exportfs -a
5. Got to the destination

mount the the partition

mount -t nfs root@:/home/user/upload /home/user/add
|      |  |   |          |                  |
mounts.option.source .folder to  .    destination folder
       of nfs         be mounted


So whenever you access "/home/user/add" folder of destination it will automatically links to "/home/user/upload"

No comments:

Post a Comment