Print

Print


Hi Nate,

Drain in the sense that current operations complete but no new ones are 
scheduled? If so, killing the cmsd on that data server will automatically 
suspend future clients from being sent to that server without affecting any 
current users of that server. We are planning on having a more elegant way 
of doing the same thing in the near future.

Andy

-----Original Message----- 
From: Nathan Yehle
Sent: Thursday, January 12, 2012 11:46 AM
To: Yang, Wei
Cc: Hanushevsky, Andrew B. ; Doug Benjamin ; xrootd-l ; Stephane Willocq
Subject: Re: Are there any xrootd commands to automatically drain a xrootd 
dataserver

Wei,

Is there a way to drain an xrootd server without bringing it offline? 
(stopping xrootd/cmsd on a production server is not an option unfortunately)

-Nate

On Jan 9, 2012, at 3:04 AM, Yang, Wei wrote:

> Here is another way to do this, on the "faulty" data sever (obviously, it 
> can't be complete faulty, otherwise you can't login and do anything)
>
> stop xrootd/cmsd
> find storage_root_path -type f | while read file; do
>    dstfile=`remove local_root from $file`
>    xrdcp $file root://your_redirector/$dstfile
> done
>
> you can speed up the process by making a more sophisticated script using 
> xprep, etc.
>
> regards,
> Wei Yang  |  [log in to unmask]  |  650-926-3338(O)
>
>
>
>
> On Jan 9, 2012, at 12:41 AM, Andrew Hanushevsky wrote:
>
>> Hi Doug,
>>
>> The short answer is no. On the positive side, we will submit an ASCR
>> proposal to allow that.
>>
>> Andy
>>
>> P.S. The current model is that missing files from a faulty data server
>> would be automatically copied in on other servers when so requested. That
>> is a reasonable model is you assume that te ailure rate is relatively
>> small.
>>
>> On Sat, 7 Jan 2012, Doug Benjamin wrote:
>>
>>> Hello,
>>>
>>> Are there any xrootd commands to drain a faulty data server of files
>>> and distribute them across the
>>> rest of the data servers in the storage system.
>>>
>>> Thanks,
>>>
>>> Doug Benjamin
>>>
>>> ########################################################################
>>> Use REPLY-ALL to reply to list
>>>
>>> To unsubscribe from the XROOTD-L list, click the following link:
>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1
>>>
>>
>> ########################################################################
>> Use REPLY-ALL to reply to list
>>
>> To unsubscribe from the XROOTD-L list, click the following link:
>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the XROOTD-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1