All of lore.kernel.org
 help / color / mirror / Atom feed
* Ubuntu NFS automount problem
@ 2008-11-23  2:27 Bill Shannon
  2008-11-24  4:08 ` Ian Kent
  0 siblings, 1 reply; 18+ messages in thread
From: Bill Shannon @ 2008-11-23  2:27 UTC (permalink / raw)
  To: autofs

I'm running Ubuntu 8.04 (Hardy Heron) on my desktop at home.
I have an OpenSolaris 2008.11 server and a Solaris 10 server.
Both servers export NFS filesystems.

On my Ubuntu desktop, the autmounter doesn't want to automount hierarchical
filesystems.  I first noticed this with /home, but /net doesn't work either.

My OpenSolaris server is named "nissan".  My Solaris server is named "nissan2".

# showmount -e nissan
Export list for nissan:
/backup                 (everyone)
/backup/download        (everyone)
/export/home/admin      (everyone)
/backup/pictures        (everyone)
/export/home/shannon    (everyone)
/export/home            (everyone)
/export/home/readerware (everyone)
/backup2                (everyone)
/export/home/opt        (everyone)
# showmount -e nissan2
Export list for nissan2:
/export/home (everyone)
/backup      (everyone)
/backup2     (everyone)
# cat /etc/auto.net
*	-rw,intr	&:/
# ls /net/nissan
ls: cannot access /net/nissan: No such file or directory
# ls /net/nissan2
ls: cannot access /net/nissan2: No such file or directory
# ls /home/nissan
admin  opt  readerware	shannon
# ls /home/nissan/shannon
# ls /home/nissan2/shannon
(lots of files)

Of course I have all those hierarchical exports on OpenSolaris because
of separate zfs filesystems.

Has anyone else seen this with the Ubuntu automounter?  Is this a known bug?
I've spent over an hour searching the web and I can't find an explanation
for this problem.

Thanks for any help!

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: Ubuntu NFS automount problem
@ 2008-11-25  1:10 Brent Callaghan
  0 siblings, 0 replies; 18+ messages in thread
From: Brent Callaghan @ 2008-11-25  1:10 UTC (permalink / raw)
  To: autofs; +Cc: bill.shannon

Normally we'd expect to see something like this in an auto.master map:

	/net			-hosts		-nobrowse,nosuid
	/home			auto_home	-nobrowse

The -hosts built-in map uses the mount protocol to derive a list of
exports (as Bill did with showmount) and it'll mount the whole
hierarchy if you touch all the triggers, i.e. it'll mount "/backup"
then "/backup/download".  For some reason, it appears that
the /net map on the client isn't working at all.  Bill, is there
an autofs mount on /net ?

I wouldn't normally expect hierarchical home directory mounts
unless the map entry in auto_home is specifically configured
to provide it, e.g.

	shannon  \
		/		nissan:/export/home/shannon \
		/stuff	nissan:/export/home/shannon/stuff

However, normally you should expect /home to be set up
with the username rather than the hostname as the key, e.g.
you should be trying to access "/home/shannon" or somesuch
rather than "/home/nissan".

	Brent

	


>
> On Sat, 2008-11-22 at 18:27 -0800, Bill Shannon wrote:
>> I'm running Ubuntu 8.04 (Hardy Heron) on my desktop at home.
>> I have an OpenSolaris 2008.11 server and a Solaris 10 server.
>> Both servers export NFS filesystems.
>>
>> On my Ubuntu desktop, the autmounter doesn't want to automount  
>> hierarchical
>> filesystems.  I first noticed this with /home, but /net doesn't  
>> work either.
>>
>> My OpenSolaris server is named "nissan".  My Solaris server is  
>> named "nissan2".
>>
>> # showmount -e nissan
>> Export list for nissan:
>> /backup                 (everyone)
>> /backup/download        (everyone)
>> /export/home/admin      (everyone)
>> /backup/pictures        (everyone)
>> /export/home/shannon    (everyone)
>> /export/home            (everyone)
>> /export/home/readerware (everyone)
>> /backup2                (everyone)
>> /export/home/opt        (everyone)
>> # showmount -e nissan2
>> Export list for nissan2:
>> /export/home (everyone)
>> /backup      (everyone)
>> /backup2     (everyone)
>> # cat /etc/auto.net
>> *	-rw,intr	&:/
>
> How is do you expect this to work, explain?
>
>> # ls /net/nissan
>> ls: cannot access /net/nissan: No such file or directory
>> # ls /net/nissan2
>> ls: cannot access /net/nissan2: No such file or directory
>> # ls /home/nissan
>> admin  opt  readerware	shannon
>> # ls /home/nissan/shannon
>> # ls /home/nissan2/shannon
>> (lots of files)
>>
>> Of course I have all those hierarchical exports on OpenSolaris  
>> because
>> of separate zfs filesystems.
>>
>> Has anyone else seen this with the Ubuntu automounter?  Is this a  
>> known bug?
>> I've spent over an hour searching the web and I can't find an  
>> explanation
>> for this problem.
>>
>> Thanks for any help!
>>
>> _______________________________________________

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-11-25 12:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-23  2:27 Ubuntu NFS automount problem Bill Shannon
2008-11-24  4:08 ` Ian Kent
2008-11-24  7:25   ` Bill Shannon
2008-11-24 12:52     ` Ian Kent
2008-11-24 15:42       ` Bill Shannon
2008-11-24 16:00       ` Peter Staubach
2008-11-24 16:26         ` Ian Kent
2008-11-24 20:31         ` Bill Shannon
2008-11-25  1:32           ` Ian Kent
2008-11-25 10:27             ` Ondrej Valousek
2008-11-25 11:27               ` Ian Kent
2008-11-25 11:44                 ` Ondrej Valousek
2008-11-25 12:11                   ` Ian Kent
2008-11-24 15:59     ` Bill Shannon
2008-11-24 17:43       ` Ian Kent
2008-11-24 20:35         ` Bill Shannon
2008-11-25  1:21           ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2008-11-25  1:10 Brent Callaghan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.