Operating System - Linux
1832973 Members
2178 Online
110048 Solutions
New Discussion

Re: exportfs root=localhost

 
SOLVED
Go to solution
Joerg Roemmelt
Occasional Contributor

exportfs root=localhost

HI folks,

I have a little problem with an configuration for a NFS-server.

At our company we run a cluster with 3 nodes.
All 3 nodes have filesystems which have to be accessed by all 3 servers on the same path. So I decided to mount the filesystem via NFS over all 3 servers.

For exapmle:
We have a directory called /cad.
I mount this directory from /dev/vg01/lvol12 to /cad_real.
This directory is exported via exportfs:
exportfs -i -o anon=65534,root=server1:server2:server3 /cad_real
In the fstab in every server is an entry like "pkg1:/cad_real /cad"

But not all servers have root priviges on that directory. The NFS-server itself has non to this directory.

I tried to change the exportfs statment to root=server1:server2:localhost but this isn't working ether.

Now to my question, is it possible that the nfs-server can do a "root" mount of it's own export? If yes then please help me.
2 REPLIES 2
Armin Kunaschik
Esteemed Contributor
Solution

Re: exportfs root=localhost

Is this HP-UX 11.31?

HP inherited the "well known" behavior of Solaris here.
You need to add the pkg1-Name to the export too. It might also be necessary to add pkg1 to /etc/hosts on all 3 nodes. Please do so even if you use DNS for name resolution!

You should not mount those cluster filesystems in /etc/fstab, but configure autofs to do so. This will save you some headeaches if you boot a node when the package is down.

My 2 cents,
Armin
And now for something completely different...
Joerg Roemmelt
Occasional Contributor

Re: exportfs root=localhost

Hi,

thanks for your replay! the pkg name has done the trick.

The HP-UX Version is 11.11.
Sorry I forgot to wrote it in my first post.

I will also look into the autofs thing.
Normally there shouldn't be a down package so I thought that will be ok with the /etc/fstab.