JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for TB-SUPPORT Archives


TB-SUPPORT Archives

TB-SUPPORT Archives


TB-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

TB-SUPPORT Home

TB-SUPPORT Home

TB-SUPPORT  July 2010

TB-SUPPORT July 2010

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Removing Files from an SE when they are in SRM_FILE_BUSY state

From:

Ben Still <[log in to unmask]>

Reply-To:

Testbed Support for GridPP member institutes <[log in to unmask]>

Date:

Thu, 1 Jul 2010 14:29:08 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (132 lines)

Hi Sam,

The file has timed out now and so I cannot test this, but I did not
try any of the srm commands. I am still learning as I go and did not
know about this command set. I will give it a go next time we hit this
problem.

Just to ask, can I do this as just and lcgadmin of a VO or would
someone with root access to the SE itself have to do this?

Cheers,

Ben

On 1 Jul 2010, at 13:13, Sam Skipsey wrote:

> Hm.
>
> So, according to the srmv2.2 spec, an srmRm should succeed against a
> SURL, even if that SURL is currently in the state SRM_FILE_BUSY (this
> leads to whatever put operation was making the file busy failing when
> it tries to complete, but that's handled in the return code). Is this
> not working for you?
> Otherwise, I guess the correct thing to do is to issue an
> srmAbortFiles using the request token for the Put (if the user has
> it), and *then* do an srmRm to clean up the file in question.
> In any case, a failed put (that is, a transfer where there was an
> srmPreparetoPut, but no srmPutDone within the timeout) will
> automatically result in the file being removed, once the file transfer
> request has timed out.
>
> Sam
>
> On 30 June 2010 16:58, Ben Still <[log in to unmask]> wrote:
>> Hi Sam,
>>
>> It was a failed transfer as something went wrong on the users end,
>> and we
>> would like to delete the open file as we are not actually
>> transferring to it
>> - the failure means that no close signal was sent to SRM.
>>
>> There are only a handful of people (just three of us in fact) who are
>> transferring files within our t2k.org VO and I am the go to guy if
>> something
>> goes wrong, but I am still learning too. I know which files are OK
>> to delete
>> or not and would be stepping on no ones toes if I went ahead and
>> deleted
>> such a file.
>>
>> Cheers,
>>
>> Ben
>>
>>
>> On 30 Jun 2010, at 16:45, Sam Skipsey wrote:
>>
>>> Hi,
>>>
>>> Can I ask for a little more context here? Files in the SRM_FILE_BUSY
>>> state are marked such because SRM thinks that they are being
>>> accessed
>>> / about to be accessed by a client. Obviously, the SRM won't let you
>>> delete a file in such a state, since someone else is apparently
>>> using
>>> it.
>>> If a file is in absolutely urgent need of deletion, to the extent
>>> that
>>> you don't mind overcoming SRM's own protections in files, I think
>>> the
>>> only totally effective way is for someone local to remove it from
>>> the
>>> underlying filesystem or SE.
>>> But, again, I'd need more context to understand why you'd want to
>>> do that.
>>>
>>> Sam
>>>
>>> On 30 June 2010 16:13, Ben Still <[log in to unmask]> wrote:
>>>>
>>>> Hi,
>>>>
>>>> After a chat with Chris Walker here at QMUL we have drawn a blank
>>>> as to
>>>> how
>>>> one might remove a file in the SRM_FILE_BUSY state.
>>>>
>>>> I understand that I could simply wait for the time out, but if it
>>>> is
>>>> noticed
>>>> immediately and is of urgency then there seems to be no way to
>>>> change the
>>>> state of the file to then delete it.
>>>>
>>>> Any ideas?
>>>>
>>>> Cheers,
>>>>
>>>> Ben
>>>>
>>>> Dr Ben Still
>>>> Postdoctoral Research Assistant
>>>> Particle Physics Research Centre
>>>> Queen Mary, University of London
>>>> G.O. Jones Building
>>>> 327 Mile End Road
>>>> London
>>>> E1 4NS, UK
>>>> [log in to unmask]
>>>>
>>
>> Dr Ben Still
>> Postdoctoral Research Assistant
>> Particle Physics Research Centre
>> Queen Mary, University of London
>> G.O. Jones Building
>> 327 Mile End Road
>> London
>> E1 4NS, UK
>> [log in to unmask]
>>

Dr Ben Still
Postdoctoral Research Assistant
Particle Physics Research Centre
Queen Mary, University of London
G.O. Jones Building
327 Mile End Road
London
E1 4NS, UK
[log in to unmask]

Top of Message | Previous Page | Permalink

JISCMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


WWW.JISCMAIL.AC.UK

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager