[OpenAFS] Fedora 16 and Openafs
Berthold Cogel
cogel@uni-koeln.de
Wed, 29 Feb 2012 11:32:09 +0100
Am 29.02.2012 10:48, schrieb Berthold Cogel:
>=20
> I did try 'systemctl stop openafs-client.service'. This should have
> called the lines in openafs-client.service:
>=20
> ExecStop=3D/bin/umount /afs
> ExecStop=3D/usr/vice/etc/afsd -shutdown
> ExecStop=3D/sbin/rmmod openafs
>=20
> 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=3Dauto 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=3D/usr/vice/etc/afsd $AFSD_ARGS (code=3Dexited,
status=3D1/FAILURE)
Process: 1419 ExecStartPre=3D/sbin/modprobe openafs (code=3Dexited,
status=3D0/SUCCESS)
Process: 1414 ExecStartPre=3D/bin/chmod 0644 /usr/vice/etc/CellServDB
(code=3Dexited, status=3D0/SUCCESS)
Process: 1392 ExecStartPre=3D/bin/sed -n w/usr/vice/etc/CellServDB
/usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
(code=3Dexited, status=3D0/SUCCESS)
CGroup: name=3Dsystemd:/system/openafs-client.service
=E2=94=94 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=3D/usr/vice/etc/afsd $AFSD_ARGS (code=3Dexited,
status=3D1/FAILURE)
Process: 1419 ExecStartPre=3D/sbin/modprobe openafs (code=3Dexited,
status=3D0/SUCCESS)
Process: 1414 ExecStartPre=3D/bin/chmod 0644 /usr/vice/etc/CellServDB
(code=3Dexited, status=3D0/SUCCESS)
Process: 1392 ExecStartPre=3D/bin/sed -n w/usr/vice/etc/CellServDB
/usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
(code=3Dexited, status=3D0/SUCCESS)
CGroup: name=3Dsystemd:/system/openafs-client.service
=E2=94=94 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=3Dauto 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=3D/usr/vice/etc/afsd $AFSD_ARGS (code=3Dexited,
status=3D1/FAILURE)
Process: 2621 ExecStartPre=3D/sbin/modprobe openafs (code=3Dexited,
status=3D0/SUCCESS)
Process: 2620 ExecStartPre=3D/bin/chmod 0644 /usr/vice/etc/CellServDB
(code=3Dexited, status=3D0/SUCCESS)
Process: 2619 ExecStartPre=3D/bin/sed -n w/usr/vice/etc/CellServDB
/usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist
(code=3Dexited, status=3D0/SUCCESS)
CGroup: name=3Dsystemd:/system/openafs-client.service
=E2=94=9C 1438 /usr/vice/etc/afsd -fakestat -afsdb -debug
=E2=94=94 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=3Dauto afs
I don't think that this behavior is expected...
Regards
Berthold Cogel