Re: NFS Sharing question (416 Views)
Reply
Advisor
Chad T
Posts: 18
Registered: ‎05-27-2008
Message 1 of 13 (416 Views)
Accepted Solution

NFS Sharing question

I have a NFS host running HPUX 11.23. Is there a way, using NFS, to share out in my case, /usr/directoryname as a sharename? Example:

share /usr/sap as /sapmnt to NFS clients

Thank you in advance for you help.
Acclaimed Contributor
Dennis Handly
Posts: 25,071
Registered: ‎03-06-2006
Message 2 of 13 (416 Views)

Re: NFS Sharing question

You can share to other Unix/Linux clients.
You can export /usr/sap. And all of your clients can mount that as /sapmnt.

You might be able to do something like that for Windows.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 13 (416 Views)

Re: NFS Sharing question

Shalom,

Edit /etc/exports

Add the path and options, there should be examples in there.

exportfs -av


On 11.31 the file is /etc/dfs/dfstab but it works the same way.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Advisor
Chad T
Posts: 18
Registered: ‎05-27-2008
Message 4 of 13 (416 Views)

Re: NFS Sharing question

I am sorry...i left out that my NFS client is a Windows Machine. My problem is there is an install taking place on the windows box which requires access to my hpux host's /usr/sap directory. The problem is the app on the windows box requires a share of \\HPUX hostname\sapmnt (which is to point to /usr/sap). I know to edit the /etc/exports files but i am not sure the options (if any) to add so /usr/sap is exported as /sapmnt. THe man page does not help for this option.

I hope this all makes sense.
Acclaimed Contributor
Dennis Handly
Posts: 25,071
Registered: ‎03-06-2006
Message 5 of 13 (416 Views)

Re: NFS Sharing question

>I am not sure the options (if any) to add so /usr/sap is exported as /sapmnt. The man page does not help for this option.

That's because you need to look at the Windows side to see how to do NFS. Or look at Samba/CIFS to do the sharing.
Advisor
Chad T
Posts: 18
Registered: ‎05-27-2008
Message 6 of 13 (416 Views)

Re: NFS Sharing question

everything works if i export /usr/sap as far as accessing the files and directories from the windows client...my problem is this app we are installing requires a sapmnt share. i was trying to avoid installing SAMBA but it seems that is where i am going to end up.

THank you.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 7 of 13 (416 Views)

Re: NFS Sharing question

Shalom,

Windows does not ship with a NFS client.

This can be purchased and installed into windows.

Samba is not a terrible option though, it will get the job done and save money on Windows software.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Advisor
Chad T
Posts: 18
Registered: ‎05-27-2008
Message 8 of 13 (416 Views)

Re: NFS Sharing question

Actually the NFS client for windows is free...perhaps there was a cost at some point but it is now free. Anyhow...i think i am going to try Samba and see how that goes.

Thank you both for your comments.
Advisor
Chad T
Posts: 18
Registered: ‎05-27-2008
Message 9 of 13 (416 Views)

Re: NFS Sharing question

going to try samba
Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 10 of 13 (416 Views)

Re: NFS Sharing question

Hi,

> everything works if i export /usr/sap as far as accessing
>the files and directories from the windows client...
>my problem is this app we are installing requires a sapmnt share.

So you have now a share /usr/sap ?

If that works, why don´t you just link your /usr/sap to /sapmnt, then export /sapmnt ?

If Win doesn´t recognize it as a 'share', then I believe you have go with samba.

V.
*** Say 'Thanks' with Kudos ***
Advisor
Chad T
Posts: 18
Registered: ‎05-27-2008
Message 11 of 13 (416 Views)

Re: NFS Sharing question

Yeah...i tried creating a link to /usr/sap named /sapmnt...the problem with that is, it works but does not show any existing symbolic links within directories. Everything else shows up but not the links...and the links point to a directory within the /usr/sap.

Thank you for the input.

Acclaimed Contributor
Dennis Handly
Posts: 25,071
Registered: ‎03-06-2006
Message 12 of 13 (416 Views)

Re: NFS Sharing question

>but does not show any existing symbolic links within directories. Everything else shows up but not the links... and the links point to a directory within the /usr/sap.

Are you using relative or absolute symlinks? The former is better.
Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 13 of 13 (416 Views)

Re: NFS Sharing question

Well, if you have a link to a directory that you don´t have exported, then the symbolic link will not work ...

V.
*** Say 'Thanks' with Kudos ***
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.