[OpenAFS] empty /afs

Steve Simmons scs@umich.edu
Mon, 16 Jul 2012 11:44:36 -0400


Seconding what Dan said. Under 'normal' circumstances, you can get away =
with this. But if anything goes wrong with your afs server itself, =
you're in a deadly embrace -- since the server doesn't come up, the =
client fails and the sh*t hits the fan. Worse, if you've got server-side =
dependencies on having the afs client up (for example, other services =
run on the afs server depend on files in AFS), then it may be impossible =
to bring your file server up at all except by inserting a CD-ROM and =
hitting the power switch. And if your server doesn't happen to have a =
CD-ROM drive. . . so yeah, don't do that.

Steve

On Jul 11, 2012, at 9:44 PM, Dan Hyde wrote:

> There be dragons. We learned the had way a long time ago that it is =
possible to have your server require you have a working client before =
the server would start (before it had access to what the client could =
provide).  Please reconsider.
>=20
> On Jul 11, 2012, at 9:25 PM, "Lewis, Dave" <LEWIS@NKI.RFMH.ORG> wrote:
>=20
>> Hi,
>>=20
>> On one of our fileservers, /afs is empty.  (We're running the AFS =
client
>> on the fileserver because I sometimes do client operations there.)  =
All
>> of our other servers and clients seem fine.
>>=20
>> I looked through the AFS log files and didn't see anything obvious =
(but
>> I could have missed something).  The /usr/vice/cache partition is =
ext3.
>>=20
>> CentOS 5.6, OpenAFS 1.4.14.1, 64-bit
>>=20
>> $ ls -la /afs
>> total 8
>> drwxr-xr-x  2 root root 4096 Apr 14  2010 ./
>> drwxr-xr-x 34 root root 4096 May 26 19:16 ../
>>=20
>> # service openafs-client status
>> afsd (pid 4320) is running...
>>=20
>> # du -sh /usr/vice/cache
>> 24M     /usr/vice/cache
>>=20
>> # cat /usr/vice/etc/cacheinfo
>> /afs:/usr/vice/cache:900000
>>=20
>> $ cat /etc/sysconfig/openafs
>> # OpenAFS Client Configuration
>> AFSD_ARGS=3D"-fakestat -stat 4000 -dcache 4000 -daemons 6 -volumes =
256
>> -files 50000 -nosettime"
>>=20
>> # OpenAFS Server Configuration
>> BOSSERVER_ARGS=3D
>>=20
>>=20
>> On another server (set up the same way):
>>=20
>> $ ls -la /afs
>> total 15
>> drwxrwxrwx  2 root root 2048 May 17  2000 ./
>> drwxr-xr-x 33 root root 4096 May 26 19:20 ../
>> lrwxr-xr-x  1 bin  root   13 May 17  2000 cabi -> cabi.rfmh.org/
>> drwxrwxrwx  2 root root 2048 Jun 14  2011 .cabi.rfmh.org/
>> drwxrwxrwx  2 root root 2048 Jun 14  2011 cabi.rfmh.org/
>>=20
>> # du -sh /usr/vice/cache
>> 827M    /usr/vice/cache
>>=20
>> Would it be safe to restart the AFS client and see if it fixes the
>> problem?  Since the computer is a server and I haven't figured out =
the
>> cause of the problem, I thought I would ask here first.
>>=20
>> Thanks,
>> Dave
>>=20
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
>> David P. Lewis=20
>> Center for Advanced Brain Imaging, Division of Medical Physics=20
>> The Nathan S. Kline Institute for Psychiatric Research=20
>> 140 Old Orangeburg Road, Orangeburg, NY 10962=20
>>=20
>>=20
>>=20
>>=20
>>=20
>> Conserve Resources. Print only when necessary.
>>=20
>> IMPORTANT NOTICE: This e-mail is meant only for the use of the =
intended recipient. It may contain confidential information which is =
legally privilegedor otherwise protected by law. If you received this =
e-mail in error or from someone who is not authorized to send it to you, =
you are strictly prohibited from reviewing, using, disseminating, =
distributing or copying the e-mail. PLEASE NOTIFY US IMMEDIATELY OF THE =
ERROR BY RETURN E-MAIL AND DELETE THIS MESSAGE FROM YOUR SYSTEM. Thank =
you for your cooperation.
>> _______________________________________________
>> OpenAFS-info mailing list
>> OpenAFS-info@openafs.org
>> https://lists.openafs.org/mailman/listinfo/openafs-info
>>=20
>>=20
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info