Operating System - HP-UX
1753473 Members
4708 Online
108794 Solutions
New Discussion юеВ

Re: NFS - Export / Import File system

 
SOLVED
Go to solution
Rizwan Choudhry
Advisor

NFS - Export / Import File system

Hi all,
I am using HPUX 11.23.
How do i export and Import file system.

I have checkec following:
Check NFS is running
The NFS driver are in the kernel.
configuration files:
grep nfs /stand/system
NFS is running:
ps -ef | grep nfsd
ps -ef | grep rpcbind

grep NFS_C /etc/rc.config.d/nfsconf
grep NFS_S /etc/rc.config.d/nfsconf


Now How to create export a files system for example :

Files sytem
/usr/sap/trans

Which files do need to edit to allow /usr/sap/trans to be mounted on other Unix servers.
Thanks

rizzir
8 REPLIES 8
Siju Vadakkan
Trusted Contributor

Re: NFS - Export / Import File system

/usr/sap/trans -access=otherhost,root=otherhost # with read/write permission

/usr/sap/trans -ro #as readonly

and execute the command to export the file system
#exportfs -av
Siju Vadakkan
Trusted Contributor

Re: NFS - Export / Import File system

1. add the following entry in /etc/exports file

/usr/sap/trans -access=otherhost,root=otherhost # withe read/write permission

/usr/sap/trans -ro #as readonly

2. and execute the command
#exportfs -av
Rizwan Choudhry
Advisor

Re: NFS - Export / Import File system

Thanks
But what i type to import the file system?
rizzir
Siju Vadakkan
Trusted Contributor

Re: NFS - Export / Import File system

nfsserver:/usr/sap/trans /mountpointname nfs rw 0 2
Siju Vadakkan
Trusted Contributor
Solution

Re: NFS - Export / Import File system

put the above entry in the /etc/fstab and execute #mount -a

or if u didn't update in the /etc/fstab , mount point won't be available after reboot, means u have to mount manully after every reboot
To mount manually use he following command
#mount nfsserver:/usr/sap/trans /mountpointname
Rizwan Choudhry
Advisor

Re: NFS - Export / Import File system

Thanks Siju I will try that .
rizzir
Victor Fridyev
Honored Contributor

Re: NFS - Export / Import File system

Also you can use SAM on your NFS server:
Networking and Communication
Networked File Systems
Exported Local File Systems

Define the file system which you need to export.
SAM takes care of all needed files ( etc/exports) and starts up all needed services.

HTH

Entities are not to be multiplied beyond necessity - RTFM
Sajjad Sahir
Honored Contributor

Re: NFS - Export / Import File system

when an nfs server one or more of its files
and directories shareble then it is called exporting.it will be in /etc/exports file
only exported files can be use nfs client
if u want to export manually without rebooting the systme
u can use exportfs -a command

exported file system u can see by using just exportfs command without any option