Converting Sun Automounter maps

2000-09-22 Thread Stephen Hocking

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?


Stephen
-- 
  The views expressed above are not those of PGS Tensor.

"We've heard that a million monkeys at a million keyboards could produce
 the Complete Works of Shakespeare; now, thanks to the Internet, we know
 this is not true."Robert Wilensky, University of California




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Sun Automounter maps

2000-09-22 Thread Daniel Eischen

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.

-- 
Dan Eischen


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Sun Automounter maps

2000-09-22 Thread Travis Cole


Am-utils http://www.cs.columbia.edu/~ezk/am-utils/ comes with
a nice perl script called automount2amd that does a fine job of
converting sun automount maps to amd maps.

At work we have Solaris, Linux, and FreeBSD all hapily automounting and
talking nis.

I did have to hack automount2amd so FreeBSD defaults to nfsv2 otherwise
Linux freaks (I'm guessing it thinks it can talk nfsv3, but then when it
tries things don't work out).

On Fri, Sep 22, 2000 at 09:08:58AM -0500, 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?
> 
> 
>   Stephen
> -- 
>   The views expressed above are not those of PGS Tensor.
> 
> "We've heard that a million monkeys at a million keyboards could produce
>  the Complete Works of Shakespeare; now, thanks to the Internet, we know
>  this is not true."Robert Wilensky, University of California
> 
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
--tcole


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Sun Automounter maps

2000-09-23 Thread Max Khon

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}
oleghost==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}
paulhost==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
fjoehost==lark;type:=link;fs:=/usr/home/${key} || 
rhost:=lark;rfs:=/usr;sublink:=home/${key}

#
# tiamat users
osyahost==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}
blayhost==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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message