Le 05/07/2014 03:02, Benjamin Kaduk a écrit :
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 écrit :
Hello,

I have a problem when I try to start afsd :

root@afs-db01:~# /etc/init.d/openafs-client start
Starting AFS services: openafs afsd.
afsd: ASSERT: cacheFiles 1000  diskblocks -26

I can access to my cell from my windows client but not from my linux client.

root@afs-db01:~# lsmod | grep afs
openafs               614214  0

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 instead
%             * 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 afsd seem of particular relevance.

-Ben Kaduk

Hello Ben,

# cat /etc/openafs/cacheinfo
/afs:/var/cache/openafs:90000

root@afs-db01:~# sh -x /etc/init.d/openafs-client start
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin
+ CACHEINFO=/etc/openafs/cacheinfo
+ uname -r
+ MODULEROOT=/lib/modules/3.2.0-4-amd64
+ MODULEDIR=/lib/modules/3.2.0-4-amd64/fs
+ DKMSDIR=/lib/modules/3.2.0-4-amd64/updates/dkms
+ exec
+ exec
+ [ -f /etc/openafs/afs.conf ]
+ . /etc/openafs/afs.conf
+ test -f /etc/openafs/afs.conf.client
+ . /etc/openafs/afs.conf.client
+ AFS_CLIENT=true
+ AFS_AFSDB=false
+ AFS_CRYPT=false
+ AFS_DYNROOT=false
+ AFS_FAKESTAT=true
+ VERBOSE=true
+ OPTIONS=AUTOMATIC
+ AFS_POST_INIT=
+ AFS_PRE_SHUTDOWN=
+ is_on true
+ [ xtrue = xtrue ]
+ return 0
+ test -x /sbin/afsd
+ echo -n Starting AFS services:
Starting AFS services:+ load_client
+ [ -z  ]
+ LIBAFS=openafs.ko
+ [ ! -f /lib/modules/3.2.0-4-amd64/fs/openafs.ko -a ! -f /lib/modules/3.2.0-4-amd64/updates/dkms/openafs.ko ]
+ sawdep=0
+ grep -q openafs /lib/modules/3.2.0-4-amd64/modules.dep
+ sawdep=1
+ fgrep openafs
+ /sbin/lsmod
+ LOADED=
+ [ -z  ]
+ modprobe openafs
+ status=0
+ [ 0 = 0 ]
+ echo -n  openafs
 openafs+ [ 1 = 0 ]
+ return 0
+ start_client
+ pidof /sbin/afsd
+ pidof /usr/sbin/afsd
+ choose_afsd_options
+ [ -z AUTOMATIC ]
+ [ AUTOMATIC = AUTOMATIC ]
+ AFSD_OPTIONS=true
+ is_on false
+ [ xfalse = xtrue ]
+ return 1
+ is_on false
+ [ xfalse = xtrue ]
+ return 1
+ is_on true
+ [ xtrue = xtrue ]
+ return 0
+ AFSD_OPTIONS=true -fakestat
+ echo  afsd.
 afsd.
+ start-stop-daemon --start --quiet --exec /sbin/afsd -- true -fakestat
afsd: ASSERT: cacheFiles 1000  diskblocks -26
+ is_on false
+ [ xfalse = xtrue ]
+ return 1
+ [ -n  ]
+
root@afs-db01:~#

-Jean-Michel



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

Reply via email to