[gpfsug-discuss] Specifying nodes in commands
Marc A Kaplan
makaplan at us.ibm.com
Mon Nov 13 17:44:23 GMT 2017
My guess is you have some expectation of how things "ought to be" that
does not match how things actually are.
If you haven't already done so, put some diagnostics into your script,
such as
env
hostname
echo "my args are: $*"
And run
mmapplypolicy with an explicit node list:
mmapplypolicy /some/small-set-of-files -P /mypolicyfile -N
node1,node2,node3 -I test -L 1 -d 1
And see how things go
Hmmm... reading your post again... It seems perhaps you've got some things
out of order or again, incorrect expectations or model of how the this
world works...
mmapplypolicy reads your policy rules and scans the files and calls the
script(s) you've named in the EXEC options of your EXTERNAL rules
The scripts are expected to process file lists -- NOT call mmapplypolicy
again...
Refer to examples in the documentation, and in samples/ilm - and try
them!
--marc
From: "Chase, Peter" <peter.chase at metoffice.gov.uk>
To: "'gpfsug-discuss at spectrumscale.org'"
<gpfsug-discuss at spectrumscale.org>
Date: 11/13/2017 06:15 AM
Subject: Re: [gpfsug-discuss] Specifying nodes in commands
Sent by: gpfsug-discuss-bounces at spectrumscale.org
Hi Marc,
Thanks for your response, there's some handy advice in there that I'll
look at further.
I'm still struggling a bit with mmapplypolicy and it's -N option.
I've changed my external list command to point at a script, that script
looks for "LIST" as the first argument, and runs
"/usr/lpp/mmfs/bin/mmapplypolicy /gpfs1/aws -d 1 -N cloudNode -P
/gpfs1/s3upload/policies/migration.policy
>>/gpfs1/s3upload/external-list.log 2>&1".
If the script is run from the command line on a node that's not in
cloudNode class it works without issue and uses nodes in the cloudNode
class as helpers, but if the script is called from the active policy,
mmapplypolicy runs, but seems to ignore the -N and doesn't use the
cloudNode nodes as helpers and instead seems to run locally (from which
ever node started the active policy).
So now my questions is: why does the -N option appear to be honoured when
run from the command line, but not appear to be honoured when triggered by
the active policy?
Regards,
Peter Chase
GPCS Team
Met Office FitzRoy Road Exeter Devon EX1 3PB United Kingdom
Tel: +44 (0)1392 886921
Email: peter.chase at metoffice.gov.uk Website: www.metoffice.gov.uk
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwIFAw&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=tNW4WqkmstX3B3t1dvbenDx32bw3S1FQ4BrpLrs1r4o&s=CBzS6KRLe_hQhI4zpeeuvNaYdraGbc7cCV-JTvCgDcM&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20171113/8cae9933/attachment.htm>
More information about the gpfsug-discuss
mailing list