Operating System - HP-UX
1820636 Members
1850 Online
109626 Solutions
New Discussion юеВ

How to restart NFS server safely

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: How to restart NFS server safely

>From which version of HP-UX /etc/dfs/dfstab has been used as NFS configuration file?

Starting on 11.31 dfstab replaces /etc/exports:
http://docs.hp.com/en/B2355-60130/share.1M.html
Viktor Balogh
Honored Contributor

Re: How to restart NFS server safely

>So only HP-UX we can not do this, am i correct?

Yes, it seems so. I tried it on my home OpenSuSE linux box:

# uname -a
Linux frances 2.6.30.1-libata_fix #11 Sat Jul 18 01:19:54 CEST 2009 i686 i686 i386 GNU/Linux
# showmount -e
Export list for myfrances:
/store oscar
# df /store /store/RAW /store/malacfej
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg00-store
9238088 7191084 2047004 78% /store
/dev/mapper/vg00-RAW 33672984 27300920 6372064 82% /store/RAW
/dev/mapper/vg00-store
9238088 7191084 2047004 78% /store
myfrances:~ # exportfs -i -o ro oscar:/store/RAW
# exportfs -i -o ro oscar:/store/malacfej
myfrances:~ # showmount -e
Export list for myfrances:
/store oscar
/store/RAW oscar
/store/malacfej oscar
#
****
Unix operates with beer.
senthil_kumar_1
Super Advisor

Re: How to restart NFS server safely

Hi All,

I have some questions about NFS.

1)Is NFS distributed file system?

2)what are other distributed file systems?

3)what does distributed file system mean?
senthil_kumar_1
Super Advisor

Re: How to restart NFS server safely

Hi All,

I have some doubts about the entries in /etc/exports and /etc/dfs/dfstab

1)

/usr/bin -root=sys1:sys2 --> /etc/exports

share -F nfs -o root=sys1:sys2 /usr/bin -->/etc/dfs/dfstab


1.1)Are both above entries meaning followings
"Root user of sys1 and sys2 has root access, but root users of all other NFS client are restricted.
All non-root users of all NFS clients (including sys1 and sys2) are having read/write access".

1.2)If not, what is the exact meaning?

2)

/usr/bin -root=basil,anon=65535 --> exports

share -F nfs -o root=basil,anon=65535 /usr/bin --> dfs

2.1)Are both above entries meaning followings
"The root user on client basil is allowed root access to the directory, but the root users on all other machines are treated as ├в unknown├в and denied access. The non-root users on all NFS clients are allowed read/write access, if the HP-UX permissions on that directory allow them read/write access.

Any user without a valid user ID (If the NFS client├в s user database and NFS server├в s user database don├в t match) who attempts access to /usr/bin directory will receive an RPC authentication error, because anonymous access is denied with the anon=65535 option."


2.2)If not,what is the exact meaning?


3)
/usr/bin -anon=200 --> exports

share -F -o anon=200 /usr/bin --> dfs

3.1)2.1)Are both above entries meaning followings

"The above example exports the /usr/bin directory to all NFS clients. Root users will be given the effective user ID of 200. Other anonymous users will keep their own user IDs (even though they do not exist in the NFS server├в s passwd database), but they will be given the access permissions associated with user ID 200. If a root user is allowed to create a file in this directory, the ls command will show that it is owned by user ID 200. If an anonymous user with a non-zero user ID (for example, 840) is allowed to create a file in this directory, the ls command will show that it is owned by user ID 840".

3.2)If not what is the exact meaning?

3.3)Here can we give other than 200 to anon?

Steven E. Protter
Exalted Contributor

Re: How to restart NFS server safely

Shalom again:

PSB

Hi All,

I have some doubts about the entries in /etc/exports and /etc/dfs/dfstab

1)

/usr/bin -root=sys1:sys2 --> /etc/exports

share -F nfs -o root=sys1:sys2 /usr/bin -->/etc/dfs/dfstab


1.1)Are both above entries meaning followings
"Root user of sys1 and sys2 has root access, but root users of all other NFS client are restricted.
All non-root users of all NFS clients (including sys1 and sys2) are having read/write access".

>>>
Correct. Restricted to default access policy and file permissions.
<<<

1.2)If not, what is the exact meaning?

2)

/usr/bin -root=basil,anon=65535 --> exports

share -F nfs -o root=basil,anon=65535 /usr/bin --> dfs

2.1)Are both above entries meaning followings
"The root user on client basil is allowed root access to the directory, but the root users on all other machines are treated as ├Г┬в├В ├В unknown├Г┬в├В ├В and denied access. The non-root users on all NFS clients are allowed read/write access, if the HP-UX permissions on that directory allow them read/write access.

Any user without a valid user ID (If the NFS client├Г┬в├В ├В s user database and NFS server├Г┬в├В ├В s user database don├Г┬в├В ├В t match) who attempts access to /usr/bin directory will receive an RPC authentication error, because anonymous access is denied with the anon=65535 option."

>>>
anon lets anonymous users, for example Ignite clients access the share with enough rights to do the work they need to do.
<<<
2.2)If not,what is the exact meaning?


3)
/usr/bin -anon=200 --> exports

share -F -o anon=200 /usr/bin --> dfs

3.1)2.1)Are both above entries meaning followings

"The above example exports the /usr/bin directory to all NFS clients. Root users will be given the effective user ID of 200. Other anonymous users will keep their own user IDs (even though they do not exist in the NFS server├Г┬в├В ├В s passwd database), but they will be given the access permissions associated with user ID 200. If a root user is allowed to create a file in this directory, the ls command will show that it is owned by user ID 200. If an anonymous user with a non-zero user ID (for example, 840) is allowed to create a file in this directory, the ls command will show that it is owned by user ID 840".

3.2)If not what is the exact meaning?
>>> I have no problem with this definition.
<<<


3.3)Here can we give other than 200 to anon?
>>
Yes
<<

I might word things differently. In the end,at some point you might run some tests in a lab to see how this works real world.

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
senthil_kumar_1
Super Advisor

Re: How to restart NFS server safely

Hi All,

What is the difference between /etc/exports and /etc/xtab in HP-UX 11.11.

Since, the command "showmount -e" is showing only the entries available in /etc/xtab but not /etc/exports.

Now i have some qustions:

1)Do we need to create the same entries in /etc/exports and /etc/xtab?

2)Please explain the difference between /etc/exports and /etc/xtab?




James R. Ferguson
Acclaimed Contributor

Re: How to restart NFS server safely

Hi:

> Please explain the difference between /etc/exports and /etc/xtab?

Once again, you should familiarize yourself with the things called "manpages":

http://docs.hp.com/en/B2355-60130/exports.4.html

In HP-UX, section 4 of the manpages is devoted to files.

# man 4 exports

Regards!

...JRF...