But I still can't copy in, even now.
if I also look in the spacemanager cell i get the same result from
srm-get-space-metadata srm://fal-pygrid-20.lancs.ac.uk
Brian
On 15/02/2008, Greig Alan Cowan <[log in to unmask]> wrote:
> Hi Brian,
>
> I did some testing of this myself. Here's what I found:
>
> 1. I make a space reservation in a LinkGroup which gives me a space token.
>
> 2. I use srmcp to write files into the space token until there is no
> free space available to write into anymore. dCache returns the correct
> message, saying that there is no free space.
>
> 3. I use srmrm to remove one of these files that I have just copied into
> the space token. The file entry is deleted from PNFS.
>
> 4. I *immediately* try to copy a new file (of the same size) into the
> space token. dCache fails with the message:
>
> Fri Feb 15 15:50:31 GMT 2008: java.io.IOException: srmPrepareToPut
> update failed, status : SRM_NO_FREE_SPACE explanation= at Fri Feb 15
> 15:50:31 GMT 2008 state Failed : at Fri Feb 15 15:50:30 GMT 2008 state
> Pending : created
> RequestFileStatus#-2146027362 failed with error:[ at Fri Feb 15
> 15:50:30 GMT 2008 state Failed : space with id=22683 does not have
> enough space]
>
> An ls -l in the SrmSpaceManager cell does not report the correct size of
> the used space - the size of the removed file has not been subtracted.
>
> 5. After apporx. 1.5mins, I find that ls -l does now report the correct
> used space size and I can subsequently copy a file back into the space
> token.
>
> Conclusion: There is a latency between removing a file and the
> SrmSpaceManager updating the database table containing the used space
> information.
>
> I've reported it to the dCache people. Hopefully they will be able to
> speed things up a bit!
>
> Cheers,
>
> Greig
>
>
> On 12/02/08 16:48, brian davies wrote:
>
> > HAVING success with getting our srm2 with space tokens working I have
> > tried filling a small space token (10GB) and it works! When the space
> > is full and you try to add another file, the errorr message that there
> > is no space left on the device is given back and the copy fails.
> > However if i then lcg-del to try and free some space, it does not seem
> > to free up the token space ( but does appear to delete the file from
> > the pnfs namespace. Hence you then can not put a file into the space
> > you just freed.
> > I am currently trying to find out how to find out how much space is
> > used and free in space tokens with tools thsat are not in the admin
> > interface ( if they exist).
> > Has anyone else seen similar behavior?
> > Brian
>
|