Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

amd.map

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Q: cvsup, standard-supfile, and 5.3...  
Author Message
Thomas Schweikle

External


Since: Sep 11, 2004
Posts: 16



(Msg. 1) Posted: Wed Dec 01, 2004 5:21 pm
Post subject: amd.map
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Hi!

since this isn't documented in any way: what do I have to put into a
amd map-file?

The man page referred to at different places mentions map-files, but
doesn't document them. The only thing I have is the original
"/etc/amd.map". The FreeBSD handbook isn't helpful either. Just the
usual reference to man "amd(Cool" and man "amq(2)". Which both do not
explain what I would have to put into a map-file.

"amd.conf" is documented to some extend.

Now here is what I've set up:
/etc/rc.conf:
| amd_enable="YES"
| amd_flags="-F /etc/amd.conf"
| amd_map_program="NO"

/etc/amd.conf:
| [ globals ]
| auto_dir = /.amd_map
| browseable_dirs = yes
| log_file = syslog
| log_options = all
| map_type = files
| pid_file = /var/run/amd.pid
| plock = yes
| print_pid = yes
| restart_mounts = yes
| search_path = /etc/amd
|
| [ /net ]
| map_name = net
|
| [ /usr/local/distfiles ]
| map_name = distfiles

for the map "net" I used the original "/etc/amd.map":
| # $FreeBSD: src/etc/amd.map,v 1.8 1999/09/13 17:09:07 peter Exp $
| #
| /defaults \
| type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key}
| * opts:=rw,grpid,resvport,vers=2,proto=udp,nosuid,nodev

But now I need to know, what to put into my map "distfiles"?
This directory is located on "hazel" at "/usr/ports/distfiles" and I
want it to mount if someone changes to "/usr/ports/distfiles".

Without my own, new amd-mountpoint "/etc/ports/distfiles", this
works. But I want to extend it ...!

--
Thomas

 >> Stay informed about: amd.map 
Back to top
Login to vote
Michel Talon

External


Since: Sep 05, 2003
Posts: 76



(Msg. 2) Posted: Wed Dec 01, 2004 5:21 pm
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thomas Schweikle wrote:
> Hi!
>
> since this isn't documented in any way: what do I have to put into a
> amd map-file?
>

This one i can answer precisely since i have a working amd config Sad

asmodee% cd /etc
asmodee% cat amd.conf
[global]
auto_dir = /.amd
log_file = /var/log/amd.log
log_options = all
map_type = file
search_path = /etc

[/Cd]
map_name = amd.cdrom

# For nfs mounts

[/Net]
map_name = amd.net
asmodee% cat amd.cdrom
cdrom type:=cdfs;opts:=ro,nosuid;dev:=/dev/acd0c;fs:=${autodir}/cdrom
asmodee% cat amd.net
/defaults type:=host;fs:=${autodir}/${rhost};rhost:=${key}
* opts:=rw,grpid,resvport,nosuid,nodev,soft

Hope it is easy to understand, the cdrom will be mounted under /Cd
and the NFS mounts will appear under /Net.


--

Michel TALON

 >> Stay informed about: amd.map 
Back to top
Login to vote
Thomas Schweikle

External


Since: Sep 11, 2004
Posts: 16



(Msg. 3) Posted: Wed Dec 01, 2004 10:48 pm
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michel Talon wrote:
> Thomas Schweikle wrote:
>> Hi!
>>
>> since this isn't documented in any way: what do I have to put into a
>> amd map-file?
>>
>
> This one i can answer precisely since i have a working amd config Sad
>
> asmodee% cd /etc
> asmodee% cat amd.conf
> [global]
> auto_dir = /.amd
> log_file = /var/log/amd.log
> log_options = all
> map_type = file
> search_path = /etc
>
> [/Cd]
> map_name = amd.cdrom
>
> # For nfs mounts
>
> [/Net]
> map_name = amd.net
> asmodee% cat amd.cdrom
> cdrom type:=cdfs;opts:=ro,nosuid;dev:=/dev/acd0c;fs:=${autodir}/cdrom
> asmodee% cat amd.net
> /defaults type:=host;fs:=${autodir}/${rhost};rhost:=${key}
> * opts:=rw,grpid,resvport,nosuid,nodev,soft
>
> Hope it is easy to understand, the cdrom will be mounted under /Cd
> and the NFS mounts will appear under /Net.

Yes, this is OK, but I have to give

cd /net/hazel/usr/ports/distfiles

to have "hazel:/usr/ports/distfiles" mounted. What I want is just do

cd /usr/ports/distfiles

and have "hazel:/usr/ports/distfiles" mounted. This is the same as
the default delivered with amd. I need the one doing the mount on
/usr/ports/distfiles not on "/net". But how do I define this? How do
I define the host "/usr/ports/distfiles" is found on? How do I
change the packet size to make this more performant?

I do have a lot more questions on these "amd.map"-Files, answered
nowhere! Where is the documentation to this thing?

--
Thomas
 >> Stay informed about: amd.map 
Back to top
Login to vote
Michel Talon

External


Since: Sep 05, 2003
Posts: 76



(Msg. 4) Posted: Wed Dec 01, 2004 11:02 pm
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thomas Schweikle wrote:
>> Hope it is easy to understand, the cdrom will be mounted under /Cd
>> and the NFS mounts will appear under /Net.
>
> Yes, this is OK, but I have to give
>
> cd /net/hazel/usr/ports/distfiles
>
> to have "hazel:/usr/ports/distfiles" mounted. What I want is just do
>
> cd /usr/ports/distfiles

ln -s /net/hazel/usr/ports/distfiles /usr/ports/distfiles
should do the trick.

>
> and have "hazel:/usr/ports/distfiles" mounted. This is the same as
> the default delivered with amd. I need the one doing the mount on
> /usr/ports/distfiles not on "/net". But how do I define this? How do
> I define the host "/usr/ports/distfiles" is found on? How do I
> change the packet size to make this more performant?

In the options i have in /etc/amd.net for the NFS mount. Anything
accepted by mount is good here.

>
> I do have a lot more questions on these "amd.map"-Files, answered
> nowhere! Where is the documentation to this thing?
>

There is an .info document, very big, and clear as muddy water.


--

Michel TALON
 >> Stay informed about: amd.map 
Back to top
Login to vote
Thomas Schweikle

External


Since: Sep 11, 2004
Posts: 16



(Msg. 5) Posted: Thu Dec 02, 2004 8:33 pm
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michel Talon wrote:
> Thomas Schweikle wrote:
>>> Hope it is easy to understand, the cdrom will be mounted under /Cd
>>> and the NFS mounts will appear under /Net.
>>
>> Yes, this is OK, but I have to give
>>
>> cd /net/hazel/usr/ports/distfiles
>>
>> to have "hazel:/usr/ports/distfiles" mounted. What I want is just do
>>
>> cd /usr/ports/distfiles
>
> ln -s /net/hazel/usr/ports/distfiles /usr/ports/distfiles
> should do the trick.

Yes, but I wanted to know, how to configure a direct mount (in this
case). Since the server is Linux I am using autofs with nis. Thus I
needed to know how to configure amd to understand autofs maps --- I
knew this is possible, but how? Now I could do the trick. One gave
me a path to the documents for amd.

>> and have "hazel:/usr/ports/distfiles" mounted. This is the same as
>> the default delivered with amd. I need the one doing the mount on
>> /usr/ports/distfiles not on "/net". But how do I define this? How do
>> I define the host "/usr/ports/distfiles" is found on? How do I
>> change the packet size to make this more performant?
>
> In the options i have in /etc/amd.net for the NFS mount. Anything
> accepted by mount is good here.

Yes, but there a lot more, and not all of them are well documented.
You may mount a cdrom by cdfs with amd. The documents available
after installing do not state this in any way.

>> I do have a lot more questions on these "amd.map"-Files, answered
>> nowhere! Where is the documentation to this thing?
>
> There is an .info document, very big, and clear as muddy water.

This document is as bad, as "man amd" is. Not much more information!
The only documentation worth noting is available on the amd project
pages.

--
Thomas
 >> Stay informed about: amd.map 
Back to top
Login to vote
Gunther Nikl

External


Since: Sep 24, 2004
Posts: 6



(Msg. 6) Posted: Tue Dec 14, 2004 9:59 am
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thomas Schweikle wrote:
> I do have a lot more questions on these "amd.map"-Files, answered
> nowhere! Where is the documentation to this thing?

Some time ago there was an article on daemonnews.org about amd. It was
very helpful for me to get automatic NFS and cdrom access working.
BTW, I don't have an amd.conf file, only a map file.

Gunther

--
Linux is only free if your time has no value
- Jamie Zawinski
 >> Stay informed about: amd.map 
Back to top
Login to vote
Logan Shaw

External


Since: Dec 15, 2004
Posts: 1



(Msg. 7) Posted: Wed Dec 15, 2004 12:58 am
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gunther Nikl wrote:

> Thomas Schweikle wrote:
>
>>I do have a lot more questions on these "amd.map"-Files, answered
>>nowhere! Where is the documentation to this thing?
>
>
> Some time ago there was an article on daemonnews.org about amd. It was
> very helpful for me to get automatic NFS and cdrom access working.
> BTW, I don't have an amd.conf file, only a map file.

There is also some documentation at http://www.am-utils.org/ .
I'm not sure if FreeBSD is up-to-date with this version, but it
might be a good place to get some information anyway.

- Logan
 >> Stay informed about: amd.map 
Back to top
Login to vote
David Magda

External


Since: Jul 31, 2004
Posts: 6



(Msg. 8) Posted: Fri Dec 17, 2004 9:16 am
Post subject: Re: amd.map [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Logan Shaw writes:

> There is also some documentation at http://www.am-utils.org/ . I'm
> not sure if FreeBSD is up-to-date with this version, but it might
> be a good place to get some information anyway.

4.10-STABLE has version 6.0.3s1 which the ChangeLog
(src/contrib/amd/ChangeLog) says was released on 1999-10-13. 5.x (and
6.x?) were recently upgraded to 6.0.10p1 (ChangeLog is at
2004-05-12).

I believe that HEAD also has the beginnings of autofs support as well
(or at least I remember seeing a commit message that mentions it
somewhere).

--
David Magda <dmagda at ee.ryerson.ca>, http://www.magda.ca/
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
 >> Stay informed about: amd.map 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

configuring freebsd dhcp server/router to listen on device - Hello, Im trying to move away from my linksys wireless router and move onto an old Pentium 200 Mhz I have. It will be the gateway between my modem and my network. I installed isc-dhcp3 on the box and took the sample dhcp.conf file in the freebsd..

PPP - Hi! I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in the freeBSD handbook. Precicely I don't understand what is N in the first paragraph. Is it necessary to change the tun0? I have an other question.(I'm sorry if it..

PPP - Hi!! In the FreeBSD handbook, the chapter 18.3.3 talk about the file /etc/ppp/options. I think I must create it and copy that it's written in the handbook concerning this file but I'm not sure. Xavier --------------------------------- Yahoo! Mail...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]