Hello Doug
Please make sure that you read the email all the way to the end because
there is an issue that could cause files to be overwritten.
The frm_admin tool has a relocate (reloc) command that allows to move a
file from one disk partition to another one. The relocate command uses the
lfn of a file and the space where the file should be moved to, for
example:
frm_admin -c <configfile>
> reloc <lfn> public:/array2
> quit
would move the lfn (/atlas/...) to the array2 partition.
In order to move all files of a partition you have to find all lfn's that
are on array1 and create a list with a reloc command for each of these
files, for example:
find /atlas -type l -ls \
| awk ' $13 ~ /array1/ {print "reloc", $11, "public:array" int(NR%2+2)}' > to_reloc
This would evenly spread the files on array2 and array3. Check the output
file that you have the proper reloc commands in it.
Once you have the file you can execute it with:
frm_admin -c <config> < to_reloc
!!! Here is now a big BIG WARNING. !!!
Due to an issue creating unique names in the disk partitions you MUST
NEVER run multiple frm_admin's within the same second (at least for
relocation). If you run frm_admin as described above (reading commands
from a file) you are save because you start only one frm_admin. However,
if you would run two frm_admin at the same time or very fast one after the
other the uniqueness of the file names in the file system is not
guarantied.
You might want to reloc one or two files first to make sure that it is
working.
Cheers,
Wilko
On Tue, 18 Mar 2014, Doug Benjamin wrote:
> Hi,
>
> We have xrootd data server serving 3 partitions. We have stitched them
> together with the oss.space command
>
> oss.space public /array1
> oss.space public /array2
> oss.space public /array3
>
> set exportpath = /atlas
>
> all.export $(exportpath) r/w stage purge
> all.export $(exportpath)/local r/w nopurge
>
> Unfortunately 2 drives have failed in /array1 (it is RAID 6) so I need move
> the files
> from /array1 to the other areas. Is there an xrootd command that I can use
> to move the files from one partition to another and allow the system to
> export
> the new files.
>
> Thanks,
>
> Doug B
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the XROOTD-DEV list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
>
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
|