[OpenAFS] AFS_Cache partition unmountable after AFS shutdown

Derek Atkins warlord@MIT.EDU
06 Sep 2001 09:11:44 -0400


I've seen this but I don't know what's going on.  Best guess is
a resource leak somewhere.

Is this specific to RH 7.1 or does it happen on other 2.4.x Linux
systems?

-derek

Marc Schmitt <schmitt@inf.ethz.ch> writes:

> --------------B186A8A06F899E63EBFB5B8E
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hi all,
> 
> For a long time, I have the problem that after shutting down AFS under
> RedHat 7.1, the partition on which the AFS cache resides can not be
> unmounted:
> 
> [root@elliot /root]# cat /etc/fstab
> LABEL=/                 /                       ext2    defaults
> 1 1
> LABEL=/.afs_cache       /.afs_cache             ext2    defaults
> 1 2
> LABEL=/local            /local                  ext2    defaults
> 1 2
> LABEL=/tmp              /tmp                    ext2    defaults
> 1 2
> LABEL=/usr              /usr                    ext2    defaults
> 1 2
> LABEL=/var              /var                    ext2    defaults
> 1 2
> none                    /proc                   proc    defaults
> 0 0
> none                    /dev/pts                devpts  gid=5,mode=620
> 0 0
> /dev/hda5               swap                    swap    defaults
> 0 0
> 
> [root@elliot /root]# umount /.afs_cache
> [root@elliot /root]# mount /.afs_cache
> [root@elliot /root]# /etc/rc.d/init.d/afs start
> Found libafs-2.4.3-12-i686.o from SymTable... Loading...
> Starting AFS services.....
> afsd: All AFS daemons started.
> 
> [root@elliot /root]# lsmod
> Module                  Size  Used by
> libafs-2.4.3-12-i686  388080   2
> parport_pc             17552   1  (autoclean)
> lp                      5424   0  (autoclean)
> parport                24512   1  (autoclean) [parport_pc lp]
> vmnet                  16448   1
> vmmon                  18448   0  (unused)
> nfs                    70656   2  (autoclean)
> lockd                  48752   1  (autoclean) [nfs]
> sunrpc                 57648   1  (autoclean) [nfs lockd]
> autofs                  9152   6  (autoclean)
> 3c59x                  24352   1  (autoclean)
> usb-uhci               20208   0  (unused)
> usbcore                48352   1  [usb-uhci]
> 
> [root@elliot /root]# /etc/rc.d/init.d/afs stop
> Stopping AFS services.....
> inetd.afs: no process killed
> [root@elliot /root]# umount /.afs_cache
> umount: /.afs_cache: device is busy
> 
> The content of cacheinfo is:
> [root@elliot /root]# cat /usr/vice/etc/cacheinfo
> /afs:/.afs_cache:90000
> The partition size of /.afs_cache is 100MB.
> 
> There are no afsd processes running after the shutdown. The kernel
> module is properly unloaded. Anyone has an idea why the system thinks
> that the partition is still in use? It doesn`t help to wait, btw. The
> partition can`t be unmountet after 15' or so either.
> 
> Thanks for your help.
> 
> Regards,
>     Marc
> 
> --------------B186A8A06F899E63EBFB5B8E
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> <tt>Hi all,</tt><tt></tt>
> <p><tt>For a long time, I have the problem that after shutting down AFS
> under RedHat 7.1, the partition on which the AFS cache resides can not
> be unmounted:</tt><tt></tt>
> <p><tt>[root@elliot /root]# cat /etc/fstab</tt>
> <br><tt>LABEL=/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> ext2&nbsp;&nbsp;&nbsp; defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 1 1</tt>
> <br><tt>LABEL=/.afs_cache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /.afs_cache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> ext2&nbsp;&nbsp;&nbsp; defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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> <br><tt>[root@elliot /root]# mount /.afs_cache</tt>
> <br><tt>[root@elliot /root]# /etc/rc.d/init.d/afs start</tt>
> <br><tt>Found libafs-2.4.3-12-i686.o from SymTable... Loading...</tt>
> <br><tt>Starting AFS services.....</tt>
> <br><tt>afsd: All AFS daemons started.</tt><tt></tt>
> <p><tt>[root@elliot /root]# lsmod</tt>
> <br><tt>Module&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> Size&nbsp; Used by</tt>
> <br><tt>libafs-2.4.3-12-i686&nbsp; 388080&nbsp;&nbsp; 2</tt>
> <br><tt>parport_pc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 17552&nbsp;&nbsp; 1&nbsp; (autoclean)</tt>
> <br><tt>lp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 5424&nbsp;&nbsp; 0&nbsp; (autoclean)</tt>
> <br><tt>parport&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 24512&nbsp;&nbsp; 1&nbsp; (autoclean) [parport_pc lp]</tt>
> <br><tt>vmnet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 16448&nbsp;&nbsp; 1</tt>
> <br><tt>vmmon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 18448&nbsp;&nbsp; 0&nbsp; (unused)</tt>
> <br><tt>nfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 70656&nbsp;&nbsp; 2&nbsp; (autoclean)</tt>
> <br><tt>lockd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 48752&nbsp;&nbsp; 1&nbsp; (autoclean) [nfs]</tt>
> <br><tt>sunrpc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 57648&nbsp;&nbsp; 1&nbsp; (autoclean) [nfs lockd]</tt>
> <br><tt>autofs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 9152&nbsp;&nbsp; 6&nbsp; (autoclean)</tt>
> <br><tt>3c59x&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 24352&nbsp;&nbsp; 1&nbsp; (autoclean)</tt>
> <br><tt>usb-uhci&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 20208&nbsp;&nbsp; 0&nbsp; (unused)</tt>
> <br><tt>usbcore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 48352&nbsp;&nbsp; 1&nbsp; [usb-uhci]</tt><tt></tt>
> <p><tt>[root@elliot /root]# /etc/rc.d/init.d/afs stop</tt>
> <br><tt>Stopping AFS services.....</tt>
> <br><tt>inetd.afs: no process killed</tt>
> <br><tt>[root@elliot /root]# umount /.afs_cache</tt>
> <br><tt>umount: /.afs_cache: device is busy</tt><tt></tt>
> <p><tt>The content of cacheinfo is:</tt>
> <br><tt>[root@elliot /root]# cat /usr/vice/etc/cacheinfo</tt>
> <br><tt>/afs:/.afs_cache:90000</tt>
> <br><tt>The partition size of /.afs_cache is 100MB.</tt><tt></tt>
> <p><tt>There are no afsd processes running after the shutdown. The kernel
> module is properly unloaded. Anyone has an idea why the system thinks that
> the partition is still in use? It doesn`t help to wait, btw. The partition
> can`t be unmountet after 15' or so either.</tt><tt></tt>
> <p><tt>Thanks for your help.</tt><tt></tt>
> <p><tt>Regards,</tt>
> <br><tt>&nbsp;&nbsp;&nbsp; Marc</tt></html>
> 
> --------------B186A8A06F899E63EBFB5B8E--
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available