System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how can to create the NFS. for file system

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

how can to create the NFS. for file system

i need help for create NFS, in file system
please comment


9 REPLIES
Aneesh Mohan
Honored Contributor

Re: how can to create the NFS. for file system

Please provide your OS version .

If you want temporarily export a file system from Server A to Server B you can do

On ServerA (Nfs Server)
#exportfs -i -o root=serverB /ServerAfilesystem

On Server B (Nfs client)
#mount -F nfs ServerA:/xxx /xxx

If you want to make it permmanent ,then you may need to add corresponding lines in /etx/exports (prior to 11.31) or dfstab(11.31)

fyi:-

NFS Services

/sbin/init.d/nfs.server start/stop
/sbin/init.d/nfs.core start/stop
/sbin/init.d/nfs.client start/stop

Aneesh


Eli Daniel
Super Advisor

Re: how can to create the NFS. for file system

OS version is 11.23
Aneesh Mohan
Honored Contributor

Re: how can to create the NFS. for file system

well , you can use the above procedure.

If you want to export a filesystem permanently,please add like below lines in NFS server /etc/exports

example
On server A /etc/exports
/backup -root=client1,root=clinet2,rw=clinet3

then.... #exportfs -a .


do man exports for more info

Aneesh



Aneesh Mohan
Honored Contributor

Re: how can to create the NFS. for file system

If my replies help you , then please assign points.

Aneesh
Eli Daniel
Super Advisor

Re: how can to create the NFS. for file system

hi Aneesh Mohan
attempt create NFS

NFS SERVER: SAPL917
SAPL917:/usr/sbin> exportfs -i -o root=sapl903 /temporal

NFS CLIENT: SAPL903
SAPL903:/> mount -F nfs sapl917:/temporal /temporal
mount: /temporal: No such file or directory

This is NFS temporal
Patrick Wallek
Honored Contributor
Solution

Re: how can to create the NFS. for file system

Does the /temporal directory exist on the SAPL903 server? If not, you must create it.
OldSchool
Honored Contributor

Re: how can to create the NFS. for file system

also see your other (almost) duplicate posting
Prasanth Thomas
Valued Contributor

Re: how can to create the NFS. for file system

Hi,

I think the /temporal directory is not existing on SAPL903 server. Please verify the sane by #ls -lrt temporal from root directory.
If you wanna check whether the fs is exported by using showmount -e command from SAPL917 server.

Regards,
Prasanth Thomas.
Eli Daniel
Super Advisor

Re: how can to create the NFS. for file system

thanks problem solved

this is command used.

nfs server
SAPL917:/usr/sbin> exportfs -i -o root=sapl903 /temporal

nfs client
mkdir tempura
mount -F nfs sapl917:/temporal /tempura

if need add NFS permanent. add line in the fstab
exampe:
sapl917:/temporal /tempura nfs rw,suid 0 0