User Tools

Site Tools


gpfs:gpfs_ilm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gpfs:gpfs_ilm [2021/05/28 21:58]
manu created
gpfs:gpfs_ilm [2021/11/01 23:35] (current)
manu
Line 5: Line 5:
 Here scripts to automate ILM Here scripts to automate ILM
 https://​github.com/​IBM/​spectrum-scale-policy-scripts https://​github.com/​IBM/​spectrum-scale-policy-scripts
 +
 +Examples of policies:
 +
 +<cli>
 +/* fileset placement project1 to new 10TB NL-SAS pool */
 +RULE '​project1'​ SET POOL '​NLSAS10TB'​ FOR FILESET ('​project1'​)
 +
 +/* fileset placement project2 to new 10TB NL-SAS pool */
 +RULE '​project2'​ SET POOL '​NLSAS10TB'​ FOR FILESET ('​project2'​)
 +
 +/* default placement to pool NLSAS4TB, must be the last line */
 +RULE '​default'​ SET POOL '​NLSAS4TB'​
 +</​cli>​
 +
 +<cli>
 +/* Extension of the placement policy by the threshold */
 +RULE '​migrate_SSD2NLSAS_60'​ MIGRATE FROM POOL '​ssddata'​ THRESHOLD(60,​50) ​
 +WEIGHT(KB_ALLOCATED) TO POOL '​data'​
 +WHERE ((CURRENT_TIMESTAMP - MODIFICATION_TIME) > INTERVAL '​5'​ MINUTES)
 +
 +/* Daily migration policy started by cron on the file system manager, with QoS */
 +RULE '​migrate_SSD2NLSAS_128M'​ MIGRATE FROM POOL '​ssddata'​ TO POOL '​data'​ WHERE KB_ALLOCATED > 
 +131072 AND ((CURRENT_TIMESTAMP - MODIFICATION_TIME) > INTERVAL '​5'​ MINUTES)
 +</​cli>​
 +
 +Add the callback to trigger the threshold migration on “lowDiskSpace”,​ without QoS 
 +<cli prompt='#'>​
 +# mmchconfig enableLowspaceEvents=yes
 +# /​usr/​lpp/​mmfs/​bin/​mmaddcallback MIGRATION --command /​usr/​lpp/​mmfs/​bin/​mmstartpolicy --event lowDiskSpace --parms "​%eventName %fsName -g /​cfs/​.policywdir/​global -s /​cfs/​.policywdir/​local -N nsdsrv --single-instance --qos other"
 +</​cli>​
gpfs/gpfs_ilm.1622231882.txt.gz · Last modified: 2021/05/28 21:58 by manu