Difference between revisions of "DCache Metadata Commands"
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: | ||
− | == | + | = 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 | ||
− | == Get | + | == 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 == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# 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)' | ||
+ | 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 | ||
− | # cat '.(tags)()' | + | == Get all directory tags == |
+ | # cat '/pnfs/pic.es/data/dteam/.(tags)()' | ||
.(tag)(OSMTemplate) | .(tag)(OSMTemplate) | ||
.(tag)(sGroup) | .(tag)(sGroup) | ||
− | + | : or alternatively... | |
− | + | # cd /pnfs/pic.es/data/dteam/; cat '.(tags)()' | |
− | # cat '.( | + | .(tag)(AccessLatency) |
− | + | .(tag)(file_family) | |
− | + | .(tag)(OSMTemplate) | |
− | + | .(tag)(RetentionPolicy) | |
− | + | .(tag)(sGroup) | |
− | + | .(tag)(storage_group) | |
− | .(tag)(OSMTemplate) | ||
− | .(tag)( | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == 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 = | |
+ | [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)