[OpenAFS-devel] Problems with shutting down afsd

Kangesh Gunaseelan kangesh@real.com
Mon, 07 May 2001 08:33:53 -0700


Hi,

Afsd doesn't seem to shut down properly even when there are no processes
attached to /afs - please see the message below.  Unfortunately, this
behavior is very unpredictable.  I have seen this happen on RH 6.2 and RH
7.0.  Any one noticing this kind of a problem?  Any one know if there are
any known workarounds or sequence of steps to follow that would prevent this.

----------------------------------------------------------------------------
---------------------------------------
root@yalp bin]# /etc/rc.d/init.d/afs stop
Stopping AFS services..... 
inetd.afs: no process killed
umount: /afs: device is busy
Stopping AFS bosserver
libafs-2.2.14-5.0: Device or resource busy
[root@yalp bin]# fuser -a /afs
/afs:               
No process references; use -v for the complete list
[root@yalp bin]# ps -aef|grep fs
xfs        663     1  0 May02 ?        00:00:00 xfs -droppriv -daemon -port -1
root       903     1  0 May02 pts/0    00:00:00 [afsd]
root       904     1  0 May02 pts/0    00:00:00 [afsd]
root       905     1  0 May02 pts/0    00:00:01 [afsd]
root       906     1  0 May02 pts/0    00:00:00 [afsd]
root       907     1  0 May02 pts/0    00:00:00 [afsd]
root       908     1  0 May02 pts/0    00:00:00 [afsd]
root       909     1  0 May02 pts/0    00:00:00 [afsd]
root       910     1  0 May02 pts/0    00:00:00 [afsd]
root       933     1  0 May02 pts/0    00:00:00 [afsd]
root      3028  2888  0 10:29 pts/2    00:00:00 grep fs
----------------------------------------------------------------------------
---------------------------------------

Thanks,
Kangesh





At 09:25 PM 5/3/01 -0400, Derek Atkins wrote:
>The only way around it is to make sure all processes are closed
>before you kill AFS.
>
>-derek
>
>Kangesh Gunaseelan <kangesh@real.com> writes:
>
>> At 07:52 PM 5/3/01 -0400, Derek Atkins wrote:
>> >Are you sure that you don't have any processes running out of AFS?
>> 
>> Actually, that might be it.  I did have a process that was accessing file
>> from the AFS file space.  The process is now defunct.  It may not have
>> closed files, I guess.  I am unable to kill that process and unable to stop
>> AFSD.  
>> The only option is to reboot the system.  
>> By the way, is there any way to get around this type of behavior?  
>> 
>> Thanks.
>> Kangesh
>> 
>> 
>> Are you sure that you're not sitting in an AFS directory?
>> >
>> >You cannot stop AFS if something is keeping AFS open.  I've seen this
>> >behavior if, for example, you have a shell sitting in an AFS directory
>> >when you try to stop AFS.
>> >
>> >-derek
>> >
>> >Kangesh Gunaseelan <kangesh@real.com> writes:
>> >
>> >> Hi,
>> >> 
>> >> We are observing a behavior where stopping afs (/etc/rc.d/init.d/afs
stop)
>> >> wouldn't cause a shutdown of afsd - we see "umount: /afs: device is busy
>> >> and libafs-2.2.16-22: Device or resource busy".  The only way around
is to
>> >> really reboot the machine.  What is the proper way of shutting down AFS?
>> >> Is this a known problem?  We are using the binaries from OpenAFS 1.0.3.  
>> >> 
>> >> Thanks,
>> >> Kangesh
>> >> 
>> >> 
>> >> _______________________________________________
>> >> OpenAFS-devel mailing list
>> >> OpenAFS-devel@openafs.org
>> >> https://lists.openafs.org/mailman/listinfo.cgi/openafs-devel
>> >
>> >-- 
>> >       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
>> >_______________________________________________
>> >OpenAFS-devel mailing list
>> >OpenAFS-devel@openafs.org
>> >https://lists.openafs.org/mailman/listinfo.cgi/openafs-devel
>> 
>
>-- 
>       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
>_______________________________________________
>OpenAFS-devel mailing list
>OpenAFS-devel@openafs.org
>https://lists.openafs.org/mailman/listinfo.cgi/openafs-devel