From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe50f,8a5d11093767f041,start X-Google-Attributes: gidfe50f,public X-Google-Thread: 1020c6,8a5d11093767f041,start X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,8a5d11093767f041,start X-Google-Attributes: gidfee84,public From: Giorgio Pastore Subject: help with amd (6.0a16) configuration Date: 1998/11/09 Message-ID: <3646BF5D.9B5D75E0@trieste.infn.it>#1/1 X-Deja-AN: 409889209 Content-Type: multipart/mixed; boundary="------------59CA04741F0F58CD9850A308" Organization: ICTP-Trieste-Italy Mime-Version: 1.0 Newsgroups: comp.unix.admin,comp.unix.osf.osf1,comp.protocols.nfs This is a multi-part message in MIME format. --------------59CA04741F0F58CD9850A308 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit  --------------59CA04741F0F58CD9850A308 Content-Type: text/plain; charset=us-ascii; name="amd.whishes2.news" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="amd.whishes2.news" In our site we have had no previous experience with automount (in any flavour). >From many sources, we got the impression that amd could have significant advantages on other implementations. However, after many weeks of trial and error and many re-readings of the manual (maybe a better amd-tutorial would be nice!), we still have had only a partial success. We do not understand whether the problems come from our limited understanding of how amd works or from any problem with our platform (Digital Unix 4.0d). Our final goal is to have a uniform user namespace (say /home/user1, home/user2 ...) even if the actual user directories are physically spread over different hosts. We also would like to minimize the number of mounted filesystems. We have made experiments with amd as follows: 1)through amd we would like to access the subdirectories of /tmp_tmp (residing on host1 and eventually containing all the user directories on host1) as subdirectories of the /mnt mount point on host2 (eventually appearing as /home). 2)We would like to generate automatically the list of subdirectories (this is the reason for a wildcharacter key). 3)We would like to be able to browse the mounted subdirectories with commands like (cd /mnt ; ls -l ). Apparently we are able to achieve 1 and 2 with the following setup and line command but we cannot list the subdirectories through "ls /mnt" unless they have been already explicitely referred and the link has been created by amd from /mnt to the corresponding file in the real amd mountpoint ( for us /a/host1/tmp_tmp). The doc is not very clear about this specific point. We interpreted the following section of the section on the parameters as saying that we have to use "full" instead of "yes" as browsable_dirs value. Without success. ---- from amd doc: 6.4.1 browsable_dirs Parameter (type=string, default=`no'). If `yes', then Amd's top-level mount points will be browsable to readdir(3) calls. This means you could run for example ls(1) and see what keys are available to mount in that directory. Not all entries are made visible to readdir(3): the `/defaults' entry, wildcard entries, and those with a `/' in them are not included. If you specify `full' to this option, all but the `/defaults' entry will be visible. Note that if you run a command which will attempt to stat(2) the entries, such as often done by `ls -l' or `ls -F', Amd will attempt to mount every entry in that map. This is often called a "mount storm". ---- Any hints ? Thanks in advance for any help. Giorgio Pastore Configuration files: ---- amd.conf: # GLOBAL OPTIONS SECTION (must be first in amd.conf file) [ global ] normalize_hostnames = no # (amd -p) print_pid = no restart_mounts = yes unmount_on_exit = yes #unmount_on_exit = no # (amd -a) auto_dir = /a # duration in seconds that a looked up name remain cached (amd -c) cache_duration = 300 # (amd -l) log_file = /var/adm/amd log_options = all #plock = yes # selectors on /defaults are off by default selectors_on_default = yes # should browsable maps show number of entries to df/statfs (default=no) #show_statfs_entries = yes # these 5 options can be overridden by each map individually browsable_dirs = full map_type = file mount_type = nfs search_path = /etc/amdmaps # Use fully qualified host names fully_qualified_hosts = yes ---- /etc/amdmaps/amd.map /defaults opts:=intr,nfsv3;type:=nfs * -sublink:=${key};type:=nfs \ rhost:=host1.ts.infn.it;rfs:=/tmp_tmp ---- Command to start amd (on host2): amd -F /etc/amd.conf /mnt /etc/amdmaps/amd.map --------------------------------------------------------------------------- Giorgio Pastore - Dipartimento di Fisica Teorica dell' Universita' Strada Costiera 11, 34014 Trieste, Italy phone : + 39 040 2240242 fax: + 39 040 224601 e-mail: pastore@trieste.infn.it pastgio@univ.trieste.it --------------------------------------------------------------------------- --------------59CA04741F0F58CD9850A308--