[OpenAFS] interesting situation

Klaas Hagemann kerberos@northsailor.de
Tue, 01 Jul 2003 15:23:57 +0200


This is a multi-part message in MIME format.
--------------000604060805020708020408
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

we have lots of home-directories in AFS in our cell and recognized a 
similar problem when a volume fills up. We had some documents getting 
the size of zero.

Now, we only have a workaround: the user gets informed, when there is 
only few space left on his volume.

On the other hand, we realized an erro in the error-codes provides by 
openafs.
the definition of VDISKFULL is not correct for linux systems. it should 
be 28 instead of 108

here is a patch for openafs-1.2.8, which you could try. I hope it was 
provided to the openafs developers by Suse.

- Klaas

Ryan Underwood schrieb:
> Hi,
> 
> Maybe someone with more AFS experience can figure out what just happened to
> me.
> 
> I was copying a bunch of files to a fileserver volume which was nearly
> full.  I miscalculated the sizes and the volume filled up.  As it was
> in the process of being filled up, I mv'd a file from that volume to my
> home directory elsewhere.  Since the volume filled up, all the pending
> connections to the fileserver timed out (as usual -- is this normal
> behavior?), and when the volume came back online, the file I had mv'd
> out was gone, but in my home directory was only a zero-byte file with
> the same name.
> 
> Any ideas?
> 


--------------000604060805020708020408
Content-Type: application/octet-stream;
 name="openafs-1.2.8-EDQUOT_ENOSPC.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="openafs-1.2.8-EDQUOT_ENOSPC.diff"

LS0tIG9wZW5hZnMtMS4yLjgvc3JjL2Fmcy92b2xlcnJvcnMuaC5PUkkJU2F0IE5vdiAgNCAx
MTowMzoxNiAyMDAwCisrKyBvcGVuYWZzLTEuMi44L3NyYy9hZnMvdm9sZXJyb3JzLmgJVGh1
IEphbiAzMCAxNDowNjo0OSAyMDAzCkBAIC0zOCw5ICszOCw5IEBACiAjZGVmaW5lIFZPRkZM
SU5FCTEwNgkvKiBWb2x1bWUgaXMgb2ZmIGxpbmUsIGZvciB0aGUgcmVhc29uCiAJCQkJICAg
Z2l2ZW4gaW4gdGhlIG9mZmxpbmUgbWVzc2FnZSAqLwog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