Operating System - HP-UX
1820225 Members
3958 Online
109620 Solutions
New Discussion юеВ

Re: NFS mount between HP and Sun

 
Josee Bourget-Thuma
Frequent Advisor

NFS mount between HP and Sun

Can it be done?

If so, are there issues?

Trying to share a cdrom for remote installation.

Any additional info is VERY welcome.
Thanks!
Failure is not an option.
15 REPLIES 15
Sanjay_6
Honored Contributor

Re: NFS mount between HP and Sun

Hi,

There should be no problem. We do it all the time.

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: NFS mount between HP and Sun

Yes - it can.

For example, to share your cdrom on HP with a Solaris box:

mount /dev/dsk/ /cdrom
exportfs -i -o ro /cdrom

Rgds..Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: NFS mount between HP and Sun

Yes.

NFS is pretty standard across platforms.

Linux has gotten a bit off the path with extra /etc/exports options, but heck, you can even NFS with Novell, ask Pete Randall.

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
Karthik S S
Honored Contributor

Re: NFS mount between HP and Sun

For that matter with Windows using "Services For UNIX" :-)

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Josee Bourget-Thuma
Frequent Advisor

Re: NFS mount between HP and Sun

OK guys.. that's what I thought.. however, I'm getting a permission denied as I try to NFS mount from my client .. any ideas?

Thanks again...
Failure is not an option.
Karthik S S
Honored Contributor

Re: NFS mount between HP and Sun

From where are you exporting and on which box are you mounting?

If you are planning to export only the /cdrom then

solaris /etc/dfs/dfstab should look like this,

share -F nfs /cdrom
and run shareall

If you are exporting from HP-UX

then check if /etc/exports contains,
/cdrom
and run exportfs -a

Now you should be able to mount w/o probs.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
RAC_1
Honored Contributor

Re: NFS mount between HP and Sun

Further to kartiks reply,

In any case if ur are mounting as root, root is always treated as unknown user.
(Very sure about HP-ux, but not with sun)

So you will have to put anon option in /etc/exports file and on sun machine.
There is no substitute to HARDWORK
Kevin Wright
Honored Contributor

Re: NFS mount between HP and Sun

export the FS with root=hostname

unshareall/shareall
or
exportfs -u /mnt
exportfs -a
Josee Bourget-Thuma
Frequent Advisor

Re: NFS mount between HP and Sun

Still trying to get this mount shared.

It's a pfs mount.
It's been exported with pfs_export -av and the proper entry in pfs_exports.

The disk is mounted pfs mode and reads fine on the NFS server.

How can I check if I see this mount on the NFS client?

Is there a different way to mount a pfs share?

I'm still getting a permission denied while issuing the mount hostname:/mount1 /localdir

Thanks again!

Failure is not an option.
Karthik S S
Honored Contributor

Re: NFS mount between HP and Sun

On the NFS Client,

nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &
pfs_mount -o xlat=unix nfssrv:/cdrom /local_mnt_pnt

-Karthik S S

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
James A. Donovan
Honored Contributor

Re: NFS mount between HP and Sun

If you're exporting a pfs_mount from the HP server, please, please, please take a look at the bottom of this web page ( http://www.cmve.net/~merijn/ ) on how to configure your HP box to never need PFS again!

Install guides are written to the lowest common denominator system. HP-UX has not required the pfs_mount command for some time now....
Remember, wherever you go, there you are...
Josee Bourget-Thuma
Frequent Advisor

Re: NFS mount between HP and Sun

I'm still getting "permission denied" ...
Must be missing something.

Failure is not an option.
Geoff Wild
Honored Contributor

Re: NFS mount between HP and Sun

Try adding access:

exportfs -i -o ro access=sunserver /cdrom

and/or root:

exportfs -i -o ro root=sunserver /cdrom

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
RAC_1
Honored Contributor

Re: NFS mount between HP and Sun

Post nfs version on sun and on hp.


They should be matching.

There is no substitute to HARDWORK
James A. Donovan
Honored Contributor

Re: NFS mount between HP and Sun

It could be a name/ip address resolution issue. From the server, ensure that you can resolve the client's hostname and its IP address using nslookup. Do the same thing from the client, making sure you can resolve the server's hostname and IP address.
Remember, wherever you go, there you are...