AUTOFS - Troubleshoot directory does not exist


 
Thread Tools Search this Thread
Operating Systems Solaris AUTOFS - Troubleshoot directory does not exist
# 1  
Old 03-20-2009
Bug AUTOFS - Troubleshoot directory does not exist

How to troubleshoot autofs /mnt/sum: does not exist in one of the sun server?

This was working previously. No issue on NFS mounting.

root@devapp # cat /etc/dfs/dfstab
share -F nfs -o rw /linxnet/server2

# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/xfn -xfn



root@linxnet# cat auto_direct
/export/home/linxnet/server2 -ro,intr <devapp ip addr>:/linxnet/server2

# cat auto_master
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/xfn -xfn
/- /etc/auto_direct
# 2  
Old 03-20-2009
IS /mnt/sum your dest or what?
# 3  
Old 03-20-2009
As incredible is pointing out your automount is going to mount to:
/export/home/linxnet/server2
on the NFS client linxnet, not to /mnt/sum.
# 4  
Old 03-21-2009
Thanks for the response.
There is a script file @devapp to copy file from linxnet server to devapp for backup. Previously there is no issue when cd to /mnt/sum and no changes made on this configuration. Please show me how to check on this. Thanks.
# 5  
Old 03-22-2009
Quote:
Originally Posted by KhawHL
Thanks for the response.
There is a script file @devapp to copy file from linxnet server to devapp for backup. Previously there is no issue when cd to /mnt/sum and no changes made on this configuration. Please show me how to check on this. Thanks.
If /mnt/sum is not in any of the automount tables then perhaps it is actually a NFS mount in /etc/vfstab and not automounted at all?
or was /mnt/sum a symbolic link pointing to /export/home/linxnet/server2 ?

Last edited by TonyFullerMalv; 03-22-2009 at 11:11 AM..
# 6  
Old 03-22-2009
Quote:
Originally Posted by TonyFullerMalv
If /mnt/sum is not in any of the automount tables then perhaps it is actually a NFS mount in /etc/vfstab and not automounted at all?
or was /mnt/sum a symbolic link pointing to /export/home/linxnet/server2 ?
At devapp server, I'm able to mount -F nfs linxnet:/export/home/server /mnt and able to see the directory.

Question:
Which file show the automount tables? auto_master and auto_direct? in devapp or linxnet server should I refer? sorry, I'm confused now.. Smilie

How can I configure if I want the /mnt/sum and /mnt/dist to be configured as autofs for accessing to linxnet server? The old conf might lost due to hard disk problem previously.

Please advise. Thank you.Smilie
# 7  
Old 03-23-2009
Okay if you want to mount mount -F nfs linxnet:/export/home/server to /mnt/sum then you want a line in the auto_direct file like this:
Code:
/mnt/sum linxnet:/export/home/server

plus any options you may need to add.

The auto_master file lists all the other active automount tables.
So if you wanted a lot of different mounts under /mnt then you could make a new table call auto_mnt and add it into auto_direct:
Code:
/mnt auto_mnt

Then the mount I mentioned above would go into auto_mnt as:
Code:
sum linxnet:/export/home/server

All this applies to the machine you want to NFS mount to, only the /etc/fstab file needs configuring on the NFS server.

Last edited by TonyFullerMalv; 03-24-2009 at 05:49 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

A file or directory in the path does not exist

I'm brand new to AIX and I looked up how to print this file and it was working but now I'm not able to do it all of a sudden. the file name is rom1.txt so this is what i wrote in the command line and I know I'm in the right directory. In bold is what I seem to be messing up with. prod @ root... (3 Replies)
Discussion started by: Dark0Prince
3 Replies

2. Shell Programming and Scripting

SFTP Does directory exist?

Hi, Im trying to add some validation into my shell script code that basically checks whether a directory exists before SFTP'ing a file to it. If the directory exists then it will add the file, if not then it should return some kind of message. This is the code I have written so far but with no... (1 Reply)
Discussion started by: Jack_Maloney
1 Replies

3. Shell Programming and Scripting

how to check file exist in a directory or not

HI folks, can any one tell me how to check whether the file is existed in a directory or not . let me tell you my requirement : if the file is existed i should display a one message or else i have to send a mail .. i have the mail logic .. but I'm failed to check file existence .. please... (5 Replies)
Discussion started by: sravan008
5 Replies

4. UNIX for Dummies Questions & Answers

How to find if file exist in directory using *

Hi, I know how to use the test command ( ...) to find a single given name file. However, I have a case in which I have a directory with one file and one sub-directory. I know that the file starts with "fub". The command doesn't work if i call the file "fub*" as it doesn't understand I meant a... (2 Replies)
Discussion started by: buj
2 Replies

5. UNIX for Advanced & Expert Users

Directory is invisible in listing but it is exist.

Hi ALL. Can anyone could help me. Have you had a chance to experienced that when you list (ls) a directory from ordinary execution of command, you couldn't see the directory. However, when you list it from the directory filename itself or even changing to directory (cd), it will show to you... (9 Replies)
Discussion started by: BCJapan
9 Replies

6. Shell Programming and Scripting

check the directory exist

I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx ll -d /abc > /dev/null 2>&1 if then echo "the directory exist !!" ... (7 Replies)
Discussion started by: ust
7 Replies

7. Shell Programming and Scripting

To check whether a directory is exist and if it is not, create it

Hi, I want to write a shell script to check whether a directory (say A) is existing in a given location and if it is not, create it. (3 Replies)
Discussion started by: sabya
3 Replies

8. Shell Programming and Scripting

How to check directory exist on servers

There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script. #! /bin/ksh ARRAY_DIRECTORIES="/c/dev/custom/bin" ARRAY_DIRECTORIES="/c/dev/db/custom/src" ARRAY_ENV="remoteName200" ARRAY_ENV="remoteName201"... (2 Replies)
Discussion started by: weonpc
2 Replies

9. Programming

how to check if directory/file exist using c/c++

Hi there, how to check if directory/file exist using c/c++ under linux/unix. Thanks. Steven (2 Replies)
Discussion started by: steven88
2 Replies

10. Shell Programming and Scripting

how to check if directory/file exist using c/c++

Hi there,, how to check if directory/file exist using c/c++ under unix/linux? I can use access() under Window MFC. Thanks. Steven (1 Reply)
Discussion started by: steven88
1 Replies
Login or Register to Ask a Question