Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automounting Problem.

Status
Not open for further replies.

ranjank

IS-IT--Management
May 9, 2003
176
0
0
IN
Hi

I am getting problem in automounting filesystems.When i cd to the automounted directory i dont' get the listing of files present in that directories.Can anyone help me on this.

Regards,
RK.
 
Hi

1> Check the /etc/exports entry is proper
2> Check manual remote mounting
3> Set the flag AUTOFS=1 in /etc/rc.config.d/nfsconf file

This should solve the problem
Regards
S. Daniel
 
Thanks Daniel for the reply.
I have set the autofs flag to1 but still i am facing the problem.The problem is when i do cd /net/<hostname> i get the reply not found.I can manually mount the file systems.I am not exporting any file system.Both the daemons nfsd and autofs are running.Can any provide any clues.


Regards,
RK.
 
Thanks Daniel for the reply.
I have set the autofs flag to1 but still i am facing the problem.The problem is when i do cd /net/<hostname> i get the reply not found.I can manually mount the file systems.I am not exporting any file system.Both the daemons nfsd and autofs are running.Can any one provide any clues.


Regards,
RK.
 
RK,
Autofs can be a pig to get get going. Try this.

/sbin/init.d/nfs.client stop

Edit /etc/rc.config.d/nfsconf and ensure that the following variables are set
AUTOMOUNT=1
AUTO_MASTER=”/etc/auto_master”
AUTOMOUNT_OPTIONS=”-f $AUTO_MASTER”
AUTOMOUNTD_OPTIONS=
AUTOFS=1

Edit /etc/auto_master and add the line (for 11i)
/- /etc/auto.direct –vers=3,proto=udp

Now create a file called /etc/auto.direct containing your directories.....along the lines of
/net/<hostname> “–o vers=3,proto=udp” <hostname>:/export/directory

Make sure the both auto_master and auto.direct are 666 mode.
Then run
/sbin/init.d/nfs.client start

and keep your fingers crossed.
 
try putting the mounted host name in the /.rhosts file.

Bob
 
Hi,

To use the &quot;/net/&quot; automount structure put the following entry in /etc/auto_master.

echo &quot;/net -hosts&quot; >> /etc/auto_master

Stop and start nfs.client

Geoff

BTW - no system file should ever be mode 666, 644 is adequate. And .rhosts entries have nothing to do with NFS mounting.
 
Hi Ranjank, have you tried pfs_mount?
If it is already running, use: nohup /usr/sbin/pfsd&
And also nohup /usr/sbin/pfs_mountd &
If it isn´t running, run both of them and type:
pfs_mount /cdrom (or whatever...)

Hope this helps, regards,
vlan52
[sunshine]

vlan52
The end of wisdom is freedom. The end of culture is perfection. The end of
education is character. The end of knowledge is love.
 
FYI -

pfs shouldn't be needed anymore if you've installed the following patches on your system.

11.00
---------
PHCO_25841
PHKL_28025
PHKL_26269

11.11
---------
PHCO_26449
PHKL_26450
PHKL_28060

Geoff
 
Isn't pfs used for CDs only? The problem is with automounting filesystems from other servers, not with mounting a CD.
 
Hi, and I'm sorry everybody, for my wrong answer, have been pretty busy on friday, and made a mistake on the translation.

Once again, I apologize, best regards,
vlan52
[sunhine]

vlan52
The end of wisdom is freedom. The end of culture is perfection. The end of
education is character. The end of knowledge is love.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top