1823416 Members
2744 Online
109655 Solutions
New Discussion юеВ

NFS mount options

 
SOLVED
Go to solution
Mihails Nikitins
Super Advisor

NFS mount options

Hi,

What are default NFS mount parameters in HP-UX 11.0? 11.0 just reports "defaults,NFSv3" and work much faster.

/etc/fstab
:/path /mnt/point nfs rw 0 0

HP-UX 11.0 mount output
defaults,NFSv3 on Thu Dec 22 12:34:05 2005

HP-UX 11.23 mount output

rsize=32768,wsize=32768,NFSv3,dev=62000000

Thanks and points advance!

BR,
Mihails
KISS - Keep It Simple Stupid
8 REPLIES 8
RAC_1
Honored Contributor

Re: NFS mount options

Do not any specific defaults, but you can see default options when you mount nfs mount without any ecific options.

Once you do mount, do mount -v or mount -p to know what are default options a file system has been mounted with.
There is no substitute to HARDWORK
Rainer von Bongartz
Honored Contributor

Re: NFS mount options


mount -p should show you the NFS mount parameters

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Arunvijai_4
Honored Contributor

Re: NFS mount options

http://docs.hp.com/en/5991-1153/index.html

[NFS Services Administrator's Guide: HP-UX 11.0]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mihails Nikitins
Super Advisor

Re: NFS mount options

Sorry RAC,

I'd like to find out what are real values of 'defaults,NFSv3' in HP-UX 11.0.

I'd like configure the same parameters on myHP-UX 11.23 system.

11.0: > mount -p

1.2.3.4:/share/aa/bb /mnt/zzz nfs defaults,NFSv3 0 0
KISS - Keep It Simple Stupid
Sameer_Nirmal
Honored Contributor

Re: NFS mount options

Hi,

The mount command shows "defaults" which signifies the default options are used for mounting the nfs. You can get information about those default options in the man page of mount_nfs(1M) on HP-UX 111.00

You can refer the man page of mount_nfs(1M) on HP-UX 11.23 to know the mount options which are equivalent to 11.00.
There are new options added on 11.23 for nfs.

Dave Olker
Neighborhood Moderator
Solution

Re: NFS mount options

Hi Mihails,

You can use the "nfsstat -m" command to get the real mount options of any NFS-mounted filesystem.

The default mount options on 11.0 depend upon whether you've installed any ONC patches and enabled NFS/TCP support. If you have then the defaults are:

PV3, TCP, rsize/wsize=8K, hard

If you haven't enabled TCP the defaults are:

PV3, UDP, rsize/wsize=8K, hard

Again, "nfsstat -m" will tell you what options you're using on a per-mount basis.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Mihails Nikitins
Super Advisor

Re: NFS mount options

Thanks for the replies!

I've found the solution. If rsize,wsize parameters are not specified, HP-UX takes 32768. It's too big. I specified "ro,rsize=8192,wsize=8192" in /etc/fstab, and now it works well. If you choose 8192, mount -p say "defaults". If you do not specify rsize, wsize 32768 is used as real default. It's mesleading.
KISS - Keep It Simple Stupid
Dave Olker
Neighborhood Moderator

Re: NFS mount options

Hi Mihails,

HP-UX 11.0 does not use 32768 as the default read/write size. It uses 8K. HP-UX releases after 11.0 (11.11 and 11.23) do use 32768 as the default but 11.0 still uses 8K as the default read/write size if you don't specify.

Here is an example:

# uname -a
HP-UX emonster B.11.00 A 9000/785 2010714527 two-user license
# mount atcux12:/va-1 /nfs_mount
# nfsstat -m
/nfs_mount from atcux12:/va-1 (Addr 15.43.209.141)
Flags: vers=3,proto=udp,auth=unix,hard,intr,link,symlink,devs,rsize=8192,wsize=8192,retrans=5
All: srtt= 0 ( 0ms), dev= 0 ( 0ms), cur= 0 ( 0ms)


As you can see, HP-UX 11.0 uses UDP/PV3/8K by default unless you enable TCP support, at which time TCP becomes the default.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo