1833091 Members
3217 Online
110050 Solutions
New Discussion

auto mount

 
SOLVED
Go to solution
Yarok
Regular Advisor

Re: auto mount

Thanks for the information.

Please note that the reasult for the command ps -fu root | grep auto is
/usr/lib/netsvc/fs/autofs/automountd
1. does the "d" has meaning?
2. How can I activate/cancel this process?

BR,

Yaron
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi,

Answers to your questions....

> 1. does the "d" has meaning?

"d" there would normally stand for daemon. Should not be mistaken for other terminology, it stands for "disk and execution monitor" if I remember right :)...

> 2. How can I activate/cancel this process?

kill -9
{to kill a process}

If you want to activate something, start the service itself and the services startup script initialization is done under directories /sbin/init.d.... and for v3 you would find one for AutoFS and as such the whole subsystem can be stopped or started.

These are answers to your questions, not sure which route you have taken!

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Yarok
Regular Advisor

Re: auto mount


Thanks,

Just let me know the difference between PID and service.

>kill -9
It use to kill a process ID in order to stop the process or service?


>If you want to activate something, start the service itself and the services startup script initialization is done under directories /sbin/init.d

1. I must first make sure that
etc/rc.config.d/nfsconf NFS_CLIENT = 1 ?

2. Shuld I do the same to activate a server?
etc/rc.config.d/nfsconf NFS_SERVER = 1?

/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.server start

Mr. Dennis claimes that my fstab entry indicates NO NFS mounts at all. So you could have been using the automounter to mount NFS filesystem.
Can you please explain?

Regards,

Yaron




Dennis Handly
Acclaimed Contributor

Re: auto mount

>1. does the "d" has meaning?

As Ismail mentioned, many demons have process names that end in "d". Some even have man pages: ls /usr/share/man/man1m.Z/*d.1m

>2. How can I activate/cancel this process?

Every process/demon started by rc(1m) has an appropriate script that starts and stops it.

>Just let me know the difference between PID and service.

Except for certain kernel actions, everything needs a process to do it. And a PID is their handle.

>It use to kill a process ID in order to stop the process or service?

You should only use this as the last resort.

>1. I must first make sure that
/etc/rc.config.d/nfsconf NFS_CLIENT=1?

If you want to remote mount NFS filesystems.

This needs: /sbin/init.d/nfs.client start

>2. Should I do the same to activate a server?
/etc/rc.config.d/nfsconf NFS_SERVER=1?
>/sbin/init.d/nfs.server stop
>/sbin/init.d/nfs.server start

If you want to export filesystems to other systems.

>Dennis claims that my fstab entry indicates NO NFS mounts at all. So you could have been using the automounter to mount NFS filesystem.

NFS mounts can be done in several ways.
1) In /etc/fstab so they are mounted on every boot.
2) An explicit mount command by the sysadmin.
3) Automounter mounts when they are used.

You don't have 1), you would likely know about 2), so what's left is 3).
Also check /etc/mnttab for current mounts.

>Ismail: kill -9 {to kill a process}

-KILL should always be the last resort.

>start the service itself and the services startup script initialization is done under directories /sbin/init.d.

This is the right way.
Ismail Azad
Esteemed Contributor

Re: auto mount

Hi Yaron,

I think this might be one of the fundamental points to your question. Rechecking the attachment of /etc/fstab. There are no NFS mounts on it. Maybe the NFS entries were missing or maybe AutoFS was configured and that is how your filesystems where expected to be mounted. I have asked this before, please let us know 1) Are you trying to mount an NFS filesystem from an NFS server wihtout making use of AutoFS or 2)Are you trying to mount with the NFS clients side service AutoFS? If you are referring to the second option then, your initial question at the top of the page is normal behaviour.


If you have AutoFS configured, the mount will not reflect on your mount table every time your system boots. AutoFS is used to mount a filesystem depending on "accessing" the filesystem and "unmounts" depending on "idle" time and hence these filesystems which are configured with AutoFS maps will not mount on every reboot but will depending on "access" as mentioned by one of the forumers. Since you are having the automount daemon running and if the filesystem in question is making use of this daemon, then this filesystem is not expected to be mounted at boot time but is expecting to get mounted by waiting for it to be 'accessed'.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Yarok
Regular Advisor

Re: auto mount

Hello Ismail,

> Rechecking the attachment of /etc/fstab. There are no NFS mounts on it.

But the last line mentioned nfs. If not nfs what kind of mount do I have?

>Maybe the NFS entries were missing or maybe AutoFS was configured and that is how your filesystems where expected to be mounted. I have asked this before, please let us know 1) Are you trying to mount an NFS filesystem from an NFS server wihtout making use of AutoFS or 2)Are you trying to mount with the NFS clients side service AutoFS? If you are referring to the second option then, your initial question at the top of the page is normal behaviour.

Sorry for the lack of knowladge but I dont know answer the above questions. What should check? how? what commands should I use?
I know that:

ps -ef | grep auto gives:

root ....... Jan 30 console autofs_proc
root .......30 ? /usr/lib/netsvc/fs/autofs/automountd
(I have already wrote it, so I think the AoutoFS is running).


> AutoFS is used to mount a filesystem depending on "accessing" the filesystem

like cd and ls or mount?
> and "unmounts" depending on "idle" time

What is "idle" time?
Since you are having the automount daemon running and if the filesystem in question is making use of this daemon, then this filesystem is not expected to be mounted at boot time but is expecting to get mounted by waiting for it to be 'accessed'.

Ok, I think this is the case but not sure.
If so, how do I change it to be mounted at each boot?

By the way Ismail,
The problem that I mentioned in other forum:
nfs mount: get_fh: IP_ADRESS: : RCP: Program not registered
is still there. Is it concern to what you mentioned (my system dose not run the AutoFS)?

BR,

Yaron.
Dennis Handly
Acclaimed Contributor

Re: auto mount

>But the last line mentioned nfs. If not nfs what kind of mount do I have?

You have mentioned TWO machines. One that works and one that didn't. We are commenting on the broken machine from: Feb 2, 2011 13:24:04

>>1) Are you trying to mount an NFS filesystem from an NFS server without making use of AutoFS or 2)Are you trying to mount with the NFS clients side service AutoFS?

>Sorry for the lack of knowledge but I don't know answer the above questions.

You have to know what you want to do. On your working machine you are using the automounter. Do you want to do the same on your broken machine?

>(so I think the AoutoFS is running).

Yes, on your working machine.

>like cd and ls?

Yes or you have a file still open.

>What is "idle" time?

The time since you last used that filesystem.

>how do I change it to be mounted at each boot?

By adding entries in /etc/fstab.

>The problem that I mentioned in other forum:
nfs mount: get_fh: IP_ADRESS: : RCP: Program not registered
is still there.
http://h30499.www3.hp.com/t5/Networking/nfs-mount-get-fh-RCP-program-not-registered/m-p/4747959#M47217


It might be best not to confuse us with your other problem. ;-)
Or better yet, not separate the two.

Perhaps you should start all over.
What machines do you have?
Which works?
What do you want to do?

Yarok
Regular Advisor

Re: auto mount

Ok, RESTART:

> What machines do you have?

I have several machines.
Now I would like to mount between 2 of them.
1. EREZ2
2. VENUS2

> What do you want to do?
> Which works?

The problems
1. mounting
EREZ2# mount IP_ADDRESS:/scc /venus2
nfs mount: get_fh: IP_ADDRESS: : RCP: Program is not registered
2. AUTOMOUNT
When rebooting machines (both), the mount does not hold.

Additional information:
EREZ2:
/etc/rc.config.d/nfsconf
"NFS_CLIENT=1"
"NFS_SERVER=1"
# ps -ef | auto
Jan 30 consule autofs_proc
Jan 30 ? /usr/lib/netsvc/fs/autofs/automntd
# showmount
(anon)

VENUS2:
/etc/rc.config.d/nfsconf
"NFS_CLIENT=1"
"NFS_SERVER=0"
# ps -ef | auto
Feb 3 pts/3 autofs_proc
Feb 3 ? /usr/lib/netsvc/fs/autofs/automntd
# showmount
showmount: venus2: RCP: Program not registered

/etc/fstab of both machines mentioned nfs and vxfs.

Sorry for the mess. I hope that things are more clear now. If more information is needed just let me know.

BR,

Yaron
Dennis Handly
Acclaimed Contributor

Re: auto mount

>mount IP_ADDRESS:/scc /venus2

Is this the IP address of venus or some other machine? If venus, why not use that?
Can you ping and nslookup IP_ADDRESS and venus?
Yarok
Regular Advisor

Re: auto mount

Sure, it is venus IP_ADDRESS

I can ping to this address and nslookup as well.
Yarok
Regular Advisor

Re: auto mount

Hello Dennis and Ismail,

Do you have a solution to my problem?

Regards,

Yaron