Setting Up the NFS Server
2.Edit the /etc/exports file.
Edit the /etc/exports file to include the file systems you want to export and their export options.This example shows one possible entry for the /etc/exports file:
/usr/demos -ro,access=client1:client2:client3
Then change /usr/demos mode by type the command:
chmod 777 /usr/demos
I think this is must,or you could not mount them.
In this example, the file system /usr/demos are exported with read-only access to three clients: client1, client2, and client3. Domain information can be included in the client names, for example client1.eng.sgi.com.
3.Run the exportfs command.
Once the /etc/exports file is complete, you must run the exportfs command to make the file systems accessible to clients. You should run exportfs anytime you change the /etc/exports file. Type this command:
/usr/etc/exportfs -av
In this example, the a option exports all file systems listed in the /etc/exports file, and the v option causes exportfs to report its progress. Error messages reported by exportfs usually indicate a problem with the /etc/exports file.
4.Use exportfs to verify your exports.
Type the exportfs command with no parameters to display a list of the exported file system(s) and their export options, as shown in this example:
/usr/etc/exportfs
/usr/demos -ro,access=client1:client2:client3
OK,that's all.Enjoy it.:-)