On Wednesday 23 November 2005 11:33 am, Joachim Schrod wrote:
That's a new one for me. Thanks for this information!
man automount -g or --ghost, not --ghosts as in my example (and in my auto.master!) Oops. -- Jim Barnes -- Certainly the game is rigged. Don't let that stop you; if you don't bet, you can't win. -Lazarus Long -- Linux 2.6.11.4-21.9-default
On Wed, 23 Nov 2005, jim barnes wrote:
man automount -g or --ghost, not --ghosts as in my example (and in my auto.master!) Oops.
I did set this up from the word go. But I presume you need to actually cd into the directory first before you can see it later. My users can't seem to grasp that first point :( Maccy
After you have configured the auto.master, did you start the autofs daemon by any chance? Maccy wrote:
On Wed, 23 Nov 2005, jim barnes wrote:
man automount -g or --ghost, not --ghosts as in my example (and in my auto.master!) Oops.
I did set this up from the word go.
But I presume you need to actually cd into the directory first before you can see it later. My users can't seem to grasp that first point :(
Maccy
-- Joseph Loo jloo@acm.org
On Fri, 25 Nov 2005, Joseph Loo wrote:
After you have configured the auto.master, did you start the autofs daemon by any chance?
Relevant files as requested... [root@client ~]# more /etc/auto.master # # $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $ # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). #/misc /etc/auto.misc --timeout=60 #/misc /etc/auto.misc #/net /etc/auto.net /h /etc/auto.home --timeout=300 --ghost /data /etc/auto.data --timeout=300 --ghost /usr/local /etc/auto.local --timeout=300 --ghost /mnt /etc/auto.usb --timeout=4 [root@ally ~]# more /etc/auto.local * -fstype=nfs,rw,nosuid,soft server:/usr/local/& Maccy
For ghost to work you need to be using autofs v4 on the NFS clients. You can check if you are by issuing the lsmod command and looking for autofsv4. David Wiley Maccy <maccy@maccomms.co.uk> wrote on 11/25/2005 09:36:36 AM:
On Fri, 25 Nov 2005, Joseph Loo wrote:
After you have configured the auto.master, did you start the autofs daemon by any chance?
Relevant files as requested...
[root@client ~]# more /etc/auto.master # # $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $ # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). #/misc /etc/auto.misc --timeout=60 #/misc /etc/auto.misc #/net /etc/auto.net /h /etc/auto.home --timeout=300 --ghost /data /etc/auto.data --timeout=300 --ghost /usr/local /etc/auto.local --timeout=300 --ghost /mnt /etc/auto.usb --timeout=4
[root@ally ~]# more /etc/auto.local * -fstype=nfs,rw,nosuid,soft server:/usr/local/&
Maccy
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Fri, 25 Nov 2005 David_Wiley@veritasdgc.com wrote:
For ghost to work you need to be using autofs v4 on the NFS clients. You can check if you are by issuing the lsmod command and looking for autofsv4.
Thanks, yes, according to this I am using V4 Maccy
On Friday 25 November 2005 16:56, Maccy wrote:
On Fri, 25 Nov 2005 David_Wiley@veritasdgc.com wrote:
For ghost to work you need to be using autofs v4 on the NFS clients. You can check if you are by issuing the lsmod command and looking for autofsv4.
Thanks, yes, according to this I am using V4
You also need to add -g to the autofs options in sysconfig so the daemon is told to do it. Dylan
Maccy
-- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
On Fri, 2005-11-25 at 16:36 +0000, Maccy wrote:
On Fri, 25 Nov 2005, Joseph Loo wrote:
After you have configured the auto.master, did you start the autofs daemon by any chance?
Relevant files as requested...
[root@client ~]# more /etc/auto.master # # $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $ # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). #/misc /etc/auto.misc --timeout=60 #/misc /etc/auto.misc #/net /etc/auto.net /h /etc/auto.home --timeout=300 --ghost /data /etc/auto.data --timeout=300 --ghost /usr/local /etc/auto.local --timeout=300 --ghost /mnt /etc/auto.usb --timeout=4
[root@ally ~]# more /etc/auto.local * -fstype=nfs,rw,nosuid,soft server:/usr/local/&
/etc/auto.master and /etc/auto.local should both be on the client machine. Nothing on the server needs to be addressed concerning automounting, aside from the normal nfs setup. -- Jim Barnes -- Certainly the game is rigged. Don't let that stop you; if you don't bet, you can't win. -Lazarus Long -- Linux 2.6.12-9-386
Try this as your /etc/auto.local on the client: (with any other options you may need) usr/local -fstype=nfs alley:/user/local And then restart autofs -- Jim Barnes -- Certainly the game is rigged. Don't let that stop you; if you don't bet, you can't win. -Lazarus Long -- Linux 2.6.12-9-386
On Fri, 25 Nov 2005, jim barnes wrote:
Try this as your /etc/auto.local on the client: (with any other options you may need) usr/local -fstype=nfs alley:/user/local And then restart autofs
Apologies if I did not make myself clear. The original query was.... Assuming autofs is set up correctly, can I 'see' all subdirectories and files listed on the NFS mounted directory before I access/cd into them? And is this where the 'ghost' option comes in? I was really looking for a yes/no answer :) Many thanks in advance all for your help so far. Maccy
On Mon, 2005-11-28 at 11:36 +0000, Maccy wrote:
I was really looking for a yes/no answer :)
Yes to both questions. -- Jim Barnes -- Certainly the game is rigged. Don't let that stop you; if you don't bet, you can't win. -Lazarus Long -- Linux 2.6.12-9-386
On Monday 28 November 2005 04:36 am, Maccy wrote:
I was really looking for a yes/no answer :)
Yes to both questions then. -- Jim Barnes -- Certainly the game is rigged. Don't let that stop you; if you don't bet, you can't win. -Lazarus Long -- Linux 2.6.11.4-21.9-default
participants (6)
-
David_Wiley@veritasdgc.com
-
Dylan
-
jim barnes
-
jim barnes
-
Joseph Loo
-
Maccy