Posted on 2011-05-06
Last Modified: 2012-06-27
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.)
Question by:JeffBeall
    LVL 68

    Accepted Solution


    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.

    LVL 38

    Assisted Solution

    nfso -p -o nfs_use_reserved_ports=1
    -p will make the change to current and reboot
    LVL 1

    Author Closing Comment

    thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now