Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 700
  • Last Modified:


i have an old AIX box, and i need to mount some Ubuntu server nfs shares. it wasn't working until i googled and found this
nfso -o nfs_use_reserved_ports=1
that worked great, and now i can mount my nfs shares. however, to make this permenant it said to edit
and i assume add the nfso line. i read through rc.nfs and i'm not sure where or how to add
nfso -o nfs_use_reserved_ports=1
( when i say i dont know how to add it, i mean if there is some special syntax, i use vi to edit files.)
2 Solutions

which is your AIX version?

Starting with version 5.2 "nfso" has the "-p" or "-r" options to make settings last across reboots.

nfso -p -o nfs_use_reserved_ports=1

would set the tunable value now and for the next reboot (i.e. modifies the /etc/tunables file, which is executed at reboot), and

nfso -r -o nfs_use_reserved_ports=1

would modifiy the /etc/tunables file but not modify the current value.

If your AIX is 5.1 or earlier you could indeed modify /etc/rc.nfs by adding your command (without "-r" or "-p", of course) at the very end of that file.

/usr/sbin/nfso -o nfs_use_reserved_ports=1 >/dev/console 2>&1

Attention! Don't remove the line saying "## End AutoFS startup   ## Do NOT remove"!

You could as well add an entry to /etc/inittab at the end, like

nfso:2:once:/usr/sbin/nfso -o nfs_use_reserved_ports=1 >/dev/console 2>&1

In the last two suggestions ">/dev/console 2>&1" is only meant for possible debugging, you could also use ">/dev/null 2>&1" instead.

nfso -p -o nfs_use_reserved_ports=1
-p will make the change to current and reboot
JeffBeallAuthor Commented:
thank you.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now