We just discussed this a bit internally, and I found "something* that might help... There's a mmrestripefs --inode-criteria command that can be used to identify files with these unknown-to-ILM flags set. Something like:
# echo illreplicated > criteria
# mmrestripefs gpfs01 -p --inode-criteria criteria -o result
Scanning file system metadata, phase 1 ...
100 % complete on Thu Feb 18 15:30:10 2021
Scan completed successfully.
Scanning file system metadata, phase 2 ...
100 % complete on Thu Feb 18 15:30:10 2021
Scan completed successfully.
Scanning file system metadata, phase 3 ...
Scan completed successfully.
Scanning file system metadata, phase 4 ...
100 % complete on Thu Feb 18 15:30:10 2021
Scan completed successfully.
Scanning file system metadata, phase 5 ...
100 % complete on Thu Feb 18 15:30:10 2021
Scan completed successfully.
Scanning user file metadata ...
100.00 % complete on Thu Feb 18 15:30:14 2021 ( 835584 inodes with total 4271 MB data processed)
Scan completed successfully.
Check file '/mnt/gpfs01/result' on scale-dev-01 for inodes with broken disk addresses or failures.
# cat /mnt/gpfs01/result
This inode list was generated in the Parallel Inode Traverse on Thu Feb 18 15:30:10 2021
INODE_NUMBER DUMMY_INFO SNAPSHOT_ID ISGLOBAL_SNAPSHOT INDEPENDENT_FSETID MEMO(INODE_FLAGS FILE_TYPE [ERROR])
55559 0:0 0 1 0 illreplicated unbalanced REGULAR_FILE
Unclear to me if "-p" is too much work for this task though, or maybe it can be limited with --metadata-only or other options..
HTH