Q: amd - NFS montovani

Jan P. Schier schier na utia.cas.cz
Úterý Září 2 10:33:39 CEST 1997


Dobry den vsem,

rad bych poprosil o radu: pokousim se montovat NFS adresar pomoci amd, a
nedari se a nedari.

Abych byl konkretni: adresar je /home/schier na stroji rumcajs. Je
exportovany, a kdyz na stroji obelix udelam jeho NFS mount rucne (do
/home/pokus), provede se O.K. 

Kdyz chci totez udelat pres amd, napise mi ze "/etc/amd/mapfile mounted
toplvl on /home/pokus", a dal se nedostanu. Potrebuju montovat uzivatele z
ruznych stroju, krome toho nekteri budou mit domovsky adresar primo na
obelixovi.

Mapa, kterou pouzivam, vypada takto:

/defaults  opts:=rw;type=nfs
/home/pokus  type:=nfs;rhost:=rumcajs.utia.cas.cz;rfs:=/home/schier

montuju prikazem 

amd /home/pokus /etc/amd/mapfile

Adresar /home/pokus neexistuje, tj. nic by amd nemelo branit vytvorit
symlink /home/pokus->/a/home/pokus.

Kernel na obelixovi je 2.1.40, amd verze 5.2.2.2. Kernel na rumcajsovi je
2.0.29

Kdyz zapnu debugovaci hlasky v amd, dostanu nize prilozeny vypis.

Pocitam, ze asi delam nejakou zcela trivialni chybu, ale za boha nevim
jakou. Za vsechny rady budu strasne moc vdecny.

S pozdravem
			Honza

			schier na utia.cas.cz
---------------------------------------
Vypis debug hlasek z amd:
Sep  2 09:54:17 obelix amd[31685]/debug: Map for "root" coming from maptype root
Sep  2 09:54:17 obelix amd[31685]/debug: add_kv: /home/pokus -> cache:=mapdefault;type:=toplvl;fs:="/etc/amd/mapfile";
Sep  2 09:54:17 obelix amd[31685]/info:  My ip addr is 0x100007f
Sep  2 09:54:17 obelix amd[31686]/debug: backgrounded
Sep  2 09:54:17 obelix amd[31686]/info:  file server localhost type local starts up
Sep  2 09:54:17 obelix amd[31686]/debug: Locating mntfs reference to 
Sep  2 09:54:17 obelix amd[31686]/debug: Immediately discarding mntfs for //nil//
Sep  2 09:54:17 obelix amd[31686]/debug: in afs_lookuppn
Sep  2 09:54:17 obelix amd[31686]/debug: will search map info in "root" to find /home/pokus
Sep  2 09:54:17 obelix amd[31686]/debug: mount info is cache:=mapdefault;type:=toplvl;fs:="/etc/amd/mapfile";
Sep  2 09:54:17 obelix amd[31686]/debug: searching for /defaults entry
Sep  2 09:54:17 obelix amd[31686]/debug: setting path to /home/pokus
Sep  2 09:54:17 obelix amd[31686]/debug: Hostname obelix normalized to obelix.utia.cas.cz
Sep  2 09:54:17 obelix amd[31686]/debug: Locating mntfs reference to /home/pokus
Sep  2 09:54:17 obelix amd[31686]/debug: Immediately discarding mntfs for //nil//
Sep  2 09:54:17 obelix amd[31686]/debug: Got a hit with toplvl
Sep  2 09:54:17 obelix amd[31686]/debug: backgrounding mount of "/home/pokus"
Sep  2 09:54:17 obelix amd[31686]/debug: 6 new fds allocated; total is 6
Sep  2 09:54:17 obelix amd[31686]/debug: 0x806b000 bytes of memory allocated; total is 0x806b000 (32875 pages)
Sep  2 09:54:17 obelix amd[31686]/debug: Timing out automount points...
Sep  2 09:54:17 obelix amd[31686]/debug: Next mount timeout in 300s
Sep  2 09:54:17 obelix amd[31686]/debug: Select waits for 300s
Sep  2 09:54:17 obelix amd[31687]/debug: backgrounded
Sep  2 09:54:17 obelix amd[31687]/debug: mkdir(/home/pokus)
Sep  2 09:54:17 obelix amd[31687]/debug: root_fh substitutes pid 31686
Sep  2 09:54:17 obelix amd[31687]/debug: /home/pokus fstype 134593607 (auto) flags 0 (intr,rw,port=1021,timeo=8,retrans=110,indirect,map=/etc/amd/mapfile)
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: type nfs
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: version 1
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: fd 6
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: hostname 127.0.0.1
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: port 1021
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: fsname obelix:(pid31686)
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: type (mntent) auto
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: opts intr,rw,port=1021,timeo=8,retrans=110,indirect,map=/etc/amd/mapfile
Sep  2 09:54:17 obelix amd[31687]/debug: linux mount: dir /home/pokus
Sep  2 09:54:17 obelix amd[31686]/debug: Select waits for 300s
Sep  2 09:54:17 obelix amd[31686]/debug: Process 31687 exited with status 0
Sep  2 09:54:17 obelix amd[31686]/debug: select interrupted
Sep  2 09:54:17 obelix amd[31686]/debug: Map for /etc/amd/mapfile coming from maptype file
Sep  2 09:54:17 obelix amd[31686]/debug: calling map reload on /etc/amd/mapfile
Sep  2 09:54:17 obelix amd[31686]/debug: add_kv: /defaults -> opts:=rw;type=nfs
Sep  2 09:54:17 obelix amd[31686]/debug: add_kv: /home/pokus -> type:=nfs;rhost:=rumcajs.utia.cas.cz;rfs:=/home/schier
Sep  2 09:54:17 obelix amd[31686]/debug: calling mapc_search for wildcard
Sep  2 09:54:17 obelix amd[31686]/info:  /etc/amd/mapfile mounted fstype toplvl on /home/pokus
Sep  2 09:54:17 obelix amd[31686]/debug: Timing out automount points...
Sep  2 09:54:17 obelix amd[31686]/debug: Next mount timeout in 300s
Sep  2 09:54:17 obelix amd[31686]/debug: Select waits for 300s

Sep  2 09:54:41 obelix amd[31686]/warn:  WARNING: automounter going down on signal 15
Sep  2 09:54:41 obelix amd[31686]/debug: select interrupted
Sep  2 09:54:41 obelix amd[31686]/debug: Timing out automount points...
Sep  2 09:54:41 obelix amd[31686]/debug: "/home/pokus" on /home/pokus timed out
Sep  2 09:54:41 obelix amd[31686]/debug: unmount attempt backgrounded
Sep  2 09:54:41 obelix amd[31686]/debug: Next mount timeout in 1s
Sep  2 09:54:41 obelix amd[31686]/debug: Select waits for 1s
Sep  2 09:54:41 obelix amd[31691]/debug: backgrounded
Sep  2 09:54:41 obelix amd[31691]/debug: Unmounting /home/pokus (/etc/amd/mapfile)
Sep  2 09:54:41 obelix amd[31686]/debug: Select waits for 1s
Sep  2 09:54:41 obelix amd[31691]/debug: Trying unmount(/home/pokus)
Sep  2 09:54:41 obelix amd[31691]/debug: Finished unmount(/home/pokus)
Sep  2 09:54:41 obelix amd[31686]/debug: Process 31691 exited with status 0
Sep  2 09:54:41 obelix amd[31686]/debug: select interrupted
Sep  2 09:54:41 obelix amd[31686]/info:  /etc/amd/mapfile unmounted fstype toplvl from /home/pokus
Sep  2 09:54:41 obelix amd[31686]/debug: Discarding last mntfs reference to /home/pokus fstype toplvl
Sep  2 09:54:41 obelix amd[31686]/debug: Select waits for 1s
Sep  2 09:54:42 obelix amd[31686]/debug: Timing out automount points...
Sep  2 09:54:42 obelix amd[31686]/debug: "" on obelix:(pid31686) timed out
Sep  2 09:54:42 obelix amd[31686]/debug: Trying unmount in foreground
Sep  2 09:54:42 obelix amd[31686]/debug: Unmounting obelix:(pid31686) ("root")
Sep  2 09:54:42 obelix amd[31686]/debug: Discarding last mntfs reference to obelix:(pid31686) fstype root
Sep  2 09:54:42 obelix amd[31686]/debug: unmount attempt done
Sep  2 09:54:42 obelix amd[31686]/debug: Next mount timeout in 1s
Sep  2 09:54:42 obelix amd[31686]/debug: rmdir(/home/pokus)
Sep  2 09:54:42 obelix amd[31686]/debug: Last hard reference to file server localhost - will timeout in 300s
Sep  2 09:54:42 obelix amd[31686]/info:  Finishing with status 0
--------------------------------------------------


                           Jan Schier
			   
Dept. of Adaptive Systems                    | anonymous: ftp.utia.cas.cz
Inst. of Information Theory and Automation   | gopher:    gopher.utia.cas.cz
Academy of Sciences of the Czech Republic    | WWW:       http://www.utia.cas.cz
P.O. Box 18, 182 08 Prague, Czech Republic   |

Tel:     +420 2 6605 2251        Fax:     +420 2 688 4903 
         +420 2 688 3421         E-mail:  schier na utia.cas.cz




Další informace o konferenci Linux