cancel
Showing results for 
Search instead for 
Did you mean: 

nfs problem

cdslmum
Advisor

nfs problem

Hi,
I have one file system /hcl on host(APP)and i want to mount nfs it on another host(DB).
I have done following-
on Host APP
1 /sbin/init.d/nfs.core start
2 /sbin/init.d/nfs.server start
3 entry in /etc/exports file

on another Host DB
1 /sbin/init.d/nfs.core start
2 /sbin/init.d/nfs.client start
3 nfs DB:/hcl /hcl

but it is giving error like nfs not found

pls suggest me or tell me step by step procedure as i am new for hp-ux.

Rgds
Shiv
7 REPLIES
Kapil Jha
Honored Contributor

Re: nfs problem

what is 3rd line
nfs DB:/hcl /hcl

are you trying to mount, I suppose u have to use mount.

which HPUX, which NFS version.

What are the entries in exports file.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Michal Kapalka (mikap)
Honored Contributor

Re: nfs problem

hi,

if you like to start the nfs server, you should
edit the /etc/rc.config.d/nfsconf

NFS_SERVER="1"

exportfs -av ( for rebuild the exports )

mikap
cdslmum
Advisor

Re: nfs problem

3rd line is command on DB server for mounting the nfs

HPUX is 11.31
NFS version is 2 or 3

I have given 1 to NFS_SERVER=1

entries in exports file is-
/hcl -ro DB

Anshumali
Esteemed Contributor

Re: nfs problem

Use mount DB:/hcl /hcl
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Victor Fridyev
Honored Contributor

Re: nfs problem

Hi,

Try to use SAM on both machines. Clean up /etc/exports on APP and define /hcl as exported FS with SAM.
On DB try to mount this FS (also via SAM).

Sometimes this helps.

Entities are not to be multiplied beyond necessity - RTFM
Kanagaraj
Regular Advisor

Re: nfs problem

you want to mount the /hcl NFS shared filesystem of APP to on host DB.

On DB...

mount -F nfs /APP:/hcl /hcl

///on another Host DB
1 /sbin/init.d/nfs.core start
2 /sbin/init.d/nfs.client start
3 nfs DB:/hcl /hcl -->mount -F nfs APP:/hcl hcl
////

chris huys_4
Honored Contributor

Re: nfs problem

Hi Shiv,

The nfs procedures on HP-UX 11iv3, have changed compared to previous OSversions.

F.e the /etc/exports file is not used anymore, to export directories from the nfs-fileserver, and was replace by the file /etc/dfs/dfstab.

Also the syntax "inside" the /etc/dfs/dfstab file has changed, compared to the "syntax" used in the /etc/exports file.

Also the "exportfs -av" command, to export the "nfs-directories listed in the /etc/dfs/dfstab file on the nfs-fileserver", was replaced by the "shareall" command. (or "unshare" command to "unshare" the nfs-directories)

More about the nfs-differences between 11iv3 and previous 11i versions can be found in the

"HP-UX 11i Version 3 Release Notes
HP 9000 and HP Integrity Servers"

manual.

url :
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01922609/c01922609.pdf

page 225.

An example on how to export the /home directory of the nfs-server ronin, so that the nfs-client yakuza, can mount the directory as root.

nfs-server

ronin # vi /etc/dfs/dfstab
share -F nfs -o root=yakuza /home

ronin # shareall

ronin # showmount -a

ronin # shownmount -e

nfs-client

yakuza # mkdir /home_ronin
yakuza # mount ronin:/home /home_ronin


More examples of how to setup nfs , can be found in the,

"
HP-UX System Administrators Guide:
Routine Management Tasks
HP-UX 11i Version 3
"
, manual.

url :
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01916167/c01916167.pdf

page 147-148.

Greetz,
Chris