From owner-freebsd-hackers Sat Sep 23 2:29: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 96B4437B424 for ; Sat, 23 Sep 2000 02:28:59 -0700 (PDT) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id QAA07272; Sat, 23 Sep 2000 16:27:48 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Date: Sat, 23 Sep 2000 16:27:47 +0700 (NSS) From: Max Khon To: Daniel Eischen Cc: Stephen Hocking , hackers@FreeBSD.ORG Subject: Re: Converting Sun Automounter maps In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Fri, 22 Sep 2000, Daniel Eischen wrote: > On Fri, 22 Sep 2000, Stephen Hocking wrote: > > I've stumbling into the wonderful world of auto-mounting, and trying to > > convert some maps from a Sun box to the FreeBSD format. I have amd.conf set up > > OK as per the man page, but keep on getting errors when changing into the > > relevant directorys (like amd can't find an appropriate match). Has anyone > > been down this path? > > Somewhat related to this... > > I've tried to get FreeBSD to behave with Sun automount home directories. > When all the (Sun) home directories are on one system, I could get > by by exporting the home directory on the Sun and automounting this > as /home on the FreeBSD box. But we're now expanding so that home > directories will exist on 2 different Sun boxen, and this will no > longer work. I've resorted to disable automounting of users home > directories on the Suns (where /home/ could be automounted to > any Sun box/filesystem) and am now auotmounting /home/ > instead. So home directories are /home/box1/user23 or /home/box2/user134. > FreeBSD can now deal with this by automounting box1 and box2 under /home. > > amd-utils doesn't seem to support the autofs mapping needed to > allow FreeBSD to exist in such an environment where each users home > directory is automounted. I remember searching the newsgroups > regarding this issue, and there did seem to be some initial support > for autofs though. we do automounting user homes this way: --- cut here (amd.home amd map) --- /defaults type:=nfs;opts:=rw,vers=3,proto=tcp,intr,soft,nodevs,nosuid,rsize=8192,wsize=8192; # # master users ros host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} oleg host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} nik host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} [...] sol host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} ilnar host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} eug host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} paul host==master;type:=link;fs:=/usr/home/${key} || rhost:=master;rfs:=/usr/home;sublink:=${key} # # biboca users al host==biboca;type:=link;fs:=/usr/home/${key} || rhost:=biboca;rfs:=/usr;sublink:=home/${key} # # lark users fjoe host==lark;type:=link;fs:=/usr/home/${key} || rhost:=lark;rfs:=/usr;sublink:=home/${key} # # tiamat users osya host==tiamat;type:=link;fs:=/usr/home/${key} || rhost:=tiamat;rfs:=/usr;sublink:=home/${key} # # lizard users cs host==lizard;type:=link;fs:=/usr/home/${key} || rhost:=lizard;rfs:=/usr;sublink:=home/${key} # # xaa users xaa host==xaa;type:=link;fs:=/usr/home/${key} || rhost:=xaa;rfs:=/usr;sublink:=home/${key} # # drugon users als host==drugon;type:=link;fs:=/usr/home/${key} || rhost:=drugon;rfs:=/usr;sublink:=home/${key} blay host==drugon;type:=link;fs:=/usr/home/${key} || rhost:=drugon;rfs:=/usr/home;sublink:=${key} plesk host==drugon;type:=link;fs:=/usr/home/${key} || rhost:=drugon;rfs:=/usr;sublink:=home/${key} --- cut here --- /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message