1833566 Members
3356 Online
110061 Solutions
New Discussion

Re: NFS

 
SOLVED
Go to solution
Ngoh Chean Siung
Super Advisor

NFS

Hi,

1) What is NFS (Network File System) used for?
2) How to configure NFS?
3) How to disable NFS? Such as disable its service?

regards.
8 REPLIES 8
KCS_1
Respected Contributor

Re: NFS

Hi,
This will answer you about all your quesions

http://docs.hp.com/en/5991-1811/index.html



Easy going at all.
Devender Khatana
Honored Contributor

Re: NFS

Hi,

1. NFS is used for sharing a remote file system with clients. Normally static binaries can be kept in this. The benefit will be that changes at only one place will reflect for all clients.

2. There are different ways of configuring NFS like AutoNFS, NFS, High Available NFS etc.
The simplest to configure will be to make entry in /etc/exports of the server for the file system to be exported and issue a command
#exportfs -a (On the NFS Server)

And then mount the same on clients by

#mount -F NFS server:/exported_file_system /mountpoint

3. If you have manually done so only once then unmounting the file system will remove this.If you have configure it through /etc/fstab and conf file then you need to disable entries in respective files to disable it.

For stopping once

#/sbin/init.d/nfs.core stop ( For Both server and client)
#/sbin/init.d/nfs.client stop (For clients)
#/sbin/init.d/nfs.server stop (For servers)

The documentation is also here

http://docs.hp.com/en/5991-1811/index.html

HTH,
Devender
Impossible itself mentions "I m possible"
Ngoh Chean Siung
Super Advisor

Re: NFS

Hi,

Thanks for your reply.

1) Is NFS only applicable to machine which is same platform? HP-UX to HP-UX? Can it apply to HP-UX server (such as RP7410) and a normal P4 PC?

2) If I want to create NFS called share at /, can I hv the step by step to do it? Any setting related to host.equiv and rhosts?

regards.
Indrajit_1
Valued Contributor
Solution

Re: NFS

Hi,

To configure NFS server in hp unix, do the following steps..

# vi /etc/rc.config.d/nfsconf , Set NFS_SERVER and START_MOUNTD to 1

for example..

NFS_SERVER=1
START_MOUNTD=1
save and come out..

vi /etc/exports
/ < hostname>(rw,async)
save and come out
#exportfs -a
#/sbin/init.d/nfs.server start
** to desible the NFS service ..

Either u can stop the service..
#/sbin/init.d/nfs.server stop

or..

vi /etc/rc.config.d/nfsconf

Set NFS_SERVER and START_MOUNTD to 0

for example..
NFS_SERVER=0
START_MOUNTD=0

Go to client machine..
#mount :/ /

u can modify the fstab file for automount NFS directory after system reboot..

NFS service can enable in any unix platform..

Regards
Indrajit
Never Ever Give Up
Muthukumar_5
Honored Contributor

Re: NFS

1) What is NFS (Network File System) used for?

Used to change File system across machines. It is applicable to *NIX machines like hpux -> linux, linux -> sun os like that.

2) How to configure NFS?

In hpux, It is simple. Start nfs.server, nfs.client and nfs.core startup scripts available in /sbin/init.d/ location.

Export file system as,

# exportfs -iv /fs
# exportfs -v

Put that into /etc/exports file for permanent export.

In client side, using mount command mount that file system.

3) How to disable NFS? Such as disable its service?

To disable it, go to /etc/rc.config.d/nfsconf file as,

NFS_CLIENT=-0
NFS_SERVER=0
AUTOMOUNT=0
START_MOUNTD=0

or simply stop services as,

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

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: NFS


1) Is NFS only applicable to machine which is same platform? HP-UX to HP-UX? Can it apply to HP-UX server (such as RP7410) and a normal P4 PC?

NFS is applicable to *NIX machines only. Not with windows. You have to use SAMBA for hetro genous platform file system sharing.

2) If I want to create NFS called share at /, can I hv the step by step to do it? Any setting related to host.equiv and rhosts?

hosts.equiv and rhosts are related with remsh or r* commands execution.

To share / then,

# NFS server:

i) Start nfs.server,nfs.client.nfs.core services.
ii) exportfs -iv -o rw=clienthostname /
iii) Put the entry into /etc/exports file
iv) exportfs -v
has to display exported file system

# NFS client:

i) Start services.
ii) mkdir /serverroot
iii) mount server:/ /serverroot
iv) Put this entry into /etc/fstab to keep permanet setting.

hth.

Easy to suggest when don't know about the problem!
Ngoh Chean Siung
Super Advisor

Re: NFS

Hi,

May I know what is *nix stands for?

regards.
Muthukumar_5
Honored Contributor

Re: NFS

*NIX means for Linux,Solaris,HP-UX, AIX.. That is unix related. Some times they will call it as *NUX etc.
Easy to suggest when don't know about the problem!