Difference between revisions of "DCache Metadata Commands"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | == | + | = Admin Commands on a mounted PNFS FileSystem = |
− | + | :In some cases, will need RW mode | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== 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 | ||
Line 19: | Line 14: | ||
0000D18B33B8289843ECA61FB4F24C289214 | 0000D18B33B8289843ECA61FB4F24C289214 | ||
+ | : or alternatively... | ||
# cd /pnfs/pic.es/data/dteam/ ; cat '.(parent)(0000C360D1E1064F4B028E371579A7FF969F)' | # cd /pnfs/pic.es/data/dteam/ ; cat '.(parent)(0000C360D1E1064F4B028E371579A7FF969F)' | ||
0000D18B33B8289843ECA61FB4F24C289214 | 0000D18B33B8289843ECA61FB4F24C289214 | ||
== Get file/directory name from PNFSID == | == 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 == | == Get ADLER32 Checksum from a specific file name == | ||
− | |||
# cat /pnfs/pic.es/data/dteam/'.(get)(1MB.test)(checksum)' | # cat /pnfs/pic.es/data/dteam/'.(get)(1MB.test)(checksum)' | ||
ADLER32:d80e3353 | ADLER32:d80e3353 | ||
+ | : or alternatively... | ||
# cd /pnfs/pic.es/data/dteam/ ; cat '.(get)(1MB.test)(checksum)' | # cd /pnfs/pic.es/data/dteam/ ; cat '.(get)(1MB.test)(checksum)' | ||
ADLER32:d80e3353 | 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) | ||
− | # cat '.(tags)()' | + | : or alternatively... |
+ | # cd /pnfs/pic.es/data/dteam/; cat '.(tags)()' | ||
+ | .(tag)(AccessLatency) | ||
+ | .(tag)(file_family) | ||
.(tag)(OSMTemplate) | .(tag)(OSMTemplate) | ||
+ | .(tag)(RetentionPolicy) | ||
.(tag)(sGroup) | .(tag)(sGroup) | ||
+ | .(tag)(storage_group) | ||
− | + | == Read tag == | |
− | + | # cat /pnfs/pic.es/data/dteam/'.(tag)(OSMTemplate)' | |
− | # cat | + | StoreName vo-dteam |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Write tag == | |
+ | echo 'StoreName vo-dteam' > /pnfs/pic.es/data/dteam/'.(tag)(OSMTemplate) |
Revision as of 14:44, 10 July 2015
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)