Matt Mossholder on 3 Nov 2007 23:06:06 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] autofs question.


On Sat, 2007-11-03 at 18:07 -0400, Mag Gam wrote:
> Hi All
> 
> I am new to autofs, and kind of learning Perl. I was asked to write
> something to make sure if our NFSed file systems are accessible. The
> only way I can think is, knowing the directories name in the exported
> filesystem, and 'cd' into it, to make sure its accessible. I am
> writing a perl script to traverse thru the filesystem and making sure
> I can access each filesystem. My question is, is there a way to find
> out all the directories on an exported autofs' filesystem?  Any
> techniques I can do to verify the autofs is working okay? 
> 
> TIA 

The best way to determine what is out there in autofs land is to look at
the automount maps.  auto.master, auto.net, auto.misc.  Auto.master
should point out the rest of the maps, and then you can traverse them to
determine all the automounted directories.

autofs itself just sits around doing nothing, and can't really break.
What breaks is the exported directories on the remote systems (system
has crashed, nfs gets hosed, etc.) The only good way to test is to try
and get a file listing off each of the directories.


		--Matt



___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug