DCache Metadata Commands

From Public PIC Wiki
Jump to navigation Jump to search

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