1833788 Members
2538 Online
110063 Solutions
New Discussion

Re: AUTOFS problem

 
Tarek
Super Advisor

AUTOFS problem

Hi all..
i updated my system from the old automount to the new autofs.
It seems working, but i'm having a problem.
Example:
i'm user tarek and i have my home directory on ws1. When i'm on ws1 as root and i do su - tarek or cd ~tarek, tarek's area is being mounted via nfs: /net/home/tarek
But i'm locally on the ws !!!
With the old automount when i was root and i typed those commands...tarek are wasn't mounted via nfs, it was only /home/tarek
I hope my assertion was helpful.
Do i configured something wrong?
16 REPLIES 16
Tarek
Super Advisor

Re: AUTOFS problem

The autofs is configured, i don't have to configure it again.
This is my entry in the /etc/rc.config.d/nfsconf
nfs_client=1
nfs_server=1
automount=1 (do i have to put it =0??)
auto_master="/etc/auto_master"
auto_options="if $auto_master"
start_mountd=1
autofs=1
My /etc/auto_master
/net - hosts nosuid
My /etc/mnttab
/dev/vg00/lvol3 / vxfs log 0 1 987001085
/dev/vg00/lvol1 /stand hfs defualts 0 0 987001087
/dev/vg00/lvol4 /home vxfs delaylog,nodatainlog 0 0 987001094
-hosts /net autofs ignore,indirect, 0 0 987001151
I hope it's enough!!
Vincent Stedema
Esteemed Contributor

Re: AUTOFS problem

Tarek,

You can set automount to 0.

What does your /etc/exports look like? Is /home/tarek on ws1 exported also to s1?

Vincent
Tarek
Super Advisor

Re: AUTOFS problem

The entry in my /etc/exports is:
/
/cdrom -o ro
I have set the automount variable to 0, i stopped the nfs client and started it, but now nfs doesn't work. Also after reboot now it isn't working.
Tarek
Super Advisor

Re: AUTOFS problem

The entry in my /etc/exports is:
/
/cdrom -ro
I have set the automount variable to 0, i stopped the nfs client and started it, but now nfs doesn't work. Also after reboot now it isn't working.
Pedro Sousa
Honored Contributor

Re: AUTOFS problem

Hi!
please change automount to 1 again. This will fix the startup problem.
Why don't you try to mount your nfs by sam?

did you mount where you want it to be?
sorry, I don't know if this is usefull.
Tarek
Super Advisor

Re: AUTOFS problem

Yeah...i had set the automount variable to 1. Now it works but i'm having that problem. It is really strange that if your on the ws locally you have to mount your local area via nfs. Is my /etc/auto_master right or i have to modify it? And is that entry in /etc/mnttab correct?
Vincent Stedema
Esteemed Contributor

Re: AUTOFS problem

First of all, remove the "/" entry from /etc/exports OR append "-access=:" to the entry, where represents the systems you want to export the root filesystem to. In the current setup, every other machine in your network would be able to mount your root filesystem..

Do you get any nfs errors?

Vincent
Tarek
Super Advisor

Re: AUTOFS problem

sorry my entry in the /etc/exports is:
/home
/cdrom -ro
i'm not having nfs errors...nfs is working..
i'm having that problem if i try to enter in my area..it is mounting it via nfs, and that isn't correct.
if i do a bdf i have
/
/stand
/home
/net/ws (it is mounting me my area /home/tarek)
Pedro Sousa
Honored Contributor

Re: AUTOFS problem

you can remove mnttab and perform a bdf to recreate it.
But I think it will not solve your problem.

Try by SAM:
Networking & Communications -> Networked FileSystems -> Mounted Remote File Systems

Check there if you anything abnormal.
hope it helps.
Vincent Stedema
Esteemed Contributor

Re: AUTOFS problem

Tarek,

You're exporting your /home filesystem to all machines on the network, including your own workstation. Append "-access=", where is the host you want to access the nfs export, to the /home entry in /etc/exports. Then, issue "exportfs -a" and "automount -v".

Vincent
Thomas Kollig
Trusted Contributor

Re: AUTOFS problem

Hi!

If /home is mounted, what fs type has it in /etc/mnttab -- lofs or nfs? If it is lofs, it isn't mounted via nfs.

What's about direct maps?

Thomas
Tarek
Super Advisor

Re: AUTOFS problem

in the /etc/mnttab when i mount my area i have:
/ /net/gehp180 lofs defaults 0 0 987086221
Are you sure it isn't using nfs??
When i was using automount and i mounted my local area i was in:
/home/tarek
now with autofs i am in:
/net/home/tarek
Thomas Kollig
Trusted Contributor

Re: AUTOFS problem

Hi again!

lofs - loopback file system:
"Is used to mount an existing directory onto another directory."

So I think there is no nfs involved. If you mount a remote directory then it is marked as nfs in /etc/mnttab.

Bye, Thomas
Kevin Wright
Honored Contributor

Re: AUTOFS problem

I am 99% sure that the automounter and Auto FS cannot be both running on the same system. AUTOfs daemon is called automountd,and it uses another daemon called auto_proc or something..I cannot remember exactly..do a ps -ef and make sure only these daemons are running, automount -f /auto_master should NOT be running if you use AUTOFS.
HP-UX SYSTEM MANAGER
Occasional Advisor

Re: AUTOFS problem

We have the *same exact* problem, and none of the comments reall;y touch the real issue.

The problem is that, with autoFS, if a user logs into a machine and does a 'pwd' it shows up as "/net//home/" instead of "/home/". This is causing problems with us for use with some other software, who needs the PWD to just be "/home/" Automount used to "know" when the user was on the home machine, and wouldn't use the NFS mount as the home directory.

I'm trying to find out how to make autoFS realize this, too.