[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=/
> /
> ext2 defaults
> 1 1</tt>
> <br><tt>LABEL=/.afs_cache /.afs_cache
> ext2 defaults
> 1 2</tt>
> <br><tt>LABEL=/local
> /local
> ext2 defaults
> 1 2</tt>
> <br><tt>LABEL=/tmp
> /tmp
> ext2 defaults
> 1 2</tt>
> <br><tt>LABEL=/usr
> /usr
> ext2 defaults
> 1 2</tt>
> <br><tt>LABEL=/var
> /var
> ext2 defaults
> 1 2</tt>
> <br><tt>none
> /proc
> proc defaults
> 0 0</tt>
> <br><tt>none
> /dev/pts
> devpts gid=5,mode=620 0 0</tt>
> <br><tt>/dev/hda5
> swap
> swap defaults
> 0 0</tt><tt></tt>
> <p><tt>[root@elliot /root]# umount /.afs_cache</tt>
> <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
> Size Used by</tt>
> <br><tt>libafs-2.4.3-12-i686 388080 2</tt>
> <br><tt>parport_pc
> 17552 1 (autoclean)</tt>
> <br><tt>lp
> 5424 0 (autoclean)</tt>
> <br><tt>parport
> 24512 1 (autoclean) [parport_pc lp]</tt>
> <br><tt>vmnet
> 16448 1</tt>
> <br><tt>vmmon
> 18448 0 (unused)</tt>
> <br><tt>nfs
> 70656 2 (autoclean)</tt>
> <br><tt>lockd
> 48752 1 (autoclean) [nfs]</tt>
> <br><tt>sunrpc
> 57648 1 (autoclean) [nfs lockd]</tt>
> <br><tt>autofs
> 9152 6 (autoclean)</tt>
> <br><tt>3c59x
> 24352 1 (autoclean)</tt>
> <br><tt>usb-uhci
> 20208 0 (unused)</tt>
> <br><tt>usbcore
> 48352 1 [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> 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