Daniel Cano wrote:
> Could this errors be due to a network time out or similar?. Without
> doing anything, now the replication works
Well, I wonder which catalog you are using: I queried your BDII and
did not find any references to the catalogs at rlsdteam.cern.ch etc.
1. What is your /opt/lcg/var/bdii/lcg-bdii.conf on the BDII?
You probably want it to have this line:
BDII_HTTP_URL=http://grid-deployment.web.cern.ch/grid-deployment/gis/lcg2-bdii/dteam/lcg2-all-sites.conf
2. You could temporarily change the edg-rm configuration file to use
lxn1189.cern.ch as BDII, and repeat the tests.
> edg-replica-manager -v --vo dteam replicateFile
> lfn:.gtbpru10.ifca.unican.es.0411180747 -d lxn1183.cern.ch
> edg-replica-manager starting..
> Issuing command : replicateFile
> Parameters:
> lfn:.gtbpru10.ifca.unican.es.0411180747
> -d
> lxn1183.cern.ch
> Destination is a host : //lxn1183.cern.ch
> Call replica manager replicatefile function
> Finding best replica of : lfn:.gtbpru10.ifca.unican.es.0411180747
> 'Best' with respect to : lxn1183.cern.ch
> Filesize to copy (MB) = 2.3269653E-4
> copy : From :
> gsiftp://se01.lip.pt/flatfiles/SE00/dteam/generated/2004-11-18/filebaa11252-392d-11d9-860c-853e6c34bfb2
>
> copy : To :
> gsiftp://lxn1183.cern.ch/storage/dteam/generated/2004-11-18/file2cc977a4-392e-11d9-a9c0-97f84c9ba5bd
>
> copy : Protocol : gsiftp
> copy : # streams: 1
> copy : noDcau : true
> Transfer took: 17472 ms.
> Copy successful to : File name =
> gsiftp://lxn1183.cern.ch/storage/dteam/generated/2004-11-18/file2cc977a4-392e-11d9-a9c0-97f84c9ba5bd
>
> File size = 244
> File Owner = -
> Associated SE:
> sfn://lxn1183.cern.ch/storage/dteam/generated/2004-11-18/file2cc977a4-392e-11d9-a9c0-97f84c9ba5bd
>
> Replication successful.
> + result=0
> + set +x
>
> but the 3rd party ones doesn't. Things doesn't fix themselves magically,
> so there must be an underlying problem. Anyway, the BDII we use is our BDII
>
> mds.url=ldap://gtbcg07.ifca.unican.es:2170
>
> Thanks
>
> Dani
>
>
> [log in to unmask] wrote:
>
>> On Wed, 17 Nov 2004, Daniel Cano wrote:
>>
>>
>>
>>> Hello,
>>> we are having some problems that we can't locate with some RM-*
>>> commands. PrintInfo, CopyAndRegister and Copy seem to work, while
>>> Replicate, 3rd PartyReplicate, 3rd Party Copy and Delete Replicas
>>>
>>>
>>
>> All those commands complain about the RMC not being found in the
>> information system. The RMC is needed whenever an LFN is given:
>> did you try the CopyAndRegister command without an LFN?
>>
>> Do those other commands always fail? Can you try again?
>>
>>
>>
>>> doesn't. Below there is the a part of the test output. This is the first
>>> error, then (I suppose), the rest are as a consecuence of this one. Any
>>> ideas?
>>>
>>>
>>
>> What BDII are you using? Check the line starting with "mds.url=" in
>> /opt/edg/var/etc/edg-replica-manager/edg-replica-manager.conf.
>>
>>
>>
>>> Thanks in advance
>>>
>>> Dani
>>>
>>> *******************************************************************
>>>
>>>
>>> Checking replication to SE at CERN (lxn1183.cern.ch)
>>>
>>> Replicate the file from the default SE to SE at CERN
>>>
>>> + edg-replica-manager -v --vo dteam replicateFile
>>> lfn:.gtbpru10.ifca.unican.es.0411170744 -d lxn1183.cern.ch
>>> edg-replica-manager starting..
>>> Issuing command : replicateFile
>>> Parameters:
>>> lfn:.gtbpru10.ifca.unican.es.0411170744
>>> -d
>>> lxn1183.cern.ch
>>> Destination is a host : //lxn1183.cern.ch
>>> Call replica manager replicatefile function
>>> Finding best replica of : lfn:.gtbpru10.ifca.unican.es.0411170744
>>> 'Best' with respect to : lxn1183.cern.ch
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + result=255
>>> + set +x
>>>
>>> List replicas to check if replication was really successful
>>>
>>> + edg-replica-manager -v --vo dteam lr
>>> lfn:.gtbpru10.ifca.unican.es.0411170744
>>> edg-replica-manager starting..
>>> Issuing command : lr
>>> Parameters:
>>> lfn:.gtbpru10.ifca.unican.es.0411170744
>>> Call replica catalog listreplicas function
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + set +x
>>>
>>>
>>> Checking 3rd party replication from lxn1183.cern.ch to the
>>> default SE
>>>
>>> ++ edg-rm --vo dteam lr lfn:TheUniversalFile.txt
>>> ++ grep lxn1183.cern.ch
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + ufilesfn=
>>> + edg-replica-manager -v --vo dteam replicateFile
>>> edg-replica-manager starting..
>>> Issuing command : replicateFile
>>> Parameters:
>>> Error: replicateFile: Expected 1 arguments, got 0
>>> org.edg.data.util.CommandLineException: replicateFile: Expected 1
>>> arguments, got 0
>>> at org.edg.data.util.CommandBase.(CommandBase.java:65)
>>> at
>>> org.edg.data.reptor.client.CommandReplicateFile.(CommandReplicateFile.java:40)
>>>
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>> at
>>> org.edg.data.util.CommandFactory.createCommand(CommandFactory.java:51)
>>> at
>>> org.edg.data.util.CommandClient.execute(CommandClient.java:127)
>>> at org.edg.data.reptor.client.Main.main(Main.java:39)
>>> usage: edg-replica-manager replicateFile sourceFileName
>>> [command-options]
>>> Replicate a file to another SE.
>>> -d,--destination-file The destination to
>>> replicate to. This
>>> may
>>> be a fully qualified
>>> SURL, just an SE host
>>> name or just be
>>> omitted
>>> - in which case the
>>> replication will be
>>> done to the
>>> closest SE.
>>> -n,--streams <#streams> The number of
>>> parallel
>>> streams to use if
>>> supported by
>>> protocol.
>>> Optional.
>>> -p,--protocol The protocol to be used
>>> for the transfer
>>> (optional).
>>> Arguments:
>>> sourceFileName The file to replicate. This may be an LFN,
>>> GUID or
>>> SURL. For LFN and GUID the best SURL is found
>>> through listBestFile. If the destination SE is
>>> omitted, the file is replicated to the local SE,
>>> i.e. it's the same as getBestFile.
>>> + result=1
>>> + set +x
>>>
>>> List replicas to check if replication was really successful
>>>
>>> + edg-replica-manager -v --vo dteam lr lfn:TheUniversalFile.txt
>>> edg-replica-manager starting..
>>> Issuing command : lr
>>> Parameters:
>>> lfn:TheUniversalFile.txt
>>> Call replica catalog listreplicas function
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + set +x
>>>
>>>
>>> Checking copyFile for 3rd party replicated file
>>>
>>> ++ pwd
>>> + edg-replica-manager -v --vo dteam cp lfn:TheUniversalFile.txt
>>> file:///home/dteam004/globus-tmp.gtbpru10.8221.0/WMS_gtbpru10_08691_https_3a_2f_2flxn1188.cern.ch_3a9000_2fVVewake_5f6WKrtrDVwEiLxw/TheUniversalFile.txt
>>>
>>> edg-replica-manager starting..
>>> Issuing command : cp
>>> Parameters:
>>> lfn:TheUniversalFile.txt
>>> file:///home/dteam004/globus-tmp.gtbpru10.8221.0/WMS_gtbpru10_08691_https_3a_2f_2flxn1188.cern.ch_3a9000_2fVVewake_5f6WKrtrDVwEiLxw/TheUniversalFile.txt
>>>
>>> Call replica manager copyFile function
>>> Finding best replica of : lfn:TheUniversalFile.txt
>>> 'Best' with respect to : null
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + result=255
>>> + set +x
>>>
>>> The contents of TheUniversalFile.txt:
>>>
>>> cat: TheUniversalFile.txt: No such file or directory
>>>
>>>
>>> Checking deleteFile command on replicated file
>>>
>>> Remove the replica from the default SE: gtbcg13.ifca.unican.es
>>>
>>> + edg-replica-manager -v --vo dteam del lfn:TheUniversalFile.txt -s
>>> gtbcg13.ifca.unican.es
>>> edg-replica-manager starting..
>>> Issuing command : del
>>> Parameters:
>>> lfn:TheUniversalFile.txt
>>> -s
>>> gtbcg13.ifca.unican.es
>>> Call replica manager delete function
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + result=255
>>> + set +x
>>>
>>> List replicas to check if file was really deleted
>>>
>>> + edg-replica-manager -v --vo dteam lr lfn:TheUniversalFile.txt
>>> edg-replica-manager starting..
>>> Issuing command : lr
>>> Parameters:
>>> lfn:TheUniversalFile.txt
>>> Call replica catalog listreplicas function
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + set +x
>>>
>>>
>>> Remove the replicas of test file from lxn1183.cern.ch and the
>>> default SE: gtbcg13.ifca.unican.es
>>>
>>> edg-replica-manager --vo dteam lg
>>> lfn:.gtbpru10.ifca.unican.es.0411170744
>>> ++ edg-replica-manager --vo dteam lg
>>> lfn:.gtbpru10.ifca.unican.es.0411170744
>>> org.edg.data.reptor.info.InfoServiceException: No Service found
>>> edg-replica-metadata-catalog
>>> + myGUID=
>>> + edg-replica-manager -v --vo dteam del -a --all-lfn
>>> edg-replica-manager starting..
>>> Issuing command : del
>>> Parameters:
>>> -a
>>> --all-lfn
>>> Error: deleteFile: Expected 1 arguments, got 0
>>> org.edg.data.util.CommandLineException: deleteFile: Expected 1
>>> arguments, got 0
>>> at org.edg.data.util.CommandBase.(CommandBase.java:65)
>>> at
>>> org.edg.data.reptor.client.CommandDeleteFile.(CommandDeleteFile.java:37)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>> at
>>> org.edg.data.util.CommandFactory.createCommand(CommandFactory.java:51)
>>> at
>>> org.edg.data.util.CommandClient.execute(CommandClient.java:127)
>>> at org.edg.data.reptor.client.Main.main(Main.java:39)
>>> usage: edg-replica-manager deleteFile fileName [command-options]
>>> Delete an SURL from the Grid. For GUIDs the --all-available flag may
>>> be set
>>> to delete all instances that are currently known about by the RLI (be
>>> aware
>>> that there is an finite RLI update latency). It only deletes
>>> instances that
>>> are currently available. Note that this does not guarantee that ALL
>>> replicas will actually be deleted.
>>> -s,--storage The storage host from which the
>>> physical instance is to be
>>> deleted. This is mandatory for
>>> LFNs, ignored for SURLs and
>>> mandatory for GUIDs if the
>>> --all-available flag is not
>>> set.
>>> --all-lfn Delete all LFN-GUID
>>> mappings as
>>> well. This has only an
>>> effect is
>>> --all-available is also set.
>>> -a,--all-available If this is set and the
>>> file-name
>>> is a GUID, make a best-effort
>>> attempt to delete all replicas
>>> of this file.
>>> Arguments:
>>> fileName File to delete. This has to be a grid-file, i.e.
>>> LFN, SURL or GUID. For GUIDs the --all-available
>>> flag may be set to attempt to delete all
>>> instances
>>> (on a best-effort basis). For LFNs the storage
>>> option has to be set.
>>> + set +x
>>>
>>>
>>>
|