define( include_list, ( /* Include all files */ PATH_NAME LIKE '%' ) ) /* Set the minimum time since last access */ define(MIN_AGE_DAYS,(30)) /* Set the minimum object size to consider for migration in kB */ define(MIN_SIZE,(1024)) /* Define a list of paths and filenames to include as potential candidates for migration */ define( include_list, ( /* Include all files */ PATH_NAME LIKE '%' ) ) /* Define a list of paths and filenames that will never be migrated */ define( exclude_list, ( PATH_NAME LIKE '%/.ctdb/%' OR PATH_NAME LIKE '%/apsearch/%' OR NAME LIKE 'user.quota%' OR NAME LIKE 'fileset.quota%' OR NAME LIKE 'group.quota%' ) ) /* Define how to identify an offline file */ define(is_migrated, (MISC_ATTRIBUTES LIKE '%V%')) /* All files use the ngenea.conf configuration file:*/ RULE EXTERNAL POOL 'NGENEA_DEFAULT' EXEC '/var/mmfs/etc/mmpolicyExec-ngenea-hsm' OPTS '-v1 --log-target=syslog --config-file=/opt/arcapix/etc/ngenea.conf' ESCAPE '%' RULE 'ngenea_migrate' MIGRATE TO POOL 'NGENEA_DEFAULT' /* If filesystem is running out of space (more than 85% full) reduce usage to 70% */ THRESHOLD(85,70,70) /* Choose files least recently accessed */ WEIGHT(DAYS(CURRENT_TIMESTAMP) - DAYS(ACCESS_TIME)) /* Only select files in the include_list */ WHERE include_list /* only migrate files > MIN_SIZE KB in size (defined above) */ AND KB_ALLOCATED > MIN_SIZE /* Don't migrate anything which has been accessed in the last N days (defined above) */ AND (DAYS(CURRENT_TIMESTAMP) - DAYS(ACCESS_TIME) >= MIN_AGE_DAYS) /* Only select online files: */ AND NOT (is_migrated) /* Don't select anything which has been excluded: */ AND NOT (exclude_list)