[gpfsug-discuss] Recharging where HSM is used
valdis.kletnieks at vt.edu
valdis.kletnieks at vt.edu
Thu May 3 20:16:03 BST 2018
On Thu, 03 May 2018 16:52:44 +0100, Jonathan Buzzard said:
> The test that I have used in the past for if a file is migrated with a
> high degree of accuracy is
>
> if the space allocated on the file system is less than the
> file size, and equal to the stub size then presume the file
> is migrated.
At least for LTFS/EE, we use something like this:
define(is_premigrated,(MISC_ATTRIBUTES LIKE '%M%' AND MISC_ATTRIBUTES NOT LIKE '%V%'))
define(is_migrated,(MISC_ATTRIBUTES LIKE '%V%'))
define(is_resident,(NOT MISC_ATTRIBUTES LIKE '%M%'))
RULE 'MIGRATED' LIST 'ltfsee_files'
FROM POOL 'system'
SHOW('migrated ' || xattr('dmapi.IBMTPS') || ' ' || all_attrs)
WHERE is_migrated AND (xattr('dmapi.IBMTPS') LIKE '%:%' )
Not sure if the V and M misc_attributes are the same for other tape backends...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180503/a4d84b72/attachment.sig>
More information about the gpfsug-discuss
mailing list