Highlighted
xubair1
1 Nickel

how to run a file pool policy manually

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.

Any ideas?

Tags (4)
0 Kudos
8 Replies
BernieC2
2 Bronze

Re: how to run a file pool policy manually


xubair1
1 Nickel

Re: how to run a file pool policy manually

Hi Bernie,

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?

thx

0 Kudos
BernieC2
2 Bronze

Re: how to run a file pool policy manually

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).

0 Kudos
xubair1
1 Nickel

Re: how to run a file pool policy manually

thanks for the explanation.

0 Kudos
Peter_Sero
3 Zinc

Re: how to run a file pool policy manually

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.)

Cheers

-- Peter

0 Kudos
xubair1
1 Nickel

Re: how to run a file pool policy manually

Hey Peter,

and how do I disable other policies?  I was told that 'disable' actually mean 'destroy' which obviously I cann't do.

0 Kudos
Peter_Sero
3 Zinc

Re: how to run a file pool policy manually

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...

Cheers

-- Peter

0 Kudos
xubair1
1 Nickel

Re: how to run a file pool policy manually

Awesome, that will do it.

Thanks a lot!

0 Kudos