PCC Phase 2
(LU-12714)
|
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Technical task | Priority: | Minor |
| Reporter: | Qian Yingjin | Assignee: | Qian Yingjin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | PCC | ||
| Issue Links: |
|
||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
Currenly a PCC backend can provide caching services for both RW-PCC and RO-PCC which both use lhsmposix naming structure as follows:
"%04x/%04x/%04x/%04x/%04x/%04x/" DFID_NOBRACE
However, sharing the same naming structure may cause some confusions. For example, when RO-PCC cache a HSM archived file (not HSM released), it may confuse the user that whether the cached file object in the PCC device is RO-PCC cached file or a HSM archive. Moreover, a HSM remove request maybe delete the RO-PCC cached file wrongly. "%04x/%04x/%04x/%04x/%04x/%04x/"DFID_NOBRACE".rdonly" |
| Comments |
| Comment by Andreas Dilger [ 28/Dec/18 ] |
|
Note also that the current lhsmtool_posix naming convention for objects is not very good, and should be avoided for new deployments. It currently puts the low part of the FID at the top of the directory tree, and the high part of the FID in the lower directories. This means that each directory leaf will only ever have a single filename in it until many billions of files are archived. Instead, the naming should be changed to do the opposite - put the high word of SEQ at the top of the directory tree, and the low word of the OID at the bottom. This will keep some reasonable number of objects in each leaf directory (eg. 65000) and keep a more compact directory tree. If this needs a change to the POSIX copytool, then for compatibility it should create a config file or marker at the top of the tree (eg.lhsm_posix_v2) and check for that at startup to determine if the new naming format should be used or the old one. |
| Comment by Qian Yingjin [ 29/Dec/18 ] |
|
Hi Andreas, Thanks for you comments. I think we should create a new ticket to discuss and improve the usage efficiency of the current lhsmtool_posix naming convention for objects.
Regards, Qian |
| Comment by Gerrit Updater [ 29/Dec/18 ] |
|
Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/33942 |
| Comment by Gerrit Updater [ 22/Apr/20 ] |
|
Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/38309 |