Am 29.02.2012 10:48, schrieb Berthold Cogel:
> 
> I did try 'systemctl stop openafs-client.service'. This should have
> called the lines in openafs-client.service:
> 
> ExecStop=/bin/umount /afs
> ExecStop=/usr/vice/etc/afsd -shutdown
> ExecStop=/sbin/rmmod openafs
> 
> But this didn't work. The afsd seemed to be in a state where -shutdown
> didn't work. And each restart triggered another bunch of
> processes/threads which couldn't be removed.

I've rebooted the system and ended with a failed client:



[root@charon~]$ ls /afs
[root@charon~]$ ps -ealf|grep afs
1 S root       897     2  0  80   0 -     0 afs_pa 11:10 ?
00:00:00 [afs_pagecopy]
1 S root      1434     2  0  80   0 -     0 afs_cv 11:10 ?
00:00:00 [afs_callback]
1 S root      1436     2  0  80   0 -     0 skb_re 11:10 ?
00:00:00 [afs_rxlistener]
1 S root      1437     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_rxevent]
5 S root      1438     1  0  80   0 -  1689 afs_os 11:10 ?
00:00:00 /usr/vice/etc/afsd -fakestat -afsdb -debug
1 S root      1497     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afsd]
1 S root      1500     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_checkserver]
1 S root      1502     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1504     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1505     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1507     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1593     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_cachetrim]
0 S root      2496  2424  0  80   0 - 27827 pipe_w 11:12 pts/0
00:00:00 grep --color=auto afs
[root@charon~]$ systemctl status openafs-client.service
openafs-client.service - OpenAFS Client Service
          Loaded: loaded (/lib/systemd/system/openafs-client.service; enabled)
          Active: failed since Wed, 29 Feb 2012 10:11:10 +0100; 1h 1min ago
         Process: 1427 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS (code=exited,
status=1/FAILURE)
         Process: 1419 ExecStartPre=/sbin/modprobe openafs (code=exited,
status=0/SUCCESS)
         Process: 1414 ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB
(code=exited, status=0/SUCCESS)
         Process: 1392 ExecStartPre=/bin/sed -n w/usr/vice/etc/CellServDB
/usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
(code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/openafs-client.service
                  └ 1438 /usr/vice/etc/afsd -fakestat -afsdb -debug

Now trying to stop..

[root@charon~]$ systemctl stop openafs-client.service
[root@charon~]$ systemctl status openafs-client.service
openafs-client.service - OpenAFS Client Service
          Loaded: loaded (/lib/systemd/system/openafs-client.service; enabled)
          Active: failed since Wed, 29 Feb 2012 10:11:10 +0100; 1h 1min ago
         Process: 1427 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS (code=exited,
status=1/FAILURE)
         Process: 1419 ExecStartPre=/sbin/modprobe openafs (code=exited,
status=0/SUCCESS)
         Process: 1414 ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB
(code=exited, status=0/SUCCESS)
         Process: 1392 ExecStartPre=/bin/sed -n w/usr/vice/etc/CellServDB
/usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
(code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/openafs-client.service
                  └ 1438 /usr/vice/etc/afsd -fakestat -afsdb -debug
[root@charon~]$ ps -ealf|grep afs
1 S root       897     2  0  80   0 -     0 afs_pa 11:10 ?
00:00:00 [afs_pagecopy]
1 S root      1434     2  0  80   0 -     0 afs_cv 11:10 ?
00:00:00 [afs_callback]
1 S root      1436     2  0  80   0 -     0 skb_re 11:10 ?
00:00:00 [afs_rxlistener]
1 S root      1437     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_rxevent]
5 S root      1438     1  0  80   0 -  1689 afs_os 11:10 ?
00:00:00 /usr/vice/etc/afsd -fakestat -afsdb -debug
1 S root      1497     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afsd]
1 S root      1500     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_checkserver]
1 S root      1502     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1504     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1505     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1507     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1593     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_cachetrim]
0 S root      2508  2424  0  80   0 - 27827 pipe_w 11:12 pts/0
00:00:00 grep --color=auto afs


... and restart...

[root@charon~]$ systemctl restart openafs-client.service
Job failed. See system logs and 'systemctl status' for details.
[root@charon~]$ systemctl status openafs-client.service
openafs-client.service - OpenAFS Client Service
          Loaded: loaded (/lib/systemd/system/openafs-client.service; enabled)
          Active: failed since Wed, 29 Feb 2012 11:15:06 +0100; 3s ago
         Process: 2622 ExecStart=/usr/vice/etc/afsd $AFSD_ARGS (code=exited,
status=1/FAILURE)
         Process: 2621 ExecStartPre=/sbin/modprobe openafs (code=exited,
status=0/SUCCESS)
         Process: 2620 ExecStartPre=/bin/chmod 0644 /usr/vice/etc/CellServDB
(code=exited, status=0/SUCCESS)
         Process: 2619 ExecStartPre=/bin/sed -n w/usr/vice/etc/CellServDB
/usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
(code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/openafs-client.service
                  ├ 1438 /usr/vice/etc/afsd -fakestat -afsdb -debug
                  └ 2628 /usr/vice/etc/afsd -fakestat -afsdb -debug
[root@charon~]$ systemctl stop openafs-client.service
[root@charon~]$ ps -ealf|grep afs
1 S root       897     2  0  80   0 -     0 afs_pa 11:10 ?
00:00:00 [afs_pagecopy]
1 S root      1434     2  0  80   0 -     0 afs_cv 11:10 ?
00:00:00 [afs_callback]
1 S root      1436     2  0  80   0 -     0 skb_re 11:10 ?
00:00:00 [afs_rxlistener]
1 S root      1437     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_rxevent]
5 S root      1438     1  0  80   0 -  1689 afs_os 11:10 ?
00:00:00 /usr/vice/etc/afsd -fakestat -afsdb -debug
1 S root      1497     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afsd]
1 S root      1500     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_checkserver]
1 S root      1502     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1504     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1505     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1507     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_background]
1 S root      1593     2  0  80   0 -     0 afs_os 11:10 ?
00:00:00 [afs_cachetrim]
1 S root      2627     2  0  80   0 -     0 afs_os 11:15 ?
00:00:00 [afs_rxevent]
5 S root      2628     1  0  80   0 -  1689 afs_os 11:15 ?
00:00:00 /usr/vice/etc/afsd -fakestat -afsdb -debug
1 S root      2631     2  0  80   0 -     0 afs_os 11:15 ?
00:00:00 [afs_checkserver]
1 S root      2634     2  0  80   0 -     0 afs_os 11:15 ?
00:00:00 [afs_background]
1 S root      2636     2  0  80   0 -     0 afs_os 11:15 ?
00:00:00 [afs_background]
1 S root      2637     2  0  80   0 -     0 afs_os 11:15 ?
00:00:00 [afs_background]
1 S root      2639     2  0  80   0 -     0 afs_os 11:15 ?
00:00:00 [afs_background]
0 S root      2644  2424  0  80   0 - 27827 pipe_w 11:15 pts/0
00:00:00 grep --color=auto afs


I don't think that this behavior is expected...


Regards
Berthold Cogel
_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to