Difference between revisions of "DCache Metadata Commands"

From Public PIC Wiki
Jump to navigation Jump to search
(Created page with "== Get directory tags == # grep "" $(cat ".(tags)()") .(tag)(AccessLatency):ONLINE .(tag)(file_family):dteam .(tag)(OSMTemplate):StoreName vo-dteam .(tag)(RetentionPolicy...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Get directory tags ==
+
= Admin Commands on a mounted PNFS FileSystem =
# grep "" $(cat ".(tags)()")
+
:In some cases, will need RW mode
.(tag)(AccessLatency):ONLINE
 
.(tag)(file_family):dteam
 
.(tag)(OSMTemplate):StoreName vo-dteam
 
.(tag)(RetentionPolicy):REPLICA
 
.(tag)(sGroup):dteam
 
.(tag)(storage_group):vo-dteam
 
  
 
== Get PNFSID of a file ==
 
== Get PNFSID of a file ==
 
 
  # cat /pnfs/pic.es/data/dteam/'.(id)(1MB.test)'
 
  # cat /pnfs/pic.es/data/dteam/'.(id)(1MB.test)'
 
  0000C360D1E1064F4B028E371579A7FF969F
 
  0000C360D1E1064F4B028E371579A7FF969F
 +
 +
: or alternatively...
 
  cd /pnfs/pic.es/data/dteam ;  cat '.(id)(1MB.test)'
 
  cd /pnfs/pic.es/data/dteam ;  cat '.(id)(1MB.test)'
 
  0000C360D1E1064F4B028E371579A7FF969F
 
  0000C360D1E1064F4B028E371579A7FF969F
  
== Get file path from PNFSID ==
+
== Get PNFSID of a parent directory ==
 +
# cat /pnfs/pic.es/data/dteam/'.(parent)(0000C360D1E1064F4B028E371579A7FF969F)'
 +
0000D18B33B8289843ECA61FB4F24C289214
  
 +
: or alternatively...
 +
# cd /pnfs/pic.es/data/dteam/ ; cat '.(parent)(0000C360D1E1064F4B028E371579A7FF969F)'
 +
0000D18B33B8289843ECA61FB4F24C289214
 +
 +
== Get file/directory name from PNFSID ==
 
  cat /pnfs/pic.es/data/dteam/'.(nameof)(0000C360D1E1064F4B028E371579A7FF969F)'
 
  cat /pnfs/pic.es/data/dteam/'.(nameof)(0000C360D1E1064F4B028E371579A7FF969F)'
 
  1MB.test
 
  1MB.test
 +
 +
: or alternatively...
 
  cd /pnfs/pic.es/data/dteam ; cat '.(nameof)(0000C360D1E1064F4B028E371579A7FF969F)'
 
  cd /pnfs/pic.es/data/dteam ; cat '.(nameof)(0000C360D1E1064F4B028E371579A7FF969F)'
 
  1MB.test
 
  1MB.test
  
 
+
== Get ADLER32 Checksum from a specific file name ==
;Descobrir el directori on resideix un pnfsid
 
 
 
# cat '.(parent)(00050000000000000000BFD0)'
 
000500000000000000001060
 
# cat '.(nameof)(000500000000000000001060)'
 
dteam
 
 
 
; Extreure checksum '''''ADLER32''''' d'un fitxer
 
 
 
 
  # cat /pnfs/pic.es/data/dteam/'.(get)(1MB.test)(checksum)'
 
  # cat /pnfs/pic.es/data/dteam/'.(get)(1MB.test)(checksum)'
 
  ADLER32:d80e3353
 
  ADLER32:d80e3353
  
== Tags dels directoris ==
+
: or alternatively...
 +
# cd /pnfs/pic.es/data/dteam/ ; cat '.(get)(1MB.test)(checksum)'
 +
ADLER32:d80e3353
  
;Veure els tags de un directori
+
== Get all directory tags and read tags ==
 +
# cd /pnfs/pic.es/data/dteam/ ; grep '' $(cat '.(tags)()')
 +
.(tag)(AccessLatency):ONLINE
 +
.(tag)(file_family):dteam
 +
.(tag)(OSMTemplate):StoreName vo-dteam
 +
.(tag)(RetentionPolicy):REPLICA
 +
.(tag)(sGroup):dteam
 +
.(tag)(storage_group):vo-dteam
  
  # cat '.(tags)()'
+
== Get all directory tags ==
 +
  # cat '/pnfs/pic.es/data/dteam/.(tags)()'
 
  .(tag)(OSMTemplate)
 
  .(tag)(OSMTemplate)
 
  .(tag)(sGroup)
 
  .(tag)(sGroup)
  
;Llegir un tag
+
: or alternatively...
 
+
  # cd /pnfs/pic.es/data/dteam/; cat '.(tags)()'
  # cat '.(tag)(OSMTemplate)'
+
  .(tag)(AccessLatency)
  StoreName myStore
+
  .(tag)(file_family)
 
+
  .(tag)(OSMTemplate)
;Veure tots els tags
+
  .(tag)(RetentionPolicy)
 
+
  .(tag)(sGroup)
  # grep "" $(cat ".(tags)()")
+
  .(tag)(storage_group)
  .(tag)(OSMTemplate):StoreName vo-dteam
 
  .(tag)(sGroup):dteam
 
 
 
;Modificar un tag: MOLT IMPORTANT, EL TAG OSMTemplate HA DE TENIR COM A VALOR '''StoreName vo-<VO>'''
 
 
 
  # echo 'StoreName vo-dteam' > '.(tag)(OSMTemplate)
 
 
 
 
 
= Comandes a l'interficie d'administració =
 
 
 
;Veure la informació de la cel·la
 
 
 
  info
 
 
 
;Veure el pinboard
 
 
 
show pinboard
 
 
 
== PoolManager@dCacheDomain ==
 
 
 
;Afegir un pool a un grup de pools
 
 
 
psu addto pgroup <pgroup> <pool>
 
 
 
;Treure un pool de un grup de pools
 
 
 
psu removefrom pgroup <pgroup> <pool>
 
 
 
;Mirar la informació d'un pool
 
 
 
psu ls pool -a <pool>
 
 
 
;Mirar la informació d'un grup
 
 
 
psu ls pgroup -a <pgroup>
 
 
 
;Activar un pool
 
 
 
psu set enabled <pool>
 
 
 
;Desactivar un pool
 
 
 
psu set disabled <pool>
 
 
 
;Posar un pool en readonly
 
 
 
psu set pool <pool> rdonly
 
 
 
;Treure un pool de l'estat readonly (mode write)
 
 
 
psu set pool <pool> notrdonly
 
 
 
== <pool>@<shortHostname>Domain ==
 
 
 
;Activar un pool
 
 
 
pool enable
 
 
 
;Desactivar un pool
 
 
pool disable
 
 
 
=== Movers ===
 
 
 
;Mostrar els movers
 
 
 
mover ls
 
 
 
;Esborrar un mover
 
 
 
mover remove <moverid>
 
 
 
;Matar un mover
 
 
 
mover kill <moverid>
 
 
 
;Especificar el tamany de la cua de movers
 
 
 
mover set max active <nombre>
 
 
 
;Posar un autokill dels movers
 
 
 
jtm set timeout -lastAccess=<nombre de segons inactiu>
 
 
 
=== Replicas ===
 
 
 
;Mostrar les replicas
 
 
 
rep ls
 
 
 
;Esborrar una replica
 
 
rep rm <pnfsid>
 
 
 
=== P2P (pool to pool transfer) ===
 
 
 
;Mostrar les transferències
 
 
 
p2p ls
 
 
 
;Parar una transferència
 
 
 
p2p stop <p2pid>
 
 
 
;Matar una transferència
 
 
 
p2p kill <p2pid>
 
 
 
;Especificar el tamany de la cua de p2p
 
 
 
p2p set max active <nombre>
 
 
 
=== PNFS ===
 
 
 
;Registrar les rèpliques al pnfs
 
 
 
pnfs register
 
 
 
;Esborrar les rèpliques del pnfs
 
 
 
pnfs unregister
 
 
 
;Mostrar a qui pertany un pnfsid
 
 
 
pf <pnfsid>
 
 
 
== GFTP-<shortHostname>@gridftp-<shortHostname>Domain ==
 
 
 
;Especificar el tamany del buffer de gridftp logins
 
 
 
set max logins <nombre>
 
 
 
== InfoCollector@infoProviderDomain ==
 
 
 
;Veure el report
 
 
 
report
 
 
 
== PnfsManager@pnfsDomain ==
 
 
 
;Mostrar a quin fitxer pertany un pnfsid
 
 
 
pathfinder <pnfsid>
 
 
 
;Mostrar quin pnfsid te un fitxer
 
 
 
pnfsidof <path>
 
 
 
;Veure les propietats posix d'un fitxer o d'un pnfsid
 
 
 
metadataof <pnfsid | path>
 
  
;Veure les propietats d'un fitxer os d'un pnfsid
+
== Read tag ==
 +
# cat /pnfs/pic.es/data/dteam/'.(tag)(OSMTemplate)'
 +
StoreName vo-dteam
  
  storageinfoof <pnfsid | path>
+
== Write tag ==
 +
  echo 'StoreName vo-dteam' > /pnfs/pic.es/data/dteam/'.(tag)(OSMTemplate)
  
;Veure a quin pool pertany un fitxer o un pnfsid
+
= Admin Commands using the 'chimera' command =
  
cacheinfoof <pnfsid | path>
+
= Further Information =
 +
[https://github.com/dCache/dcache/wiki/NFS-Dot-Commands#get-checksums NFS Dot Commands]

Latest revision as of 10:45, 13 January 2017

Admin Commands on a mounted PNFS FileSystem

In some cases, will need RW mode

Get PNFSID of a file

# cat /pnfs/pic.es/data/dteam/'.(id)(1MB.test)'
0000C360D1E1064F4B028E371579A7FF969F
or alternatively...
cd /pnfs/pic.es/data/dteam ;  cat '.(id)(1MB.test)'
0000C360D1E1064F4B028E371579A7FF969F

Get PNFSID of a parent directory

# cat /pnfs/pic.es/data/dteam/'.(parent)(0000C360D1E1064F4B028E371579A7FF969F)'
0000D18B33B8289843ECA61FB4F24C289214
or alternatively...
# cd /pnfs/pic.es/data/dteam/ ; cat '.(parent)(0000C360D1E1064F4B028E371579A7FF969F)'
0000D18B33B8289843ECA61FB4F24C289214

Get file/directory name from PNFSID

cat /pnfs/pic.es/data/dteam/'.(nameof)(0000C360D1E1064F4B028E371579A7FF969F)'
1MB.test
or alternatively...
cd /pnfs/pic.es/data/dteam ; cat '.(nameof)(0000C360D1E1064F4B028E371579A7FF969F)'
1MB.test

Get ADLER32 Checksum from a specific file name

# cat /pnfs/pic.es/data/dteam/'.(get)(1MB.test)(checksum)'
ADLER32:d80e3353
or alternatively...
# cd /pnfs/pic.es/data/dteam/ ; cat '.(get)(1MB.test)(checksum)'
ADLER32:d80e3353

Get all directory tags and read tags

# cd /pnfs/pic.es/data/dteam/ ; grep  $(cat '.(tags)()')
.(tag)(AccessLatency):ONLINE
.(tag)(file_family):dteam
.(tag)(OSMTemplate):StoreName vo-dteam
.(tag)(RetentionPolicy):REPLICA
.(tag)(sGroup):dteam
.(tag)(storage_group):vo-dteam

Get all directory tags

# cat '/pnfs/pic.es/data/dteam/.(tags)()'
.(tag)(OSMTemplate)
.(tag)(sGroup)
or alternatively...
# cd /pnfs/pic.es/data/dteam/; cat '.(tags)()'
.(tag)(AccessLatency)
.(tag)(file_family)
.(tag)(OSMTemplate)
.(tag)(RetentionPolicy)
.(tag)(sGroup)
.(tag)(storage_group)

Read tag

# cat /pnfs/pic.es/data/dteam/'.(tag)(OSMTemplate)'
StoreName vo-dteam

Write tag

echo 'StoreName vo-dteam' > /pnfs/pic.es/data/dteam/'.(tag)(OSMTemplate)

Admin Commands using the 'chimera' command

Further Information

NFS Dot Commands