When I have the GPFS cluster down, some GPFS commands no longer work like they should, or at least they did work without CCR: # mmgetstate -aL # Which stalls for a really stupid amount of time and then spits out: get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. And trying to change tuning parameters now also barfs when GPFS is down: # [root@fpia-gpfs-jcsdr01 ~]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. # mmchconfig worker1Threads=128,prefetchThreads=128 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node fpia-gpfs-jcsdr01.grid.jumptrading.com. mmchconfig: Command failed. Examine previous error messages to determine cause. Which means I will have to start GPFS, change the parameter, shut GPFS down again, and start GPFS up again just to get the new setting. Is this really the new mode of operation for CCR enabled clusters? I searched CCR in the Concepts, Planning, and Install Guide and also the Adv. Admin Guide, with explanation. If so, then maybe I'll go back to non CCR, -Bryan ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
I understand you are having problems with your cluster, but you do NOT need to have GPFS "started" to display and/or change configuration paramters. You do need at least a majority of the nodes to be up and in communcation (e.g. can talk to each other by tcp/ip) --ccr-enable Enables the configuration server repository (CCR), which stores redundant copies of configuration data files on all quorum nodes. The advantage of CCR over the traditional primary or backup configuration server semantics is that when using CCR, all GPFS administration commands as well as file system mounts and daemon startups work normally as long as a majority of quorum nodes are accessible. Think about how this must work (I have the advantage of actually NOT knowing the details, but one can reason...) to maintain a consistent single configuration database, a majority of quorum nodes MUST agree on every bit of data in the configuration database. Even to query the database and get a correct answer, you'd have to know that a majority agree on the answer. (You could ask 1 guy, but then how would you know if he was telling you what the majority opinion is? The minority need not lie to mislead you, I don't think CCR guards against Byzantine failures... The minority guy could just be out of touch for a while...) I advise that you do some testing on a test cluster (could be virtual)... From: Bryan Banister <bbanister@jumptrading.com> To: "gpfsug main discussion list (gpfsug-discuss@spectrumscale.org)" <gpfsug-discuss@spectrumscale.org> Date: 07/27/2016 01:37 PM Subject: [gpfsug-discuss] CCR troubles Sent by: gpfsug-discuss-bounces@spectrumscale.org When I have the GPFS cluster down, some GPFS commands no longer work like they should, or at least they did work without CCR: # mmgetstate -aL # Which stalls for a really stupid amount of time and then spits out: get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. And trying to change tuning parameters now also barfs when GPFS is down: # [root@fpia-gpfs-jcsdr01 ~]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. # mmchconfig worker1Threads=128,prefetchThreads=128 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node fpia-gpfs-jcsdr01.grid.jumptrading.com. mmchconfig: Command failed. Examine previous error messages to determine cause. Which means I will have to start GPFS, change the parameter, shut GPFS down again, and start GPFS up again just to get the new setting. Is this really the new mode of operation for CCR enabled clusters? I searched CCR in the Concepts, Planning, and Install Guide and also the Adv. Admin Guide, with explanation. If so, then maybe I’ll go back to non CCR, -Bryan Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Marc, I do understand the principal you describe. The quorum nodes are accessible over TCP/IP but GPFS happens to be down. I think that CCR should would work regardless of whether GPFS is up or down, so that you can change the configuration on a down cluster. I could even imagine a scenario where a config parameter was set incorrectly and prevents GPFS from starting at all. If you have to have GPFS up to make config changes because of CCR then how can you fix this issue? Thanks for the response! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Wednesday, July 27, 2016 1:03 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles I understand you are having problems with your cluster, but you do NOT need to have GPFS "started" to display and/or change configuration paramters. You do need at least a majority of the nodes to be up and in communcation (e.g. can talk to each other by tcp/ip) --ccr-enable Enables the configuration server repository (CCR), which stores redundant copies of configuration data files on all quorum nodes. The advantage of CCR over the traditional primary or backup configuration server semantics is that when using CCR, all GPFS administration commands as well as file system mounts and daemon startups work normally as long as a majority of quorum nodes are accessible. Think about how this must work (I have the advantage of actually NOT knowing the details, but one can reason...) to maintain a consistent single configuration database, a majority of quorum nodes MUST agree on every bit of data in the configuration database. Even to query the database and get a correct answer, you'd have to know that a majority agree on the answer. (You could ask 1 guy, but then how would you know if he was telling you what the majority opinion is? The minority need not lie to mislead you, I don't think CCR guards against Byzantine failures... The minority guy could just be out of touch for a while...) I advise that you do some testing on a test cluster (could be virtual)... From: Bryan Banister <bbanister@jumptrading.com<mailto:bbanister@jumptrading.com>> To: "gpfsug main discussion list (gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>)" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 07/27/2016 01:37 PM Subject: [gpfsug-discuss] CCR troubles Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ When I have the GPFS cluster down, some GPFS commands no longer work like they should, or at least they did work without CCR: # mmgetstate -aL # Which stalls for a really stupid amount of time and then spits out: get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. And trying to change tuning parameters now also barfs when GPFS is down: # [root@fpia-gpfs-jcsdr01 ~]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. # mmchconfig worker1Threads=128,prefetchThreads=128 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node fpia-gpfs-jcsdr01.grid.jumptrading.com. mmchconfig: Command failed. Examine previous error messages to determine cause. Which means I will have to start GPFS, change the parameter, shut GPFS down again, and start GPFS up again just to get the new setting. Is this really the new mode of operation for CCR enabled clusters? I searched CCR in the Concepts, Planning, and Install Guide and also the Adv. Admin Guide, with explanation. If so, then maybe I’ll go back to non CCR, -Bryan ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product._______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
mmchcluster has an option: ‐‐ccr‐disable Reverts to the traditional primary or backup configuration server semantics and destroys the CCR environment. All nodes must be shut down before disabling CCR. -Gordon On Jul 27, 2016, at 5:29 PM, Bryan Banister <bbanister@jumptrading.com<mailto:bbanister@jumptrading.com>> wrote: Hi Marc, I do understand the principal you describe. The quorum nodes are accessible over TCP/IP but GPFS happens to be down. I think that CCR should would work regardless of whether GPFS is up or down, so that you can change the configuration on a down cluster. I could even imagine a scenario where a config parameter was set incorrectly and prevents GPFS from starting at all. If you have to have GPFS up to make config changes because of CCR then how can you fix this issue? Thanks for the response! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Wednesday, July 27, 2016 1:03 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles I understand you are having problems with your cluster, but you do NOT need to have GPFS "started" to display and/or change configuration paramters. You do need at least a majority of the nodes to be up and in communcation (e.g. can talk to each other by tcp/ip) --ccr-enable Enables the configuration server repository (CCR), which stores redundant copies of configuration data files on all quorum nodes. The advantage of CCR over the traditional primary or backup configuration server semantics is that when using CCR, all GPFS administration commands as well as file system mounts and daemon startups work normally as long as a majority of quorum nodes are accessible. Think about how this must work (I have the advantage of actually NOT knowing the details, but one can reason...) to maintain a consistent single configuration database, a majority of quorum nodes MUST agree on every bit of data in the configuration database. Even to query the database and get a correct answer, you'd have to know that a majority agree on the answer. (You could ask 1 guy, but then how would you know if he was telling you what the majority opinion is? The minority need not lie to mislead you, I don't think CCR guards against Byzantine failures... The minority guy could just be out of touch for a while...) I advise that you do some testing on a test cluster (could be virtual)... From: Bryan Banister <bbanister@jumptrading.com<mailto:bbanister@jumptrading.com>> To: "gpfsug main discussion list (gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>)" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 07/27/2016 01:37 PM Subject: [gpfsug-discuss] CCR troubles Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ When I have the GPFS cluster down, some GPFS commands no longer work like they should, or at least they did work without CCR: # mmgetstate -aL # Which stalls for a really stupid amount of time and then spits out: get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. And trying to change tuning parameters now also barfs when GPFS is down: # [root@fpia-gpfs-jcsdr01 ~]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. # mmchconfig worker1Threads=128,prefetchThreads=128 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node fpia-gpfs-jcsdr01.grid.jumptrading.com<http://fpia-gpfs-jcsdr01.grid.jumptrading.com/>. mmchconfig: Command failed. Examine previous error messages to determine cause. Which means I will have to start GPFS, change the parameter, shut GPFS down again, and start GPFS up again just to get the new setting. Is this really the new mode of operation for CCR enabled clusters? I searched CCR in the Concepts, Planning, and Install Guide and also the Adv. Admin Guide, with explanation. If so, then maybe I’ll go back to non CCR, -Bryan ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product._______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Right, I know that I can disable CCR, and I’m asking if this seemingly broken behavior of GPFS commands when the cluster is down was the expected mode of operation with CCR enabled. Sounds like it from the responses thus far. -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of McPheeters, Gordon Sent: Wednesday, July 27, 2016 5:35 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles mmchcluster has an option: ‐‐ccr‐disable Reverts to the traditional primary or backup configuration server semantics and destroys the CCR environment. All nodes must be shut down before disabling CCR. -Gordon On Jul 27, 2016, at 5:29 PM, Bryan Banister <bbanister@jumptrading.com<mailto:bbanister@jumptrading.com>> wrote: Hi Marc, I do understand the principal you describe. The quorum nodes are accessible over TCP/IP but GPFS happens to be down. I think that CCR should would work regardless of whether GPFS is up or down, so that you can change the configuration on a down cluster. I could even imagine a scenario where a config parameter was set incorrectly and prevents GPFS from starting at all. If you have to have GPFS up to make config changes because of CCR then how can you fix this issue? Thanks for the response! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Wednesday, July 27, 2016 1:03 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles I understand you are having problems with your cluster, but you do NOT need to have GPFS "started" to display and/or change configuration paramters. You do need at least a majority of the nodes to be up and in communcation (e.g. can talk to each other by tcp/ip) --ccr-enable Enables the configuration server repository (CCR), which stores redundant copies of configuration data files on all quorum nodes. The advantage of CCR over the traditional primary or backup configuration server semantics is that when using CCR, all GPFS administration commands as well as file system mounts and daemon startups work normally as long as a majority of quorum nodes are accessible. Think about how this must work (I have the advantage of actually NOT knowing the details, but one can reason...) to maintain a consistent single configuration database, a majority of quorum nodes MUST agree on every bit of data in the configuration database. Even to query the database and get a correct answer, you'd have to know that a majority agree on the answer. (You could ask 1 guy, but then how would you know if he was telling you what the majority opinion is? The minority need not lie to mislead you, I don't think CCR guards against Byzantine failures... The minority guy could just be out of touch for a while...) I advise that you do some testing on a test cluster (could be virtual)... From: Bryan Banister <bbanister@jumptrading.com<mailto:bbanister@jumptrading.com>> To: "gpfsug main discussion list (gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>)" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 07/27/2016 01:37 PM Subject: [gpfsug-discuss] CCR troubles Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ When I have the GPFS cluster down, some GPFS commands no longer work like they should, or at least they did work without CCR: # mmgetstate -aL # Which stalls for a really stupid amount of time and then spits out: get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. And trying to change tuning parameters now also barfs when GPFS is down: # [root@fpia-gpfs-jcsdr01 ~]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. # mmchconfig worker1Threads=128,prefetchThreads=128 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node fpia-gpfs-jcsdr01.grid.jumptrading.com<http://fpia-gpfs-jcsdr01.grid.jumptrading.com/>. mmchconfig: Command failed. Examine previous error messages to determine cause. Which means I will have to start GPFS, change the parameter, shut GPFS down again, and start GPFS up again just to get the new setting. Is this really the new mode of operation for CCR enabled clusters? I searched CCR in the Concepts, Planning, and Install Guide and also the Adv. Admin Guide, with explanation. If so, then maybe I’ll go back to non CCR, -Bryan ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product._______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
Based on experiments on my test cluster, I can assure you that you can list and change GPFS configuration parameters with CCR enabled while GPFS is down. I understand you are having a problem with your cluster, but you are incorrectly disparaging the CCR. In fact you can mmshutdown -a AND kill all GPFS related processes, including mmsdrserv and mmcrmonitor and then issue commands like: mmlscluster, mmlsconfig, mmchconfig Those will work correctly and by-the-way re-start mmsdrserv and mmcrmonitor... (Use command like `ps auxw | grep mm` to find the relevenat processes). But that will not start the main GPFS file manager process mmfsd. GPFS "proper" remains down... For the following commands Linux was "up" on all nodes, but GPFS was shutdown. [root@n2 gpfs-git]# mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 down 4 n5 down 6 n3 down However if a majority of the quorum nodes can not be obtained, you WILL see a sequence of messages like this, after a noticeable "timeout": (For the following test I had three quorum nodes and did a Linux shutdown on two of them...) [root@n2 gpfs-git]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmchconfig worker1Threads=1022 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node n2.frozen. mmchconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmgetstate -a get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. HMMMM.... notice mmgetstate needs a quorum even to "know" what nodes it should check! Then re-starting Linux... So I have two of three quorum nodes active, but GPFS still down... ## From n2, login to node n3 that I just rebooted... [root@n2 gpfs-git]# ssh n3 Last login: Thu Jul 28 09:50:53 2016 from n2.frozen ## See if any mm processes are running? ... NOPE! [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3834 0.0 0.0 112640 972 pts/0 S+ 10:12 0:00 grep --color=auto mm ## Check the state... notice n4 is powered off... [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Examine the cluster configuration [root@n3 ~]# mmlscluster mmlscluster GPFS cluster information ======================== GPFS cluster name: madagascar.frozen GPFS cluster id: 7399668614468035547 GPFS UID domain: madagascar.frozen Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR GPFS cluster configuration servers: ----------------------------------- Primary server: n2.frozen (not in use) Secondary server: n4.frozen (not in use) Node Daemon node name IP address Admin node name Designation ------------------------------------------------------------------- 1 n2.frozen 172.20.0.21 n2.frozen quorum-manager-perfmon 3 n4.frozen 172.20.0.23 n4.frozen quorum-manager-perfmon 4 n5.frozen 172.20.0.24 n5.frozen perfmon 6 n3.frozen 172.20.0.22 n3.frozen quorum-manager-perfmon ## notice that mmccrmonitor and mmsdrserv are running but not mmfsd [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3882 0.0 0.0 114376 1720 pts/0 S 10:13 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3954 0.0 0.0 491244 13040 ? Ssl 10:13 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 128 yes root 4339 0.0 0.0 114376 796 pts/0 S 10:15 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 4345 0.0 0.0 112640 972 pts/0 S+ 10:16 0:00 grep --color=auto mm ## Now I can mmchconfig ... while GPFS remains down. [root@n3 ~]# mmchconfig worker1Threads=1022 mmchconfig worker1Threads=1022 mmchconfig: Command successfully completed mmchconfig: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. [root@n3 ~]# Thu Jul 28 10:18:16 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation started Thu Jul 28 10:18:21 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation completed; mmdsh rc=0 [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Quorum node n4 remains unreachable... But n2 and n3 are running Linux. [root@n3 ~]# ping -c 1 n4 ping -c 1 n4 PING n4.frozen (172.20.0.23) 56(84) bytes of data.
From n3.frozen (172.20.0.22) icmp_seq=1 Destination Host Unreachable
--- n4.frozen ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms [root@n3 ~]# exit exit logout Connection to n3 closed. [root@n2 gpfs-git]# ps auwx | grep mm root 3264 0.0 0.0 114376 812 pts/1 S 10:21 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3271 0.0 0.0 112640 980 pts/1 S+ 10:21 0:00 grep --color=auto mm root 31820 0.0 0.0 114376 1728 pts/1 S 09:42 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 32058 0.0 0.0 493264 12000 ? Ssl 09:42 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 32263 0.0 0.0 1700732 17600 ? Sl 09:42 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py [root@n2 gpfs-git]#
I now see that these mmccrmonitor and mmsdrserv daemons are required for the CCR operations to work. This is just not clear in the error output. Even the GPFS 4.2 Problem Determination Guide doesn't have anything explaining the "Not enough CCR quorum nodes available" or "Unexpected error from ccr fget mmsdrfs" error messages. Thus there is no clear direction on how to fix this issue from the command output, the man pages, nor the Admin Guides. [root@fpia-gpfs-jcsdr01 ~]# man -E ascii mmccr No manual entry for mmccr There isn't a help for mmccr either, but at least it does print some usage info: [root@fpia-gpfs-jcsdr01 ~]# mmccr -h Unknown subcommand: '-h'Usage: mmccr subcommand common-options subcommand-options... Subcommands: Setup and Initialization: [snip] I'm still not sure how to start these mmccrmonitor and mmsdrserv daemons without starting GPFS... could you tell me how it would be possible? Thanks for sharing details about how this all works Marc, I do appreciate your response! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Thursday, July 28, 2016 12:25 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles - CCR and mmXXconfig commands fine with mmshutdown Based on experiments on my test cluster, I can assure you that you can list and change GPFS configuration parameters with CCR enabled while GPFS is down. I understand you are having a problem with your cluster, but you are incorrectly disparaging the CCR. In fact you can mmshutdown -a AND kill all GPFS related processes, including mmsdrserv and mmcrmonitor and then issue commands like: mmlscluster, mmlsconfig, mmchconfig Those will work correctly and by-the-way re-start mmsdrserv and mmcrmonitor... (Use command like `ps auxw | grep mm` to find the relevenat processes). But that will not start the main GPFS file manager process mmfsd. GPFS "proper" remains down... For the following commands Linux was "up" on all nodes, but GPFS was shutdown. [root@n2 gpfs-git]# mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 down 4 n5 down 6 n3 down However if a majority of the quorum nodes can not be obtained, you WILL see a sequence of messages like this, after a noticeable "timeout": (For the following test I had three quorum nodes and did a Linux shutdown on two of them...) [root@n2 gpfs-git]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmchconfig worker1Threads=1022 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node n2.frozen. mmchconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmgetstate -a get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. HMMMM.... notice mmgetstate needs a quorum even to "know" what nodes it should check! Then re-starting Linux... So I have two of three quorum nodes active, but GPFS still down... ## From n2, login to node n3 that I just rebooted... [root@n2 gpfs-git]# ssh n3 Last login: Thu Jul 28 09:50:53 2016 from n2.frozen ## See if any mm processes are running? ... NOPE! [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3834 0.0 0.0 112640 972 pts/0 S+ 10:12 0:00 grep --color=auto mm ## Check the state... notice n4 is powered off... [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Examine the cluster configuration [root@n3 ~]# mmlscluster mmlscluster GPFS cluster information ======================== GPFS cluster name: madagascar.frozen GPFS cluster id: 7399668614468035547 GPFS UID domain: madagascar.frozen Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR GPFS cluster configuration servers: ----------------------------------- Primary server: n2.frozen (not in use) Secondary server: n4.frozen (not in use) Node Daemon node name IP address Admin node name Designation ------------------------------------------------------------------- 1 n2.frozen 172.20.0.21 n2.frozen quorum-manager-perfmon 3 n4.frozen 172.20.0.23 n4.frozen quorum-manager-perfmon 4 n5.frozen 172.20.0.24 n5.frozen perfmon 6 n3.frozen 172.20.0.22 n3.frozen quorum-manager-perfmon ## notice that mmccrmonitor and mmsdrserv are running but not mmfsd [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3882 0.0 0.0 114376 1720 pts/0 S 10:13 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3954 0.0 0.0 491244 13040 ? Ssl 10:13 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 128 yes root 4339 0.0 0.0 114376 796 pts/0 S 10:15 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 4345 0.0 0.0 112640 972 pts/0 S+ 10:16 0:00 grep --color=auto mm ## Now I can mmchconfig ... while GPFS remains down. [root@n3 ~]# mmchconfig worker1Threads=1022 mmchconfig worker1Threads=1022 mmchconfig: Command successfully completed mmchconfig: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. [root@n3 ~]# Thu Jul 28 10:18:16 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation started Thu Jul 28 10:18:21 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation completed; mmdsh rc=0 [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Quorum node n4 remains unreachable... But n2 and n3 are running Linux. [root@n3 ~]# ping -c 1 n4 ping -c 1 n4 PING n4.frozen (172.20.0.23) 56(84) bytes of data.
From n3.frozen (172.20.0.22) icmp_seq=1 Destination Host Unreachable
--- n4.frozen ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms [root@n3 ~]# exit exit logout Connection to n3 closed. [root@n2 gpfs-git]# ps auwx | grep mm root 3264 0.0 0.0 114376 812 pts/1 S 10:21 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3271 0.0 0.0 112640 980 pts/1 S+ 10:21 0:00 grep --color=auto mm root 31820 0.0 0.0 114376 1728 pts/1 S 09:42 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 32058 0.0 0.0 493264 12000 ? Ssl 09:42 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 32263 0.0 0.0 1700732 17600 ? Sl 09:42 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py [root@n2 gpfs-git]# ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
Hi Marc, So this issue is actually caused by our Systemd setup. We have fully converted over to Systemd to manage the dependency chain needed for GPFS to start properly and also our scheduling system after that. The issue is that when we shutdown GPFS with Systemd this apparently is causing the mmsdrserv and mmccrmonitor processes to also be killed/term'd, probably because these are started in the same CGROUP as GPFS and Systemd kills all processes in this CGROUP when GPFS is stopped. Not sure how to proceed with safeguarding these daemons from Systemd... and real Systemd support in GPFS is basically non-existent at this point. So my problem is actually a Systemd problem, not a CCR problem! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Bryan Banister Sent: Thursday, July 28, 2016 12:58 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles - CCR and mmXXconfig commands fine with mmshutdown I now see that these mmccrmonitor and mmsdrserv daemons are required for the CCR operations to work. This is just not clear in the error output. Even the GPFS 4.2 Problem Determination Guide doesn't have anything explaining the "Not enough CCR quorum nodes available" or "Unexpected error from ccr fget mmsdrfs" error messages. Thus there is no clear direction on how to fix this issue from the command output, the man pages, nor the Admin Guides. [root@fpia-gpfs-jcsdr01 ~]# man -E ascii mmccr No manual entry for mmccr There isn't a help for mmccr either, but at least it does print some usage info: [root@fpia-gpfs-jcsdr01 ~]# mmccr -h Unknown subcommand: '-h'Usage: mmccr subcommand common-options subcommand-options... Subcommands: Setup and Initialization: [snip] I'm still not sure how to start these mmccrmonitor and mmsdrserv daemons without starting GPFS... could you tell me how it would be possible? Thanks for sharing details about how this all works Marc, I do appreciate your response! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Thursday, July 28, 2016 12:25 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles - CCR and mmXXconfig commands fine with mmshutdown Based on experiments on my test cluster, I can assure you that you can list and change GPFS configuration parameters with CCR enabled while GPFS is down. I understand you are having a problem with your cluster, but you are incorrectly disparaging the CCR. In fact you can mmshutdown -a AND kill all GPFS related processes, including mmsdrserv and mmcrmonitor and then issue commands like: mmlscluster, mmlsconfig, mmchconfig Those will work correctly and by-the-way re-start mmsdrserv and mmcrmonitor... (Use command like `ps auxw | grep mm` to find the relevenat processes). But that will not start the main GPFS file manager process mmfsd. GPFS "proper" remains down... For the following commands Linux was "up" on all nodes, but GPFS was shutdown. [root@n2 gpfs-git]# mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 down 4 n5 down 6 n3 down However if a majority of the quorum nodes can not be obtained, you WILL see a sequence of messages like this, after a noticeable "timeout": (For the following test I had three quorum nodes and did a Linux shutdown on two of them...) [root@n2 gpfs-git]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmchconfig worker1Threads=1022 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node n2.frozen. mmchconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmgetstate -a get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. HMMMM.... notice mmgetstate needs a quorum even to "know" what nodes it should check! Then re-starting Linux... So I have two of three quorum nodes active, but GPFS still down... ## From n2, login to node n3 that I just rebooted... [root@n2 gpfs-git]# ssh n3 Last login: Thu Jul 28 09:50:53 2016 from n2.frozen ## See if any mm processes are running? ... NOPE! [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3834 0.0 0.0 112640 972 pts/0 S+ 10:12 0:00 grep --color=auto mm ## Check the state... notice n4 is powered off... [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Examine the cluster configuration [root@n3 ~]# mmlscluster mmlscluster GPFS cluster information ======================== GPFS cluster name: madagascar.frozen GPFS cluster id: 7399668614468035547 GPFS UID domain: madagascar.frozen Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR GPFS cluster configuration servers: ----------------------------------- Primary server: n2.frozen (not in use) Secondary server: n4.frozen (not in use) Node Daemon node name IP address Admin node name Designation ------------------------------------------------------------------- 1 n2.frozen 172.20.0.21 n2.frozen quorum-manager-perfmon 3 n4.frozen 172.20.0.23 n4.frozen quorum-manager-perfmon 4 n5.frozen 172.20.0.24 n5.frozen perfmon 6 n3.frozen 172.20.0.22 n3.frozen quorum-manager-perfmon ## notice that mmccrmonitor and mmsdrserv are running but not mmfsd [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3882 0.0 0.0 114376 1720 pts/0 S 10:13 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3954 0.0 0.0 491244 13040 ? Ssl 10:13 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 128 yes root 4339 0.0 0.0 114376 796 pts/0 S 10:15 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 4345 0.0 0.0 112640 972 pts/0 S+ 10:16 0:00 grep --color=auto mm ## Now I can mmchconfig ... while GPFS remains down. [root@n3 ~]# mmchconfig worker1Threads=1022 mmchconfig worker1Threads=1022 mmchconfig: Command successfully completed mmchconfig: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. [root@n3 ~]# Thu Jul 28 10:18:16 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation started Thu Jul 28 10:18:21 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation completed; mmdsh rc=0 [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Quorum node n4 remains unreachable... But n2 and n3 are running Linux. [root@n3 ~]# ping -c 1 n4 ping -c 1 n4 PING n4.frozen (172.20.0.23) 56(84) bytes of data.
From n3.frozen (172.20.0.22) icmp_seq=1 Destination Host Unreachable
--- n4.frozen ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms [root@n3 ~]# exit exit logout Connection to n3 closed. [root@n2 gpfs-git]# ps auwx | grep mm root 3264 0.0 0.0 114376 812 pts/1 S 10:21 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3271 0.0 0.0 112640 980 pts/1 S+ 10:21 0:00 grep --color=auto mm root 31820 0.0 0.0 114376 1728 pts/1 S 09:42 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 32058 0.0 0.0 493264 12000 ? Ssl 09:42 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 32263 0.0 0.0 1700732 17600 ? Sl 09:42 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py [root@n2 gpfs-git]# ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
My experiments show that any of the mmXXX commands that require ccr will start ccr and sdrserv. So unless you have a daeamon actively seeking and killing ccr, I don't see why systemd is a problem.
Yeah, not sure why yet but when I shutdown the cluster using our Systemd configuration this kills the daemons, but mmshutdown obviously doesn't. I'll dig into my problems with that. Cheers, -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Thursday, July 28, 2016 1:40 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles - CCR vs systemd My experiments show that any of the mmXXX commands that require ccr will start ccr and sdrserv. So unless you have a daeamon actively seeking and killing ccr, I don't see why systemd is a problem. ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
Allow me to restate and demonstrate: Even if systemd or any explicit kill signals destroy any/all running mmcr* and mmsdr* processes, simply running mmlsconfig will fire up new mmcr* and mmsdr* processes. For example: ## I used kill -9 to kill all mmccr, mmsdr, lxtrace, ... processes [root@n2 gpfs-git]# ps auwx | grep mm root 9891 0.0 0.0 112640 980 pts/1 S+ 12:57 0:00 grep --color=auto mm [root@n2 gpfs-git]# mmlsconfig Configuration data for cluster madagascar.frozen: ------------------------------------------------- clusterName madagascar.frozen ... worker1Threads 1022 adminMode central File systems in cluster madagascar.frozen: ------------------------------------------ /dev/mak /dev/x1 /dev/yy /dev/zz ## mmlsconfig "needs" ccr and sdrserv, so if it doesn't see them, it restarts them! [root@n2 gpfs-git]# ps auwx | grep mm root 9929 0.0 0.0 114376 1696 pts/1 S 12:58 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 10110 0.0 0.0 20536 128 ? Ss 12:58 0:00 /usr/lpp/mmfs/bin/lxtrace-3.10.0-123.el7.x86_64 on /tmp/mmfs/lxtrac root 10125 0.0 0.0 493264 11064 ? Ssl 12:58 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 10358 0.0 0.0 1700488 17636 ? Sl 12:58 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py root 10440 0.0 0.0 114376 804 pts/1 S 12:59 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 10442 0.0 0.0 112640 976 pts/1 S+ 12:59 0:00 grep --color=auto mm
Hi Marc, I've seen systemd be overly helpful (read: not at all helpful) when it observes state changing outside of its control. There was a bug I encountered with GPFS (although the real issue may have been systemd, but the fix was put into GPFS) by which GPFS filesystems would get unmounted a split second after they were mounted, by systemd. The fs would mount but systemd decided the /dev/$fs device wasn't "ready" so it helpfully unmounted the filesystem. I don't know much about systemd (avoiding it) but based on my experience with it I could certainly see a case where systemd may actively kill the sdrserv process shortly after it's started by the mm* commands if systemd doesn't expect it to be running. I'd be curious to see the output of /var/adm/ras/mmsdrserv.log from the manager nodes to see if sdrserv is indeed starting but getting harpooned by systemd. -Aaron On 7/28/16 4:16 PM, Marc A Kaplan wrote:
Allow me to restate and demonstrate:
Even if systemd or any explicit kill signals destroy any/all running mmcr* and mmsdr* processes,
simply running mmlsconfig will fire up new mmcr* and mmsdr* processes. For example:
## I used kill -9 to kill all mmccr, mmsdr, lxtrace, ... processes
[root@n2 gpfs-git]# ps auwx | grep mm root 9891 0.0 0.0 112640 980 pts/1 S+ 12:57 0:00 grep --color=auto mm
[root@n2 gpfs-git]# mmlsconfig Configuration data for cluster madagascar.frozen: ------------------------------------------------- clusterName madagascar.frozen ... worker1Threads 1022 adminMode central
File systems in cluster madagascar.frozen: ------------------------------------------ /dev/mak /dev/x1 /dev/yy /dev/zz
## mmlsconfig "needs" ccr and sdrserv, so if it doesn't see them, it restarts them!
[root@n2 gpfs-git]# ps auwx | grep mm root 9929 0.0 0.0 114376 1696 pts/1 S 12:58 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 10110 0.0 0.0 20536 128 ? Ss 12:58 0:00 /usr/lpp/mmfs/bin/lxtrace-3.10.0-123.el7.x86_64 on /tmp/mmfs/lxtrac root 10125 0.0 0.0 493264 11064 ? Ssl 12:58 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 10358 0.0 0.0 1700488 17636 ? Sl 12:58 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py root 10440 0.0 0.0 114376 804 pts/1 S 12:59 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 10442 0.0 0.0 112640 976 pts/1 S+ 12:59 0:00 grep --color=auto mm
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
I think the idea is that you should not need to know the details of how ccr and sdrserv are implemented nor how they work. At this moment, I don't! Literally, I just installed GPFS and defined my system with mmcrcluster and so forth and "it just works". As I wrote, just running mmlscluster or mmlsconfig or similar configuration create, list, change, delete commands should start up ccr and sdrserv under the covers. Okay, now "I hear you" -- it ain't working for you today. Presumably it did a while ago? Let's think about that... Troubleshooting 0,1,2 in order of suspicion... 0. Check that you can ping and ssh from each quorum node to every other quorum node. Q*(Q-1) tests 1. Check that you have plenty of free space in /var on each quorum node. Hmmm... we're not talking huge, but see if /var/mmfs/tmp is filled with junk.... Before and After clearing most of that out I had and have: [root@bog-wifi ~]# du -shk /var/mmfs 84532 /var/mmfs ## clean all big and old files out of /var/mmfs/tmp [root@bog-wifi ~]# du -shk /var/mmfs 9004 /var/mmfs Because we know that /var/mmfs is where GPFS store configuration "stuff" - 2. Check that we have GPFS software correctly installed on each quorum node: rpm -qa gpfs.* | xargs rpm --verify From: Bryan Banister <bbanister@jumptrading.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 07/28/2016 01:58 PM Subject: Re: [gpfsug-discuss] CCR troubles - CCR and mmXXconfig commands fine with mmshutdown Sent by: gpfsug-discuss-bounces@spectrumscale.org I now see that these mmccrmonitor and mmsdrserv daemons are required for the CCR operations to work. This is just not clear in the error output. Even the GPFS 4.2 Problem Determination Guide doesn’t have anything explaining the “Not enough CCR quorum nodes available” or “Unexpected error from ccr fget mmsdrfs” error messages. Thus there is no clear direction on how to fix this issue from the command output, the man pages, nor the Admin Guides. [root@fpia-gpfs-jcsdr01 ~]# man -E ascii mmccr No manual entry for mmccr There isn’t a help for mmccr either, but at least it does print some usage info: [root@fpia-gpfs-jcsdr01 ~]# mmccr -h Unknown subcommand: '-h'Usage: mmccr subcommand common-options subcommand-options... Subcommands: Setup and Initialization: [snip] I’m still not sure how to start these mmccrmonitor and mmsdrserv daemons without starting GPFS… could you tell me how it would be possible? Thanks for sharing details about how this all works Marc, I do appreciate your response! -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [ mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Thursday, July 28, 2016 12:25 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] CCR troubles - CCR and mmXXconfig commands fine with mmshutdown Based on experiments on my test cluster, I can assure you that you can list and change GPFS configuration parameters with CCR enabled while GPFS is down. I understand you are having a problem with your cluster, but you are incorrectly disparaging the CCR. In fact you can mmshutdown -a AND kill all GPFS related processes, including mmsdrserv and mmcrmonitor and then issue commands like: mmlscluster, mmlsconfig, mmchconfig Those will work correctly and by-the-way re-start mmsdrserv and mmcrmonitor... (Use command like `ps auxw | grep mm` to find the relevenat processes). But that will not start the main GPFS file manager process mmfsd. GPFS "proper" remains down... For the following commands Linux was "up" on all nodes, but GPFS was shutdown. [root@n2 gpfs-git]# mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 down 4 n5 down 6 n3 down However if a majority of the quorum nodes can not be obtained, you WILL see a sequence of messages like this, after a noticeable "timeout": (For the following test I had three quorum nodes and did a Linux shutdown on two of them...) [root@n2 gpfs-git]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmchconfig worker1Threads=1022 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node n2.frozen. mmchconfig: Command failed. Examine previous error messages to determine cause. [root@n2 gpfs-git]# mmgetstate -a get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause. HMMMM.... notice mmgetstate needs a quorum even to "know" what nodes it should check! Then re-starting Linux... So I have two of three quorum nodes active, but GPFS still down... ## From n2, login to node n3 that I just rebooted... [root@n2 gpfs-git]# ssh n3 Last login: Thu Jul 28 09:50:53 2016 from n2.frozen ## See if any mm processes are running? ... NOPE! [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3834 0.0 0.0 112640 972 pts/0 S+ 10:12 0:00 grep --color=auto mm ## Check the state... notice n4 is powered off... [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Examine the cluster configuration [root@n3 ~]# mmlscluster mmlscluster GPFS cluster information ======================== GPFS cluster name: madagascar.frozen GPFS cluster id: 7399668614468035547 GPFS UID domain: madagascar.frozen Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR GPFS cluster configuration servers: ----------------------------------- Primary server: n2.frozen (not in use) Secondary server: n4.frozen (not in use) Node Daemon node name IP address Admin node name Designation ------------------------------------------------------------------- 1 n2.frozen 172.20.0.21 n2.frozen quorum-manager-perfmon 3 n4.frozen 172.20.0.23 n4.frozen quorum-manager-perfmon 4 n5.frozen 172.20.0.24 n5.frozen perfmon 6 n3.frozen 172.20.0.22 n3.frozen quorum-manager-perfmon ## notice that mmccrmonitor and mmsdrserv are running but not mmfsd [root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3882 0.0 0.0 114376 1720 pts/0 S 10:13 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3954 0.0 0.0 491244 13040 ? Ssl 10:13 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 128 yes root 4339 0.0 0.0 114376 796 pts/0 S 10:15 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 4345 0.0 0.0 112640 972 pts/0 S+ 10:16 0:00 grep --color=auto mm ## Now I can mmchconfig ... while GPFS remains down. [root@n3 ~]# mmchconfig worker1Threads=1022 mmchconfig worker1Threads=1022 mmchconfig: Command successfully completed mmchconfig: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. [root@n3 ~]# Thu Jul 28 10:18:16 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation started Thu Jul 28 10:18:21 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation completed; mmdsh rc=0 [root@n3 ~]# mmgetstate -a mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down ## Quorum node n4 remains unreachable... But n2 and n3 are running Linux. [root@n3 ~]# ping -c 1 n4 ping -c 1 n4 PING n4.frozen (172.20.0.23) 56(84) bytes of data. From n3.frozen (172.20.0.22) icmp_seq=1 Destination Host Unreachable --- n4.frozen ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms [root@n3 ~]# exit exit logout Connection to n3 closed. [root@n2 gpfs-git]# ps auwx | grep mm root 3264 0.0 0.0 114376 812 pts/1 S 10:21 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3271 0.0 0.0 112640 980 pts/1 S+ 10:21 0:00 grep --color=auto mm root 31820 0.0 0.0 114376 1728 pts/1 S 09:42 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 32058 0.0 0.0 493264 12000 ? Ssl 09:42 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 32263 0.0 0.0 1700732 17600 ? Sl 09:42 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py [root@n2 gpfs-git]# Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
they should get started as soon as you shutdown via mmshutdown could you check a node where the processes are NOT started and simply run mmshutdown on this node to see if they get started ? On Thu, Jul 28, 2016 at 10:57 AM, Bryan Banister <bbanister@jumptrading.com> wrote:
I now see that these mmccrmonitor and mmsdrserv daemons are required for the CCR operations to work. This is just not clear in the error output. Even the GPFS 4.2 Problem Determination Guide doesn’t have anything explaining the “Not enough CCR quorum nodes available” or “Unexpected error from ccr fget mmsdrfs” error messages. Thus there is no clear direction on how to fix this issue from the command output, the man pages, nor the Admin Guides.
[root@fpia-gpfs-jcsdr01 ~]# man -E ascii mmccr
No manual entry for mmccr
There isn’t a help for mmccr either, but at least it does print some usage info:
[root@fpia-gpfs-jcsdr01 ~]# mmccr -h
Unknown subcommand: '-h'Usage: mmccr subcommand common-options subcommand-options...
Subcommands:
Setup and Initialization:
[snip]
I’m still not sure how to start these mmccrmonitor and mmsdrserv daemons without starting GPFS… could you tell me how it would be possible?
Thanks for sharing details about how this all works Marc, I do appreciate your response!
-Bryan
*From:* gpfsug-discuss-bounces@spectrumscale.org [mailto: gpfsug-discuss-bounces@spectrumscale.org] *On Behalf Of *Marc A Kaplan *Sent:* Thursday, July 28, 2016 12:25 PM *To:* gpfsug main discussion list *Subject:* Re: [gpfsug-discuss] CCR troubles - CCR and mmXXconfig commands fine with mmshutdown
Based on experiments on my test cluster, I can assure you that you can list and change GPFS configuration parameters with CCR enabled while GPFS is down.
I understand you are having a problem with your cluster, but you are incorrectly disparaging the CCR.
In fact you can mmshutdown -a AND kill all GPFS related processes, including mmsdrserv and mmcrmonitor and then issue commands like:
mmlscluster, mmlsconfig, mmchconfig
Those will work correctly and by-the-way re-start mmsdrserv and mmcrmonitor... (Use command like `ps auxw | grep mm` to find the relevenat processes).
But that will not start the main GPFS file manager process mmfsd. GPFS "proper" remains down...
For the following commands Linux was "up" on all nodes, but GPFS was shutdown. [root@n2 gpfs-git]# mmgetstate -a
Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 down 4 n5 down 6 n3 down
However if a majority of the quorum nodes can not be obtained, you WILL see a sequence of messages like this, after a noticeable "timeout": (For the following test I had three quorum nodes and did a Linux shutdown on two of them...)
[root@n2 gpfs-git]# mmlsconfig get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmlsconfig: Command failed. Examine previous error messages to determine cause.
[root@n2 gpfs-git]# mmchconfig worker1Threads=1022 mmchconfig: Unable to obtain the GPFS configuration file lock. mmchconfig: GPFS was unable to obtain a lock from node n2.frozen. mmchconfig: Command failed. Examine previous error messages to determine cause.
[root@n2 gpfs-git]# mmgetstate -a get file failed: Not enough CCR quorum nodes available (err 809) gpfsClusterInit: Unexpected error from ccr fget mmsdrfs. Return code: 158 mmgetstate: Command failed. Examine previous error messages to determine cause.
HMMMM.... notice mmgetstate needs a quorum even to "know" what nodes it should check!
Then re-starting Linux... So I have two of three quorum nodes active, but GPFS still down...
## From n2, login to node n3 that I just rebooted... [root@n2 gpfs-git]# ssh n3 Last login: Thu Jul 28 09:50:53 2016 from n2.frozen
## See if any mm processes are running? ... NOPE!
[root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3834 0.0 0.0 112640 972 pts/0 S+ 10:12 0:00 grep --color=auto mm
## Check the state... notice n4 is powered off... [root@n3 ~]# mmgetstate -a mmgetstate -a
Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down
## Examine the cluster configuration [root@n3 ~]# mmlscluster mmlscluster
GPFS cluster information ======================== GPFS cluster name: madagascar.frozen GPFS cluster id: 7399668614468035547 GPFS UID domain: madagascar.frozen Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR
GPFS cluster configuration servers: ----------------------------------- Primary server: n2.frozen (not in use) Secondary server: n4.frozen (not in use)
Node Daemon node name IP address Admin node name Designation ------------------------------------------------------------------- 1 n2.frozen 172.20.0.21 n2.frozen quorum-manager-perfmon 3 n4.frozen 172.20.0.23 n4.frozen quorum-manager-perfmon 4 n5.frozen 172.20.0.24 n5.frozen perfmon 6 n3.frozen 172.20.0.22 n3.frozen quorum-manager-perfmon
## notice that mmccrmonitor and mmsdrserv are running but not mmfsd
[root@n3 ~]# ps auxw | grep mm ps auxw | grep mm root 3882 0.0 0.0 114376 1720 pts/0 S 10:13 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3954 0.0 0.0 491244 13040 ? Ssl 10:13 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 128 yes root 4339 0.0 0.0 114376 796 pts/0 S 10:15 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 4345 0.0 0.0 112640 972 pts/0 S+ 10:16 0:00 grep --color=auto mm
## Now I can mmchconfig ... while GPFS remains down.
[root@n3 ~]# mmchconfig worker1Threads=1022 mmchconfig worker1Threads=1022 mmchconfig: Command successfully completed mmchconfig: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. [root@n3 ~]# Thu Jul 28 10:18:16 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation started Thu Jul 28 10:18:21 PDT 2016: mmcommon pushSdr_async: mmsdrfs propagation completed; mmdsh rc=0
[root@n3 ~]# mmgetstate -a mmgetstate -a
Node number Node name GPFS state ------------------------------------------ 1 n2 down 3 n4 unknown 4 n5 down 6 n3 down
## Quorum node n4 remains unreachable... But n2 and n3 are running Linux. [root@n3 ~]# ping -c 1 n4 ping -c 1 n4 PING n4.frozen (172.20.0.23) 56(84) bytes of data. From n3.frozen (172.20.0.22) icmp_seq=1 Destination Host Unreachable
--- n4.frozen ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
[root@n3 ~]# exit exit logout Connection to n3 closed. [root@n2 gpfs-git]# ps auwx | grep mm root 3264 0.0 0.0 114376 812 pts/1 S 10:21 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 3271 0.0 0.0 112640 980 pts/1 S+ 10:21 0:00 grep --color=auto mm root 31820 0.0 0.0 114376 1728 pts/1 S 09:42 0:00 /usr/lpp/mmfs/bin/mmksh /usr/lpp/mmfs/bin/mmccrmonitor 15 root 32058 0.0 0.0 493264 12000 ? Ssl 09:42 0:00 /usr/lpp/mmfs/bin/mmsdrserv 1191 10 10 /var/adm/ras/mmsdrserv.log 1 root 32263 0.0 0.0 1700732 17600 ? Sl 09:42 0:00 python /usr/lpp/mmfs/bin/mmsysmon.py [root@n2 gpfs-git]#
------------------------------
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (6)
-
Aaron Knister -
Bryan Banister -
Marc A Kaplan -
McPheeters, Gordon -
Olaf Weiser -
Sven Oehme
