Hi, is there a way to run only one specific file pool policy manually?
I know I can wait for SmartPools job that is schedule to run at 10PM daily (at our site) and will eventually run my new policy along with other existing policies but I really don't want to wait 24 hours to see if my new policy is working fine or not.
Good info on how to test config without running the job. However, is there a way to actually *run* smartpool job for only one specific policy?
Sadly, no, you can't just run SmartPools jobs for only one file pool policy. The job itself has to walk the entire filesystem, evaluating every file and directory, and the design of the job (currently) is to run through the entire policy set. There's no way to tell the job to only work on a specific directory, or a specific policy. Some policies I've created in the past work all within the same directory structure, so they'd need to be evaluated in order, and completely, anyway.
This would be a nice feature to have, specifically if you just wanted to use SmartPools to move only the data in one directory between pools, or to quickly make sure that snapshot data for one pool was migrated to another (without having to walk the rest of the filesystem).
Wait a moment...
isi smartpools apply ... (without -n)
actually will apply the policies to the given folder; while -n is for just "testing".
And you might want to use -r for recursively traversing the whole subtree.
It has been very useful over here for ad hoc enabling SSD metadata acceleration on individual shares.
What you can't do is applying a single policy (unless you effectively disable other policies for the moment.)
Sure, I tried to be careful and said "effectively", because there is no simple way.
Obviously the following will work, but you will need to judge wether
it is appropriate in your situation or not:
Add your "test rule" at the top of the rule list, and
add a dummy rule at position two, matching everything (like "path starts with /ifs/data"),
but doing nothing (all checkmarks off),
and enable "stop processing if matched" for rule two.
This will mask out all the other rules...