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

Help for LCG-ROLLOUT Archives


LCG-ROLLOUT Archives

LCG-ROLLOUT Archives


LCG-ROLLOUT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LCG-ROLLOUT Home

LCG-ROLLOUT Home

LCG-ROLLOUT  2005

LCG-ROLLOUT 2005

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Looking for LHCb files at Birmingham LCG site

From:

Maarten Litmaath <[log in to unmask]>

Reply-To:

LHC Computer Grid - Rollout <[log in to unmask]>

Date:

Thu, 13 Jan 2005 16:13:53 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (184 lines)

Ian Stokes-Rees wrote:

> [Friends, below find an account of my adventures with LCG data
> management commands as I searched for the elusive LHCb files at
> Birmingham.  I am a novice with LCG Data Mgmt, so I think my experience
> is similar to what another novice would go through.  I thought you would
> all be interested in this account of "Adventures in Grid World".]
>
> Hi John,
>
> John Gordon wrote:
>
>> Ian, as an LHCb person, you are better placed than most to run a job at
>> this site and ls the LHCb directories to see what is there. You are also
>> better placed to identify the data from directory and filenames.
>
>
> Yes, I suppose that is a good point, however, somewhat embarassingly I
> don't know how to do this off the top of my head.  I would very much
> appreciate an outline of how one would go about doing this.

Short answer: the LFC will make this easy and fast, the old RLS does not.

The quickest way may be to ask the site admin to do an "ls -lR" of the
area dedicated to LHCb!

Slow recipe:

1. Find the SE:

-------------------------------------------------------------------------------------
$ ldapsearch -x -h lxn1178.cern.ch:2170 -b o=grid | grep -i '^GlueSEUniqueID: .*bham'
GlueSEUniqueID: epcf37.ph.bham.ac.uk
-------------------------------------------------------------------------------------

2. Find the file names:

-------------------------------------------------------------------------------------
$ export LRC_ENDPOINT=http://rlslhcb.cern.ch:7777/lhcb/v2.2/\
edg-local-replica-catalog/services/edg-local-replica-catalog

$ edg-lrc mappingsByPfn 's??://epcf37.ph.bham.ac.uk*' --endpoint $LRC_ENDPOINT
guid:6edc1ce8-0838-11d9-ba4e-bf7bc633f989, sfn://epcf37.ph.bham.ac.uk/storage/lhcb/...
[...]
guid:6ffa1f34-f840-476b-953a-323ba66bcd3f, sfn://epcf37.ph.bham.ac.uk/storage/lhcb/...
-------------------------------------------------------------------------------------

Note: it is a good idea *not* to start the pattern with a wildcard,
to allow the DB to use an index for the query!

3. Find the size of each file:

-------------------------------------------------------------------------------------
$ edg-gridftp-ls --verbose gsiftp://epcf37.ph.bham.ac.uk/storage/lhcb/...
[...]
-------------------------------------------------------------------------------------

For an "sfn" (i.e. Classic SE) one can just "s/sfn/gsiftp/" to obtain the TURL.

Another issue: below you are confusing the shared area for experiment software
with the SE storage area.  The SE is not mounted on the WN, because LCG does not
support that (any more), for various reasons.

> Below is an account of my attempt.  I have taken about 90 minutes and
> not managed to turn up any useful information.
>
> Looking at the LCG-2 User Guide, at first nothing obvious jumps out
> about how to do this.  A closer inspection suggests that:
>
> lcg-infosites
>
> would be a good command to try.  This does not appear to be installed on
> lcgui02.gridpp.rl.ac.uk (ASIDE: this is my preferred LCG UI, although I
> know they are all slightly different, so I am aware of the
> boring-but-sometimes-necessary "trick" of attempting the same command on
> at least 3 different UIs in order to get a "best 2 out of 3" vote on
> "correct" behaviour).
>
> Then I looked at the GOC DB, which I find to be one of the best sources
> of information regarding LCG.  It lists the SE, but I found that didn't
> get me much further forward.
>
> Next I tried my old trick of nicking the lhcb001 SSH private keys from
> ~/.ssh and trying to ssh directly to the CE or SE.  Thankfully (but
> somewhat unhelpfully in this case) this is no longer possible, at least
> at Birmingham.
>
> I then moved on through the LCG-2 User's Guide, which suggested the
> edg-lrc and edg-lrm commands.  These both told me I needed the output
> from lcg-infosites, so again I was up the proverbial creek.
>
> OK, so I'm resourceful guy, and I know, while awkward, the equivalent of
> ssh'ing to the node can be achieved using globus-job-run.  I used this
> to poke around "/" but couldn't find anything.  "df" also showed no
> mounts to the SE, so I guess the CE doesn't mount the local SE directly.
>
> This then left me with getting the .BrokerInfo information back from a
> job which executted at Birmingham, in hopes of finding the path to the
> local SE within it.  Since:
>
> edg-job-submit -h <birmingham> job.jdl
>
> short-circuits the RB and won't give me a .BrokerInfo file, I had to
> search through archives, emails, and CVS to remind myself about the
> syntax for forcing a job to a particular site using JDL.  FWIW, the
> syntax is:
>
> Requirements  = (other.GlueCEInfoHostName == "epcf36.ph.bham.ac.uk");
>
> Interestingly, my first jobs to come back show that epcf38 is mounted on
> the WNs, and not epcf37 (the listed SE), and furthermore the directory
> /experiment seems to have the SE files in it, rather than /storage (as
> listed in .BrokerInfo, and therefore presumably in the IS/MDS/R-GMA).
>
> In any case, I am now stuck waiting 5-10 minutes for each (effectively)
> "ls" command to execute and return the results.  This turn around time
> means I have to give up, so my question remains un-answered.
>
> Of course, I hope that I have just missed something simple.  I hope that
> if the lcg-infosites command had existed then I could have done
> something like:
>
> edg-rmc mappingsByAlias '*lhcb*' --endpoint <birmingham-endpoint>
>
> However, the output of that command somewhat scares me.  It should/could
> be enormous, and anyway, I don't know if it would be useful.  I really
> need file sizes and file dates as well, and I don't think these are
> returned.
>
> As I understand it, the LCG data management system uses a flat namespace
> for file storage, and any "/" (slashes) are just for convenience.  There
> is no (easy) way to list files in a particularly "pseudo-hierarchy"
> level (files in leaves can be listed using the appropriate wildcard with
> the "pseudo-path" followed by "/*", I suppose).
>
> Also, I have confirmed that /storage does not exist at birmingham, so
> anyone running jobs there hoping to use the .BrokerInfo file or
> edg-brokerinfo commands to point them to the mounted local SE storage
> would be out of luck.
>
> 15 minutes after submitting my "ls /experiment/lhcb" command, I still
> don't have any output.
>
> It suddenly came to me to use edg-gridftp-ls.  This finally showed
> *some* results.  I discovered that the GOC DB listed SE doesn't appear
> to be the Birmingham SE anymore.  It *does* have a /storage directory,
> which contains about 100 megs of LHCb files, in about 10 files in 4
> directories.  However this server/directory is not what the WNs seem to
> connect to.  epcf38:/experiment is not accessible by edg-gridftp-ls, so
> stuck again.
>
> And that is it for me.  Out of time, and on to other things.  I look
> forward to pointers on where I went wrong, and someone satisfying me
> that "There Must Be An Easier Way", or, in fact, *any* way to get the
> information I have failed to retrieve.
>
> Cheers,
>
> Ian.
>
> POSTSCRIPT:
>
> My last ls command finally completed after 22 minutes.  There is nothing
> in /experiment/lhcb, and df reports "lots" of free drive space:
>
> epcf38.ph.bham.ac.uk:/experiment
>                       37903148   1676600  34301160   5% /experiment
>
> (34 gigs).  This is all the WN had mounted:
>
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/hda2             37903148   3899544  32078216  11% /
> /dev/hda1                38859     15107     21746  41% /boot
> epac2.ph.bham.ac.uk:/opt/local/linux/7.3
>                       12207540   4581788   7005644  40%
> /export/local/linux/7.3
> epcf38.ph.bham.ac.uk:/experiment
>                       37903148   1676600  34301160   5% /experiment
>
>
> --
> Ian Stokes-Rees              [log in to unmask]
> Particle Physics, Oxford     http://grid.physics.ox.ac.uk/~stokes

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
November 2023
June 2023
May 2023
April 2023
March 2023
February 2023
September 2022
June 2022
May 2022
April 2022
February 2022
December 2021
November 2021
October 2021
September 2021
July 2021
June 2021
May 2021
February 2021
January 2021
November 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
February 2018
January 2018
November 2017
October 2017
September 2017
July 2017
June 2017
May 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
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
2006
2005
2004
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

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