aklog:设置令牌时 pioctl 失败(18.04 LTS;afs 守护进程似乎正在运行)

aklog:设置令牌时 pioctl 失败(18.04 LTS;afs 守护进程似乎正在运行)

过去几天,我无法使用 AFS;aklog 现在

aklog: a pioctl failed while setting tokens for cell [...]

标准建议似乎是确保守护进程正在运行,但这似乎不是问题所在。以下是我在再次遇到问题之前启动服务(为了保险起见;它似乎一直在运行)并检查其状态的总结。

me@mine:~$ /etc/init.d/openafs-client start
[ ok ] Starting openafs-client (via systemctl): openafs-client.service.
mine:~$ sudo service openafs-client status
[sudo] password for me: 
● openafs-client.service - OpenAFS client
   Loaded: loaded (/lib/systemd/system/openafs-client.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2019-08-22 11:59:48 BST; 31min ago
  Process: 3242 ExecStopPost=/sbin/rmmod $KMOD (code=exited, status=0/SUCCESS)
  Process: 3241 ExecStop=/bin/umount -af -t afs (code=exited, status=0/SUCCESS)
  Process: 3240 ExecStop=/bin/umount -a -t afs (code=exited, status=0/SUCCESS)
  Process: 3236 ExecStop=/usr/share/openafs/openafs-client-postcheck (code=exited, status=0/SUCCESS)
  Process: 3235 ExecStop=/bin/grep -qv ^1$ /proc/sys/kernel/modules_disabled (code=exited, status=0/SUCCESS)
  Process: 3306 ExecStartPost=/usr/bin/fs sysname $AFS_SYSNAME (code=exited, status=0/SUCCESS)
  Process: 3305 ExecStartPost=/usr/bin/fs setcrypt $AFS_SETCRYPT (code=exited, status=0/SUCCESS)
  Process: 3304 ExecStart=/sbin/afsd $AFSD_ARGS (code=exited, status=0/SUCCESS)
  Process: 3294 ExecStartPre=/usr/share/openafs/openafs-client-precheck (code=exited, status=0/SUCCESS)

Aug 22 11:59:48 mine afsd[3304]:        -fakestat-all             Enable fakestat support for all mounts
Aug 22 11:59:48 mine afsd[3304]:        -nomount                  Do not mount AFS
Aug 22 11:59:48 mine afsd[3304]:        -backuptree               Prefer backup volumes for mountpoints in backup volumes
Aug 22 11:59:48 mine afsd[3304]:        -rxbind                   Bind the Rx socket (one interface only)
Aug 22 11:59:48 mine afsd[3304]:        -settime                  set the time
Aug 22 11:59:48 mine afsd[3304]:        -disable-dynamic-vcaches  disable stat/vcache cache growing as needed
Aug 22 11:59:48 mine afsd[3304]:        -dynroot-sparse           Enable dynroot support with minimal cell list
Aug 22 11:59:48 mine fs[3305]: Usage: /usr/bin/fs setcrypt -crypt <on or off> [-help]
Aug 22 11:59:48 mine fs[3306]: Usage: /usr/bin/fs sysname [-newsys <new sysname>+] [-help]
Aug 22 11:59:48 mine systemd[1]: Started OpenAFS client.
mine:~$ aklog
aklog: a pioctl failed while setting tokens for my.cell

答案1

事实证明我需要

  1. 使用PPA获取openafs的最新版本。
  2. 明确(重新)安装 openafs-client 和其他库。

我发现了一个博客文章也就是说要采取前者,但就我而言,这apt-get update还不足以使事情顺利进行。

sudo add-apt-repository ppa:openafs/stable
apt-get install openafs-client openafs-krb5 openafs-modules-dkms

在此之后我重新启动了,但可能只需重新启动服务就足够了。

相关内容