Operating System - HP-UX
1833783 Members
2315 Online
110063 Solutions
New Discussion

autoFS and the "-D" option

 
Noam Meltzer
Advisor

autoFS and the "-D" option

hi!
at my site i am using automounter to mount my NFS shares. it works like charm on other platforms like Solaris and Linux, but on the HPUX i have this problem:

I am using a variable to define my architecture of the machine,
which is called "ARCH", and then i do something like this
$automounter_prog -Dhp

on HP i can do it only with the old automounter, which is obsolete.
the new autofs does not support the "-D" feature, and have something different which has static var. names (which i cant remember now), and ARCH is not one of them.

do you know a way i can make it work with the new automounter?

10x,
Noam
HP engineers must live on Mars. Otherwise how can you explain the fact that they invented the wheel themselves?
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: autoFS and the "-D" option


in /etc/rc.config.d/nfsconf, set AUTOFS=0

Which will invoke the OLD automounter.

live free or die
harry
Live Free or Die
Noam Meltzer
Advisor

Re: autoFS and the "-D" option

this is deffinatly what i do NOT want to do.
I'm already working with that, but its a BAD automounter.
it works mainly from user-space, instead of kernel-space. it has this annoying "/tmp_mnt".
and before all
ITS OBSOLETE!!!!
it will be gone in the next hpux release or something.

I am looking for a way to work with the new automounter.

Noam
HP engineers must live on Mars. Otherwise how can you explain the fact that they invented the wheel themselves?
harry d brown jr
Honored Contributor

Re: autoFS and the "-D" option


Have you tried exporting the variables before executing automounter?

export ARCH="hp"

live free or die
harry
Live Free or Die
Pete Randall
Outstanding Contributor

Re: autoFS and the "-D" option

Noam,

You're right, there is no -D option with autofs. Can you do anything with the variable substitution available within the map file?
Quote from "man automount":
--------------------
Variable Substitution
Client specific variables can be used within an automount map. For
instance, if $HOST appeared within a map, automount would expand it to
its current value for the client's host name. Supported variables are:

HOST The output of uname -n. The host name. For example
"rowboat"

OSNAME The output of uname -s. The OS name. For example "HP-UX"

OSREL The output of uname -r. The OS release name. For example
"B.11.0"

OSVERS The output of uname -v. The OS version. For example "C"

If a reference needs to be protected from affixed characters, you can
surround the variable name with '{}' (curly braces).
--------------------

Pete
Tim D Fulford
Honored Contributor

Re: autoFS and the "-D" option

Slightly off track but it may help...

If you have loads of memory you could increase dbc_max_pct to get more buffer space on the NFS server to get as much of the NFS filesystem in memory.

Just a thought

Tim
-
Noam Meltzer
Advisor

Re: autoFS and the "-D" option

Hello guys,
First of all thanks for all your replies.
like I always said "HP engineers must live on Mars, otherwise how can you
explain that they invented the wheel themselves?"

Back to the subject, it IS possible to do what I wanted, it's just a
little tricky.
There is the configuration file for the automounter:
/etc/rc.config.d/nfsconf
on the buttom of it you can enable the new autoFS (autofs=1, if i recall
correctly)
and then there are two more lines,
AUTOMOUNT_OPTIONS=
AUTOMOUNTD_OPTIONS=
(i hope i wrote it in the right order)
I guess the automount is in the userspace, and the automountd is in the
kernel space.
the catch is if you give to the first line the parameter "-D=hp" it will
shout on you that its not supported any more.
if you will do the same thing with the second line, it will just work
like charm.
I was probably misleaded by the error message I got, as you can
understand.

good day,
Noam
HP engineers must live on Mars. Otherwise how can you explain the fact that they invented the wheel themselves?