How to clear stale entries in GUI log
Hello, you ran into a defect which is fixed with the upcoming 4.2.1.2 PTF Here is a workaround: You can clear the eventlog of the system health component using mmsysmonc clearDB This is a per node database, so you need to run this on all the nodes which have stale entries. It will clear all the events on this node, if you want to save them run: mmhealth node eventlog > log.save On the GUI node, run systemctl restart gpfsgui afterwards. The mmhealth command suppresses events during startup. So in case a bad condition turns OK during a restart phase, the bad event will remain stale. Regards, Markus Rohwedder IBM Spectrum Scale GUI development
Thanks. I've run that on, I assume, our quorum server where this disk is mounted, but the error is still showing up. The event itself doesn't say which node is affected. ICSAN_GPFS_FSD_QUORUM nsd 512 103 no no ready up system That looks ok to me. Maybe I misunderstood your line "This is a per node database, so you need to run this on all the nodes which have stale entries.". Should I just run it on all the nodes in the cluster instead... there's not many so won't take long but wondering if that's really necessary? Thanks Richard From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Markus Rohwedder Sent: 08 November 2016 14:51 To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] How to clear stale entries in GUI log Hello, you ran into a defect which is fixed with the upcoming 4.2.1.2 PTF Here is a workaround: You can clear the eventlog of the system health component using mmsysmonc clearDB This is a per node database, so you need to run this on all the nodes which have stale entries. It will clear all the events on this node, if you want to save them run: mmhealth node eventlog > log.save On the GUI node, run systemctl restart gpfsgui afterwards. The mmhealth command suppresses events during startup. So in case a bad condition turns OK during a restart phase, the bad event will remain stale. Regards, Markus Rohwedder IBM Spectrum Scale GUI development
That’s worked, thanks Andreas. Question: when I upgrade to the new PTF when it’s available, can I install it first on just the GUI node (which happens to be the Quorum server for the cluster) and the fixes will go in, or do I need to deploy the new pmsensors packages? From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Andreas Koeninger Sent: 08 November 2016 16:50 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] How to clear stale entries in GUI log Hello Richard, without the PTF (which is not yet available) you will have to manually clear the GUI database as well by running the following command on the GUI node: psql postgres postgres -c "delete from fscc.gss_state where sensor like 'H\_%';" This will remove all events from the GUI database coming from mmhealth. To repopulate this table with all the currently reported events from mmhealth please run: /usr/lpp/mmfs/gui/cli/runtask HEALTH_STATES Let me know if that helps, Andreas Koeninger Spectrum Scale GUI Development ----- Original message ----- From: "Sobey, Richard A" <r.sobey@imperial.ac.uk> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Subject: Re: [gpfsug-discuss] How to clear stale entries in GUI log Date: Tue, Nov 8, 2016 4:10 PM Thanks. I’ve run that on, I assume, our quorum server where this disk is mounted, but the error is still showing up. The event itself doesn’t say which node is affected. ICSAN_GPFS_FSD_QUORUM nsd 512 103 no no ready up system That looks ok to me. Maybe I misunderstood your line “This is a per node database, so you need to run this on all the nodes which have stale entries.”. Should I just run it on all the nodes in the cluster instead… there’s not many so won’t take long but wondering if that’s really necessary? Thanks Richard From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Markus Rohwedder Sent: 08 November 2016 14:51 To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] How to clear stale entries in GUI log Hello, you ran into a defect which is fixed with the upcoming 4.2.1.2 PTF Here is a workaround: You can clear the eventlog of the system health component using mmsysmonc clearDB This is a per node database, so you need to run this on all the nodes which have stale entries. It will clear all the events on this node, if you want to save them run: mmhealth node eventlog > log.save On the GUI node, run systemctl restart gpfsgui afterwards. The mmhealth command suppresses events during startup. So in case a bad condition turns OK during a restart phase, the bad event will remain stale. Regards, Markus Rohwedder IBM Spectrum Scale GUI development _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Fri, 11 Nov 2016 08:50:00 +0000, "Sobey, Richard A" said:
Question: when I upgrade to the new PTF when it’s available, can I install it first on just the GUI node (which happens to be the Quorum server for the cluster)
*the* quorum server, not "one of the quorum nodes"? Best practice is to have enough nodes designated as quorum nodes so even if one of them is taken down for upgrade or maintenance, the cluster as a whole remains up and serving data. That way, you can do rolling installs of patches without taking an outage. The number to pick depends on your config - we have one cluster with 4 NSD servers, where we've defined all 4 as quorum nodes. That way, as long as 3 of them (half plus 1) are up, the cluster stays up. We have another stretch cluster with 10 servers (5 at each node), and we defined 3 quorum nodes at our main site, and 2 at the remote site, specifically so that if we did lose the 10G link between sites, the main site would retain quorum and stay up. (Losing the remote site is, in our setup, *much* less critical than ensuring the main site stays up. We replicate between the two, and if the remote is down, and thus falls behind, mmrestripefs is available for cleaning up)
Sorry... one of the quorum nodes. -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Valdis.Kletnieks@vt.edu Sent: 12 November 2016 20:24 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] How to clear stale entries in GUI log On Fri, 11 Nov 2016 08:50:00 +0000, "Sobey, Richard A" said:
Question: when I upgrade to the new PTF when it???s available, can I install it first on just the GUI node (which happens to be the Quorum server for the cluster)
*the* quorum server, not "one of the quorum nodes"? Best practice is to have enough nodes designated as quorum nodes so even if one of them is taken down for upgrade or maintenance, the cluster as a whole remains up and serving data. That way, you can do rolling installs of patches without taking an outage. The number to pick depends on your config - we have one cluster with 4 NSD servers, where we've defined all 4 as quorum nodes. That way, as long as 3 of them (half plus 1) are up, the cluster stays up. We have another stretch cluster with 10 servers (5 at each node), and we defined 3 quorum nodes at our main site, and 2 at the remote site, specifically so that if we did lose the 10G link between sites, the main site would retain quorum and stay up. (Losing the remote site is, in our setup, *much* less critical than ensuring the main site stays up. We replicate between the two, and if the remote is down, and thus falls behind, mmrestripefs is available for cleaning up)
The Quorum buster node :P -- Lauz On 12/11/2016 20:39, Sobey, Richard A wrote:
Sorry... one of the quorum nodes.
-----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Valdis.Kletnieks@vt.edu Sent: 12 November 2016 20:24 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] How to clear stale entries in GUI log
On Fri, 11 Nov 2016 08:50:00 +0000, "Sobey, Richard A" said:
Question: when I upgrade to the new PTF when it???s available, can I install it first on just the GUI node (which happens to be the Quorum server for the cluster) *the* quorum server, not "one of the quorum nodes"?
Best practice is to have enough nodes designated as quorum nodes so even if one of them is taken down for upgrade or maintenance, the cluster as a whole remains up and serving data. That way, you can do rolling installs of patches without taking an outage.
The number to pick depends on your config - we have one cluster with 4 NSD servers, where we've defined all 4 as quorum nodes. That way, as long as 3 of them (half plus 1) are up, the cluster stays up. We have another stretch cluster with 10 servers (5 at each node), and we defined 3 quorum nodes at our main site, and 2 at the remote site, specifically so that if we did lose the 10G link between sites, the main site would retain quorum and stay up. (Losing the remote site is, in our setup, *much* less critical than ensuring the main site stays up. We replicate between the two, and if the remote is down, and thus falls behind, mmrestripefs is available for cleaning up) _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
participants (5)
-
Andreas Koeninger -
Laurence Horrocks-Barlow -
Markus Rohwedder -
Sobey, Richard A -
Valdis.Kletnieks@vt.edu
