1832308 Members
2257 Online
110041 Solutions
New Discussion

can not automount

 
SOLVED
Go to solution
Pelephone System
Frequent Advisor

can not automount

Hi everyone!

I am try to set up automount on 11i machine (my first time doing that) . I have configured nfsconf and auto_master file for the requierd nfs, when running automount -v I get a message that the FS was mounted , in /etc/mnttab I can see the mounted fs , and still no files appear in the mount dircetory. Also , trying to write to the dircetory hangs the shell.
Please help.
HPUX sysadmin
28 REPLIES 28
Pete Randall
Outstanding Contributor

Re: can not automount

Check the /etc/exports entry on the NFS server to see how the FS was exported.


Pete

Pete
Steven Schweda
Honored Contributor

Re: can not automount

What is the NFS server system in this case?
The problem could be at the other end. Can
any other system get good NFS access to the
same remote file system?
Pelephone System
Frequent Advisor

Re: can not automount

The NFS System is HP-UX . I forgot to say that regular mount of the same NFS on the same server works fine.
HPUX sysadmin
Steven E. Protter
Exalted Contributor

Re: can not automount

Shalom,

Please post the contents of the auto_master and files it points to. There is probably a problem there.

Aich Pessah Shalchah?

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
Pelephone System
Frequent Advisor

Re: can not automount

Shalom,
I`ve defined everything in the auto_master:
root@unixlab2: cat /etc/auto_master
/net -hosts -nosuid,soft
/my unixlab1:/home/testleo/automount
root@unixlab2:
root@unixlab2: cat /etc/mnttab
-hosts /net autofs ignore,indirect,nosuid,soft 0 0 1176296055
unixlab1:/home/testleo/automount /my autofs ignore,indirect, 0 0 1176297283


Pesah beseder, haiti be hul :)


HPUX sysadmin
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,

you do not use /etc/aut_master correctly: This file is the so-called master map and contains maps only - not single mount entries.
root@unixlab2: cat /etc/auto_master
/net -hosts -nosuid,soft
/my unixlab1:/home/testleo/automount

Create a file /etc/auto.mymap containing
unixlab1 &:/home/testleo/automount

Change /etc/auto_master to
/net -hosts -nosuid,soft
/my /etc/auto.mymap

And after a 'automount -v' you can see the NFS directory under
ls /my/unixlab1

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Pelephone System
Frequent Advisor

Re: can not automount

I`ve tried what you suggested and the result is pretty much the same:
ls /my does not show anything ,
ls /my/unixlab1 hangs the shell.
HPUX sysadmin
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,

- you should check for NFS related messages in /var/adm/syslog/syslog.log

- check order of the name resolution:
grep auto /etc/nsswitch.conf

- is the result of NFS-mounting this directory without automount the same?
mkdir /other
mount unixlab1:/home/testleo/automount /other
ls /other

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Pelephone System
Frequent Advisor

Re: can not automount

NFS mount without automount works fine.
root@unixlab2: mount unixlab1:/home/testleo/automount /my
root@unixlab2: ls /my
1 2 3 lost+found
root@unixlab2:
HPUX sysadmin
Dave Olker
Neighborhood Moderator

Re: can not automount

Ok, let's start over.

Post the following here:

# cat /etc/auto_master
# cat
# cat /etc/mnttab

I want to see exactly how your automounter is configured before moving forward.

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
Leonid Mishkind
Frequent Advisor

Re: can not automount

Hi ( I am the author of the thread , I switched user ) .
I have updated patches on the system , and now the situation is a little better , trying to write to the automount directory does not hang the shell , but I do get an error :
root@unixlab2: touch a
touch: a cannot create
Still cant see the files of the mount.

Now, for what you have asked:
root@unixlab2: cat /etc/auto_master
/net -hosts -nosuid,soft
/my /etc/auto.mymap
root@unixlab2: cat /etc/auto.mymap
unixlab1 &:/home/testleo/automount
root@unixlab2: cat /etc/mnttab ( irrelevant lines where removed )
-hosts /net autofs ignore,indirect,nosuid,soft 0 0 1176387571
/dev/vg00/lvol10 /test vxfs log 0 0 1176625492
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176625705

Thanks for your help.
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,

please help me to sort this

>>
trying to write to the automount directory does not hang the shell , but I do get an error :
root@unixlab2: touch a
touch: a cannot create
Still cant see the files of the mount.
<<

What is the result of
ls /my/unixlab1
ls -ld /my/unixlab1
and then
grep /my /etc/mnttab

As a root user, you have no special privilegs on the remote system, so
touch /my/unixlab1/newfile
would require world-open acces rights at
/home/testleo/automount on unixlab1.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Steven E. Protter
Exalted Contributor

Re: can not automount

Shalom gam.

In one session:

tail -f /var/adm/syslog/syslog.log

Then start the automount service and try the change directory.

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
Leonid Mishkind
Frequent Advisor

Re: can not automount

First to Petter:
The unixlab1 dir was never created in /my
so ls on its variations will not give any result.
I think I do have the permissions to that NFS , if I mount without automount I can write to it.
Now, SEP:

Another weird thing that is happening is that the automound does not write anything to syslog nor to /var/adm/automount.log...

Thanks for your help.
Leonid Mishkind
Frequent Advisor

Re: can not automount

Sorry I forgot the mnttab:

root@unixlab2: grep -i /my /etc/mnttab
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176807176
root@unixlab2:
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,


keep in mind, that the directory
/my/uniylab1
may NOT be visible by a simple
ls /my

It first gets mounted when trying to access
/my/unixlab1
explicitly via
ls /my/unixlab1

If that last command does not produce any output, the automount is not triggered correctly.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Leonid Mishkind
Frequent Advisor

Re: can not automount

cd /my/unixlab1/
ls

does not produce any output also.
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,

having done the
cd /my/unixlab1/
then now send us

grep /my /etc/mnttab
tail /var/adm/syslog/syslog.log

mfG Peter

PS: Only as user 'pelephone system admin t'
you'll be able to submit points.
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Leonid Mishkind
Frequent Advisor

Re: can not automount

root@unixlab2: grep -i /my /etc/mnttab
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176807176
root@unixlab2: cd /my
root@unixlab2: ll
total 0
root@unixlab2: grep -i /my /etc/mnttab
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176807176

No message was received in syslog

PS: I will take care of the points.
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,

you did not perform the commands exactly as I told you. Please do so - send error messages (if there should be any) as well, please.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Leonid Mishkind
Frequent Advisor

Re: can not automount

root@unixlab2: ls /my/unixlab1
/my/unixlab1 not found
root@unixlab2: ls -ld /my/unixlab1
/my/unixlab1 not found
root@unixlab2: grep /my /etc/mnttab
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176807176
root@unixlab2:
Peter Nikitka
Honored Contributor

Re: can not automount

Hi,

now we know, that the automounter was not triggered by accessing
/my/unixlab1
Try again:
automount -f /etc/auto_master -v

and look at the output.
I did not see your name switch config - please send:
grep auto /etc/nsswitch.conf

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Leonid Mishkind
Frequent Advisor

Re: can not automount

OK. Here is the result:
root@unixlab2: automount -f /etc/auto_master -v
automount: /my mounted
automount: no unmounts
root@unixlab2: ls /my/unixlab1
/my/unixlab1 not found
root@unixlab2: ls -ld /my/unixlab1
/my/unixlab1 not found
root@unixlab2: grep /my /etc/mnttab
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176898055
root@unixlab2: grep -i auto /etc/nsswitch.conf
automount: files nis


Thanks.
Peter Nikitka
Honored Contributor

Re: can not automount

Ok,

due to the output, now we have activated your custom map (before it wasn't!):
>>
root@unixlab2: automount -f /etc/auto_master -v
automount: /my mounted
automount: no unmounts
<<

Now please check the output:
1) ls -l /etc/auto.mymap
There may NOT be execute rights on this file!
2) showmount -e unixlab1

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"