<font size=2 face="sans-serif">I think you have the sign wrong on your
weight.  </font><br><font size=2 face="sans-serif">A simple way of ordering the files oldest
first is</font><br><br><font size=2 face="sans-serif">WEIGHT(DAYS(CURRENT_TIMESTAMP) - DAYS(ACCESS_TIME))
    adding 100,000 does nothing to change the order.</font><br><br><font size=2 face="sans-serif">WEIGHT can be any numeric SQL expression.
So come to think of it</font><br><br><font size=2 face="sans-serif">WEIGHT( - DAYS(ACCESS_TIME) )  is
even simpler and will yield the same ordering</font><br><br><font size=2 face="sans-serif">Also, you must run or schedule the mmapplypolicy
command to run to actually do the migration.  It doesn't happen until
the mmapplypolicy command is running.</font><br><br><font size=2 face="sans-serif">You can run mmapplypolicy periodically
(e.g. with crontab)  or on demand with mmaddcallback (GPFS events
facility)  </font><br><br><font size=2 face="sans-serif">This is all covered in the very fine
official Spectrum Scale documentation and/or some of the supplemental IBM
red books, all available for free downloads from ibm.com<br></font><br><font size=2 face="sans-serif">--marc of GPFS</font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Stef Coene <stef.coene@docum.org></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">gpfsug main discussion
list <gpfsug-discuss@spectrumscale.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">02/27/2017 08:55 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[gpfsug-discuss]
Policy question</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr noshade><br><br><br><tt><font size=2>Hi,<br><br>I have a file system with 2 pools: V500001 and NAS01.<br>I want to use pool V500001 as the default and migrate the oldest files
<br>to the pool NAS01 when the pool V500001 fills up.<br><br>Whatever rule combination I tried, I can not get this working.<br>This is the currently defined policy (created by the GUI):<br><br>RULE 'Migration'<br>     MIGRATE<br>         FROM POOL 'V500001'<br>         THRESHOLD(95,85)<br>         WEIGHT(100000 - DAYS(CURRENT_TIMESTAMP) -
DAYS(ACCESS_TIME))<br>     TO POOL 'NAS01'<br><br>RULE 'Default to V5000'<br>     SET POOL 'V500001'<br><br>And also, how can I monitor the migration processes?<br><br><br>Stef<br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss"><tt><font size=2>http://gpfsug.org/mailman/listinfo/gpfsug-discuss</font></tt></a><tt><font size=2><br><br></font></tt><br><BR>