[OpenAFS] Re: Can't start afsd

Benjamin Kaduk kaduk@MIT.EDU
Fri, 4 Jul 2014 21:02:54 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-751536431-1404522174=:17412
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Fri, 4 Jul 2014, Jean-Marc Choulet wrote:

> That works fine if I use :
>
> # /sbin/afsd -verbose
>
> ... but not with /etc/init.d/openafs-client
>
> Le 04/07/2014 22:48, Jean-Marc Choulet a =E9crit :
>> Hello,
>>=20
>> I have a problem when I try to start afsd :
>>=20
>> root@afs-db01:~# /etc/init.d/openafs-client start
>> Starting AFS services: openafs afsd.
>> afsd: ASSERT: cacheFiles 1000  diskblocks -26
>>=20
>> I can access to my cell from my windows client but not from my linux=20
>> client.
>>=20
>> root@afs-db01:~# lsmod | grep afs
>> openafs               614214  0
>>=20
>> Do you why I can't start afsd ?

This behavior is due to the following code:

%            /* Sanity check: If the obtained number of disk cache files
%             * is larger than the number of available (4k) disk blocks, we=
're
%             * doing something wrong. Fail hard so we can fix the bug inst=
ead
%             * of silently hiding it like before */
%
%            if (cacheFiles > (cacheBlocks - INFOSZ) / 4) {
%                fprintf(stderr,
%                        "%s: ASSERT: cacheFiles %d  diskblocks %d\n",
%                        rn, cacheFiles, (cacheBlocks - INFOSZ) / 4);
%                exit(1);
%            }

The contents of the cacheinfo file and the command line used to invoke=20
afsd seem of particular relevance.

-Ben Kaduk
---559023410-751536431-1404522174=:17412--