PNFSID - Enstore-org/enstore GitHub Wiki
Definition
The PNFSID is the identifier saved in the PNFS namespace used to uniquely identify Enstore files. It is assigned during the file write process.
Usage
PNFSID can be used to look up files in the Enstore DB.
(this is fake data)
[enstore@enstoremach01 ~]# enstore info --file 0000123ABC456DEF123ABC456DEF123ABC45
{'active_package_files_count': None,
'archive_mod_time': None,
'archive_status': None,
'bfid': 'CDMS146113845800001',
'cache_location': None,
'cache_mod_time': None,
'cache_status': None,
'complete_crc': 123456789L,
'deleted': 'no',
'drive': 'mvr01:/dev/rmt/11ee1n:00000000001',
'external_label': 'ABC123',
'file_family': 'my-fam-1',
'file_family_width': 1,
'gid': 0,
'library': 'TK-1F23',
'location_cookie': '0000_000000000_0000001',
'original_library': None,
'package_files_count': None,
'package_id': None,
'pnfs_name0': '/pnfs/my/file/directory/1234_cool_data.tar',
'pnfsid': '0000123ABC456DEF123ABC456DEF123ABC45',
'sanity_cookie': (12345L, 12288333L),
'send_ts': 12345690.512345,
'size': 1229999333L,
'storage_group': 'mine',
'tape_label': 'ABC123',
'uid': 0,
'update': '2022-04-19 15:38:14.808057',
'wrapper': 'cpio'}
Retrieval:
The PNFSID can be retrieved from Enstore DB using alternative file IDs such as BFID, or from PNFS using cat
.
(this is fake data)
[enstore@enstoremach01 ~]# enstore info --file CDMS146113845800001 | grep pnfsid
'pnfsid': '0000123ABC456DEF123ABC456DEF123ABC45',
[enstore@enstoremach03 ~]# cat /pnfs/my/file/directory/".(id)(1234_cool_data.tar)"
0000123ABC456DEF123ABC456DEF123ABC45