Robinson Tiemuqinke
2008-Aug-12 21:15 UTC
[CentOS] Please help: The process of am-utils map key lookup
Hi, I am using am-utils(amd binary daemon) to auto mount home directories. the mounting process seems working fine but I am still not understand how the amd map key(s) lookup process works. I've carefully read the am-utils(amd) document at http://am-utils.org/docs/am-utils/am-utils_8.html, especially the chapter "3.2 How keys are looked up" but am still not clear. For example, I'd like to access /home/dumbboy/files/deleteme, what is the key to be used, and how the lookup/match happens? and how the mount operations happens? Thanks a lot. I've attached my configuration files below: $ cat /etc/amd.conf ... auto_dir = /.amd_mnt ... map_type = file search_path = /etc ... [ /home ] map_name = amd.home ... $ cat /etc/amd.home /defaults type:=nfs;sublink:=${key};opts:=rw,intr,tcp,nfsvers=3,vers=3,nosuid,nodev,noresvport,rsize=16384,wsize=16384;fs:=${autodir}/${rhost}${rfs} dumbboy rhost:=home111;rfs:=/0/export/home * rhost:=home110;rfs:=/0/export/home ... Thanks.
Bill Campbell
2008-Aug-13 00:49 UTC
[CentOS] Please help: The process of am-utils map key lookup
On Tue, Aug 12, 2008, Robinson Tiemuqinke wrote:>Hi,>I am using am-utils(amd binary daemon) to auto mount home directories. the >mounting process seems working fine but I am still not understand how the >amd map key(s) lookup process works.>I've carefully read the am-utils(amd) document at http://am- >utils.org/docs/am-utils/am-utils_8.html, especially the chapter "3.2 How >keys are looked up" but am still not clear. For example, I'd like to access >/home/dumbboy/files/deleteme, what is the key to be used, and how the >lookup/match happens? and how the mount operations happens? Thanks a lot.My amd.homes is considerably simpler than that. We automount to /homes/username using something like this where the machine alexis has the real home directories. # amd.homes /defaults opts:=nodevs,soft,rw,type:=nfs;proto=tcp, * host==alexis;type:=link;fs:=/home/${key} \ host!=alexis;type:=nfs;rhost:=alexis;rfs:=/home/${key} Bill -- INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 The Income Tax has made more Liars out of American people than Golf has. Will Rogers