Lista de Comandos

Operações no dCache

O dCache tambem poderia ser chamado de DFS (Denorex Fyle System), parece mas não é. Ele é na verdade um banco de dados em que o acesso à informação se dá na forma de comandos usuais. Apesar de parecer que os arquivos estão nesses diretórios, eles na realidade estão localizados nos pools do dCache espalhados pelo cluster, com nomes esquisitos. Assim, apesar de possivel, deve se evitar "cd" aos diretórios do dCache, pois eles se parecem realmente com um filesystem usual.

Nosso dCache está localizado na spdc00 no diretório /pnfs/if.usp.br/data

Os comandos permitidos para manuseio dos files do dCache são:

  • mkdir para criar diretórios
  • rmdir para remover diretorios
  • ls para listar os arquivos
  • rm para remover arquivos
  • dccp para copiar arquivos de/para o dCache a partir de localizações usuais

Copiar arquivos do dCache para um disco local.

A syntax é dccp origem destino onde um deles é o nome do file em disco e o outro o nome do file no dCache.

Para copiar um file de Monte Carlo para um disco local usei:

[root@spdc00 dCache]# dccp \
/pnfs/if.usp.br/data/cms/store/CSA06/2006/8/17/CSA06-082-os-TTbar/C4DFB893-B03B-DB11-BBA0-00304871D1FF.root \
/raid0/scratch/CMS/pnfs_files/ 

Para copiar uma lista de files:

[root@spdc00 dCache]# for file in `cat pnfsLargeFiles.lst`;do dccp $file /raid0/scratch/CMS/pnfs_files ; done 

Autenticacao com GUMS, Proxy's e VO's

Configurando o GUMS

Para mapear os usuarios registrados nas VO's na conta local deve ser editado o arquivo /usr/local/opt/OSG/tomcat/v5/webapps/gums/WEB-INF/classes/gums.config.

Criando Proxies

  • Proxy Local (grid-proxy-init). Emitido localmente, sem registro em VO's.
[gregores@spgrid gregores]$ . /OSG/setup.sh
[gregores@spgrid gregores]$ grid-proxy-init -valid 240:00
Your identity: /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
Enter GRID pass phrase for this identity:
Creating proxy ............................................................. Done
Your proxy is valid until: Thu Feb 15 11:08:24 2007
Para verificar o que contem o proxy:
[gregores@spgrid gregores]$ grid-proxy-info
subject  : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221/CN=155300042
issuer   : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
identity : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
type     : Proxy draft (pre-RFC) compliant impersonation proxy
strength : 512 bits
path     : /tmp/x509up_u500
timeleft : 239:59:40  (10.0 days)

  • Proxy emitido pela VO (voms-proxy-init).
    • Para VO CMS, com role cmsprod.
[gregores@spgrid gregores]$ . /OSG/setup.sh

[gregores@spgrid gregores]$ voms-proxy-init  -voms cms:/cms/uscms/Role=cmsprod
Your identity: /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
Enter GRID pass phrase:
Your proxy is valid until Mon Feb  5 23:04:37 2007
Creating temporary proxy ........................................... Done
Contacting  lcg-voms.cern.ch:15002 [/C=CH/O=CERN/OU=GRID/CN=host/lcg-voms.cern.ch] "cms"
 Done
Creating proxy ....................................... Done
Your proxy is valid until Mon Feb  5 23:04:40 2007

[gregores@spgrid gregores]$ voms-proxy-info -all
WARNING: Unable to verify signature!
Error: Cannot find certificate of AC issuer for vo cms
subject   : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221/CN=proxy
issuer    : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
identity  : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
type      : proxy
strength  : 512 bits
path      : /tmp/x509up_u500
timeleft  : 11:59:54
=== VO cms extension information ===
VO        : cms
subject   : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
issuer    : /C=CH/O=CERN/OU=GRID/CN=host/lcg-voms.cern.ch
attribute : /cms/uscms/Role=cmsprod/Capability=NULL
attribute : /cms/Role=NULL/Capability=NULL
attribute : /cms/uscms/Role=NULL/Capability=NULL
timeleft  : 11:59:53

[gregores@spgrid gregores]$ globus-job-run $(hostname):2119/jobmanager-fork  /usr/bin/id
uid=7817(cmsprod) gid=7817(cmsprod) groups=7817(cmsprod)

    • Para VO DZero
[gregores@spgrid gregores]$ voms-proxy-init -voms dzero
Your identity: /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
Enter GRID pass phrase:
Your proxy is valid until Mon Feb  5 23:21:15 2007
Creating temporary proxy ................................. Done
Contacting  fermigrid2.fnal.gov:15002 [/DC=org/DC=doegrids/OU=Services/CN=host/fermigrid2.fnal.gov] "dzero"
 Done
Creating proxy ................................... Done
Your proxy is valid until Mon Feb  5 23:21:19 2007
[gregores@spgrid gregores]$ voms-proxy-info -all
WARNING: Unable to verify signature!
Error: Cannot find certificate of AC issuer for vo dzero
subject   : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221/CN=proxy
issuer    : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
identity  : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
type      : proxy
strength  : 512 bits
path      : /tmp/x509up_u500
timeleft  : 11:59:26
=== VO dzero extension information ===
VO        : dzero
subject   : /DC=org/DC=doegrids/OU=People/CN=Eduardo Gregores 407221
issuer    : /DC=org/DC=doegrids/OU=Services/CN=host/fermigrid2.fnal.gov
attribute : /dzero/Role=NULL/Capability=NULL
timeleft  : 11:59:25

[gregores@spgrid gregores]$ globus-job-run $(hostname):2119/jobmanager-fork  /usr/bin/id
uid=800(dzero) gid=800(dzero) groups=800(dzero)

Mapeando VO's e Roles no GUMS

Editar o arquivo /usr/local/opt/OSG/tomcat/v5/webapps/gums/WEB-INF/classes/gums.config

-- EduardoGregores - 30 Sep 2006

Topic revision: r5 - 2007-02-05 - EduardoGregores
 

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort