Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
9223372036854775807
Description
It would be useful to store the JobID that created a file in an xattr on the MDT inode. This would allow tracking the source of files after the fact, and can help users with the provenance of their file data (e.g. which run the files came from, which can then be used to determine runtime parameters used, whether the run was successful or not, etc.).
It isn't clear whether this would be needed on the OST inodes as well, but I think initially the MDT inode would be enough, as this would be the only xattr visible to users. The OST xattr would only be accessible for low-level scanning tools.
Attachments
Issue Links
- duplicates
-
LU-11901 Store JobID of program that initially created file
-
- Resolved
-
- has to be done before
-
LU-16798 lfs find: new --jobid option
-
- Closed
-
- is related to
-
LU-18798 user.job xattr is storing quotes around job name
-
- Open
-
-
LU-17219 lfs find: add ability to print extended attributes
-
- Open
-
-
LU-15743 "lfs find" is missing "-xattr" support
-
- Resolved
-
- is related to
-
LU-16007 NRS Jobid default RPC aggregation
-
- Open
-
-
LU-17648 store JobID of process deleting file into xattr
-
- Open
-
-
LUDOC-373 Add information about Lustre xattrs
-
- Open
-
- mentioned in
-
Page Loading...
No rush. For some reason I thought this was part of the original implementation, but upon looking at the patch again I saw it was only on the MDT inode.
I think it makes sense to put this in ofd_attr_handle_id() where it is initializing the object ownership the first time the OST object is written to (in the "if (mask != 0)" block if it cleared the SUID/SGID bits). That allows a "one shot" setting of the user.job xattr without having to check each time whether it exists or not. The parameter obdfilter.*.jobid_xattr should be used like mdt.*.jobid_xattr to control the xattr name.