cs_show_cluster_patterns(8)
๐ cs_show_cluster_patterns(8) โ the ClusterTools2 one, section 8 bestie ๐
okay so picture this: it's like 3am, your cluster is being A Whole Thing, and you need to know what actually happened in the logs. That's this script. It's a section 8 system admin tool from ClusterTools2, and it's literally just out here searching your log files for cluster patterns so you don't have to grep blindly like a lost little butterfly ๐ฆ
โจ NAME โจ
cs_show_cluster_patterns โ search log files for cluster patterns ๐
โจ SYNOPSIS โจ
cs_show_cluster_patterns OPTION
โจ DESCRIPTION โจ
cs_show_cluster_patterns searches log files for cluster patterns. That's the whole vibe, that's the job ๐ซถ
โ ๏ธ important heads-up bestie: most cluster components do logging to their local node only. So no cap, don't be shocked when Node B's drama isn't showing up in Node A's logs โ that's just how it is ๐
โจ OPTIONS โจ
--helpโ show help. your classic "what even is this" button ๐--versionโ show version. so you can prove which one you're on ๐--writecfgโ show some internal variables. behind-the-scenes peek ๐--showโ show all patterns. everything, the full menu โจ--fencingโ show fencing patterns. the "somebody got kicked out" section ๐ฅ--migrationโ show migration patterns. resources moving around, main character energy ๐--countโ count total for each pattern. numbers girlies rise ๐งฎ--zipโ count from compressed logs, too. This could take some time. โณ lowkey a patience test
๐ธ EXAMPLES ๐ธ
show migrations โ like, which resources went where?
# cs_show_cluster_patterns -m
count occurance of patterns, show non-null only:
# cs_show_cluster_patterns -c | grep -v "=.0$"
show whole lines, but only for January. Useful if logs contain December as well:
# cs_show_cluster_patterns -s | grep "^Jan"
iykyk โ that December/January thing is foreshadowing, keep reading ๐
โจ EXIT STATUS โจ
0โ Successful program execution. slay, it worked โจ>0โ Usage, syntax or execution errors. it's giving "you typed something cursed" ๐ญ
๐ฆ FILES ๐ฆ
/usr/sbin/cs_show_cluster_patternsโ the program itself. the moment ๐/etc/ClusterTools2/cs_show_cluster_patternsโ the configuration. its little settings corner ๐/etc/corosync/corosync.confโ the corosync configuration, maybe defining log file. "maybe" doing a lot of work there, ngl ๐/var/log/messagesโ the default log file. old reliable โญ
๐ BUGS ๐
okay listen, real talk:
This script depends on LC_MESSAGES respective RC_LANG set to en_US or C. So if your locale is doing its own thing, this script is gonna be confused, and that's on the locale fr fr ๐
Furthermore the scripts sort output by month. This results in wrong order of lines, if a logfile f.e. contains December and January. Like, December before January? in this economy? yeah, the sort doesn't know about calendar years ๐๏ธ๐ (this is the December thing from the examples, told you)
Feedback is welcome, please mail to feedback@suse.com ๐ฌ they genuinely want to hear from you!
๐ง SEE ALSO ๐ง
cs_show_error_patterns(8), cs_show_cluster_transition(8), grep(1), syslog(8), logrotate(8), corosync.conf(5), ClusterTools2(7) โ the whole friend group, go say hi ๐ซถ
๐ COPYRIGHT ๐
(c) 2011-2019 L.Pinne, Germany. cs_show_cluster_patterns comes with ABSOLUTELY NO WARRANTY. For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html
and that's the whole page bestie!! ๐ this iconic little manual is dated 01 Nov 2019, it ships with ClusterTools2, and it was written and maintained by L.Pinne, Germany โ go off, legend ๐๐
๐ฆ where this page comes from
- opensuse-leap 16.0: ClusterTools2 3.1.3-160000.2.2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms