Details
-
Technical task
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
9223372036854775807
Description
If there is a "kept" file on PCC, but the file was modified in Lustre after data restore, then we need to ensure that the stale PCC copy is removed from cache.
With regular HSM if the Lustre copy is modified, the HSM copy is considered stale. The client usually will notify the MDT (via MDS_DATA_MODIFIED flag) to set the HSM state to dirty (HS_DIRTY) at the time of file close() or truncate.
RW-PCC is a kind of HSM.
If MDT known that this file was once cached on PCC of a client, then the MDT can directly remove the PCC copy when MDT found the file was modified according to the MDS_DATA_MODIFIED flag just like what we does for RAoLU.
This need to the client to set the MDS_DATA_MODIFIED flag for data modification in Lustre copy, but for data modification in the PCC copy, we should ignore it.
Maybe we need to add a new flag in HSM attrs named HS_PCC to indicate that the HSM copy is on PCC.
And also we could add a configuration parameter to the proc/sys interface RAoDM (Remove Archive on Data Modifed) to enable/disable this feature just like RAoLU.