[gpfsug-discuss] gpfsug-discuss Digest, Vol 79, Issue 21: mmaddcallback documentation issue

Buterbaugh, Kevin L Kevin.Buterbaugh at Vanderbilt.Edu
Tue Aug 7 17:14:27 BST 2018


Hi All,

I was able to navigate down thru IBM’s website and find the GPFS 5.0.1 manuals but they contain the same typo, which Pete has correctly identified … and I have confirmed that his solution works.

Thanks...

—
Kevin Buterbaugh - Senior System Administrator
Vanderbilt University - Advanced Computing Center for Research and Education
Kevin.Buterbaugh at vanderbilt.edu<mailto:Kevin.Buterbaugh at vanderbilt.edu> - (615)875-9633


On Aug 7, 2018, at 6:35 AM, Chase, Peter <peter.chase at metoffice.gov.uk<mailto:peter.chase at metoffice.gov.uk>> wrote:

Hi Kevin,

I'm running policy migrations on Spectrum Scale 4.2.3, but I use mmapplypolicy to kick off the policy runs, not mmstartpolicy. Docs here (which I admit are not for your version of Spectrum Scale) state that mmstartpolicy is for internal GPFS use only: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fcommunity%2Fwikis%2Fhome%3Flang%3Den%23!%2Fwiki%2FGeneral%2BParallel%2BFile%2BSystem%2B(GPFS)%2Fpage%2FUsing%2BPolicies&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912985631&sdata=4PmYIvmKenhqtLRVhusaQpWHAjGcd6YFMkb5nMa%2Bwuw%3D&reserved=0

So if the above link is correct, I'd recommend switching to using mmapplypolicy, which handily comes with a man page, whereas mmstartpolicy doesn't and might have you fumbling around in the dark.

As for the issue you're experiencing with adding a callback, it looks like the mmaddcallback command is catching the --single-instance flag as an argument for it, not as a parameter for the mmstartpolicy command. After looking at the documentation you've referenced, I suspect that there's a typo/omission in the command and it should have a trailing double quote (") on the end of the parms argument list, i.e.:

mmaddcallback MIGRATION --command /usr/lpp/mmfs/bin/mmstartpolicy --event lowDiskSpace --parms "%eventName %fsName --single-instance"

I'm not sure how we go about asking IBM to correct their documentation, but expect someone in the user group will have some idea.

Regards,

Pete Chase
peter.chase at metoffice.gov.uk<mailto:peter.chase at metoffice.gov.uk>


-----Original Message-----
From: gpfsug-discuss-bounces at spectrumscale.org <gpfsug-discuss-bounces at spectrumscale.org> On Behalf Of gpfsug-discuss-request at spectrumscale.org
Sent: 06 August 2018 23:47
To: gpfsug-discuss at spectrumscale.org
Subject: gpfsug-discuss Digest, Vol 79, Issue 21

Send gpfsug-discuss mailing list submissions to
gpfsug-discuss at spectrumscale.org

To subscribe or unsubscribe via the World Wide Web, visit
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=1kVV9WbthdhHHEX32bT0C3uUJlVTAtMrV6tEFiT9%2BzY%3D&reserved=0
or, via email, send a message with subject or body 'help' to
gpfsug-discuss-request at spectrumscale.org

You can reach the person managing the list at
gpfsug-discuss-owner at spectrumscale.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of gpfsug-discuss digest..."


Today's Topics:

  1. mmaddcallback documentation issue (Buterbaugh, Kevin L)
  2. Re: mmaddcallback documentation issue (Eric Sperley)


----------------------------------------------------------------------

Message: 1
Date: Mon, 6 Aug 2018 21:42:54 +0000
From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh at Vanderbilt.Edu>
To: gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Subject: [gpfsug-discuss] mmaddcallback documentation issue
Message-ID: <735F4275-191A-4363-B98C-1EA289292037 at vanderbilt.edu>
Content-Type: text/plain; charset="utf-8"

Hi All,

So I?m _still_ reading about and testing various policies for file placement and migration on our test cluster (which is now running GPFS 5).

On page 392 of the GPFS 5.0.0 Administration Guide it says:


To add a callback, run this command. The following command is on one line:

mmaddcallback MIGRATION --command /usr/lpp/mmfs/bin/mmstartpolicy --event lowDiskSpace --parms "%eventName %fsName --single-instance


The --single-instance flag is required to avoid running multiple migrations on the file system at the same time.

However, trying to issue that command gives:

mmaddcallback: Incorrect option: --single-instance

And the man page for mmaddcallback doesn?t mention it or anything similar to it.  Now my test cluster is running GPFS 5.0.1.1, so is this something that was added in GPFS 5.0.0 and then subsequently removed?

I can?t find the GPFS 5.0.1 Administration Guide with a Google search.

Thanks?

Kevin

?
Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh at vanderbilt.edu<mailto:Kevin.Buterbaugh at vanderbilt.edu> - (615)875-9633



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fpipermail%2Fgpfsug-discuss%2Fattachments%2F20180806%2Fd4348ee3%2Fattachment-0001.html&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=QOBZgR4ywmMNbtlrwRQyWNH4nPod0lE82IlHn2QZUHQ%3D&reserved=0>

------------------------------

Message: 2
Date: Mon, 6 Aug 2018 15:46:39 -0700
From: "Eric Sperley" <esperle at us.ibm.com>
To: gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Subject: Re: [gpfsug-discuss] mmaddcallback documentation issue
Message-ID:
<OF2E0E1104.A39AA4C3-ON002582E1.007D02C1-882582E1.007D1EE0 at notes.na.collabserv.com>

Content-Type: text/plain; charset="utf-8"

See if this helps
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fen%2FSTXKQY_5.0.1%2Fcom.ibm.spectrum.scale.v5r01.doc%2Fbl1adm_mmaddcallback.htm&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=WGASrQ8SqzMdkTkNRkeAEDoaACsnDZEAJF8G5GBIxsA%3D&reserved=0




Best Regards, Eric






                                              Eric Sperley, PhD

                                              SDI Architect

    To improve is to change; to be perfect is IBM Systems
    to change often - - Winston Churchill

                                              esperle at us.ibm.com

                                              +15033088721








From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh at Vanderbilt.Edu>
To: gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Date: 08/06/2018 02:44 PM
Subject: [gpfsug-discuss] mmaddcallback documentation issue
Sent by: gpfsug-discuss-bounces at spectrumscale.org



Hi All,

So I?m _still_ reading about and testing various policies for file placement and migration on our test cluster (which is now running GPFS 5).

On page 392 of the GPFS 5.0.0 Administration Guide it says:



To add a callback, run this command. The following command is on one line:


mmaddcallback MIGRATION --command /usr/lpp/mmfs/bin/mmstartpolicy --event lowDiskSpace --parms "%eventName %fsName --single-instance



The --single-instance flag is required to avoid running multiple migrations on the file system at the same time.


However, trying to issue that command gives:

mmaddcallback: Incorrect option: --single-instance

And the man page for mmaddcallback doesn?t mention it or anything similar to it.  Now my test cluster is running GPFS 5.0.1.1, so is this something that was added in GPFS 5.0.0 and then subsequently removed?

I can?t find the GPFS 5.0.1 Administration Guide with a Google search.

Thanks?

Kevin

?
Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh at vanderbilt.edu - (615)875-9633


_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=1kVV9WbthdhHHEX32bT0C3uUJlVTAtMrV6tEFiT9%2BzY%3D&reserved=0



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fpipermail%2Fgpfsug-discuss%2Fattachments%2F20180806%2F381f9169%2Fattachment.html&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=lYDN130Vdx0P%2BRz2KGWAtQOsVZJOXlDVohV%2FzftxDng%3D&reserved=0>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1A910265.gif
Type: image/gif
Size: 481 bytes
Desc: not available
URL: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fpipermail%2Fgpfsug-discuss%2Fattachments%2F20180806%2F381f9169%2Fattachment.gif&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=GqahVKM3urZpb4Wt5qvh0Kj%2BAtr%2BQCE96BwXERK8iO8%3D&reserved=0>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fpipermail%2Fgpfsug-discuss%2Fattachments%2F20180806%2F381f9169%2Fattachment-0001.gif&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=0aw%2B3SGOIvvBAZMBV7f3b1U1QdvHTY0lyBOWyaEJSjs%3D&reserved=0>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1A526482.gif
Type: image/gif
Size: 2322 bytes
Desc: not available
URL: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fpipermail%2Fgpfsug-discuss%2Fattachments%2F20180806%2F381f9169%2Fattachment-0002.gif&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=bg7Dnk%2FuxiKJaHBmaKBStMmEbZCIld7PRSSntv4QvVs%3D&reserved=0>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fpipermail%2Fgpfsug-discuss%2Fattachments%2F20180806%2F381f9169%2Fattachment-0003.gif&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=ngY0rERvnq2mLVSIW7YtV5u%2BNtJeFwRnd34B9w%2BeMNA%3D&reserved=0>

------------------------------

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=1kVV9WbthdhHHEX32bT0C3uUJlVTAtMrV6tEFiT9%2BzY%3D&reserved=0


End of gpfsug-discuss Digest, Vol 79, Issue 21
**********************************************
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C806e69ddb2294dbe5ad008d5fc5b2e70%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636692390912995641&sdata=1kVV9WbthdhHHEX32bT0C3uUJlVTAtMrV6tEFiT9%2BzY%3D&reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180807/7d778592/attachment-0002.htm>


More information about the gpfsug-discuss mailing list