<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://agora.nasqueron.org/index.php?action=history&amp;feed=atom&amp;title=Operations_grimoire%2FIncidents%2F2025-11-25-MariaDB</id>
	<title>Operations grimoire/Incidents/2025-11-25-MariaDB - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://agora.nasqueron.org/index.php?action=history&amp;feed=atom&amp;title=Operations_grimoire%2FIncidents%2F2025-11-25-MariaDB"/>
	<link rel="alternate" type="text/html" href="https://agora.nasqueron.org/index.php?title=Operations_grimoire/Incidents/2025-11-25-MariaDB&amp;action=history"/>
	<updated>2026-04-15T01:02:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-alpha</generator>
	<entry>
		<id>https://agora.nasqueron.org/index.php?title=Operations_grimoire/Incidents/2025-11-25-MariaDB&amp;diff=2156&amp;oldid=prev</id>
		<title>Dereckson: Created page with &quot;MariaDB extended downtime for InnoDB tables.  == Incident timeline == ; 2025-11-25 * 10:22 - Deployment of {{D|3890}} - ZFS volumes change for MariaDB to fix {{T|2074}} * 10:22 - MariaDB is restarted * 10:22 - Services using MyISAM tables are OK, but services using InnoDB like wikis are down * 10:24 - Quick investigation shows engine error for InnoDB tables * 10:25 - Unmount and remount ZFS volumes for InnoDB data and logs * 10:25 - Restart MariaDB server, databases are...&quot;</title>
		<link rel="alternate" type="text/html" href="https://agora.nasqueron.org/index.php?title=Operations_grimoire/Incidents/2025-11-25-MariaDB&amp;diff=2156&amp;oldid=prev"/>
		<updated>2025-11-25T11:19:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;MariaDB extended downtime for InnoDB tables.  == Incident timeline == ; 2025-11-25 * 10:22 - Deployment of {{D|3890}} - ZFS volumes change for MariaDB to fix {{T|2074}} * 10:22 - MariaDB is restarted * 10:22 - Services using MyISAM tables are OK, but services using InnoDB like wikis are down * 10:24 - Quick investigation shows engine error for InnoDB tables * 10:25 - Unmount and remount ZFS volumes for InnoDB data and logs * 10:25 - Restart MariaDB server, databases are...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;MariaDB extended downtime for InnoDB tables.&lt;br /&gt;
&lt;br /&gt;
== Incident timeline ==&lt;br /&gt;
; 2025-11-25&lt;br /&gt;
* 10:22 - Deployment of {{D|3890}} - ZFS volumes change for MariaDB to fix {{T|2074}}&lt;br /&gt;
* 10:22 - MariaDB is restarted&lt;br /&gt;
* 10:22 - Services using MyISAM tables are OK, but services using InnoDB like wikis are down&lt;br /&gt;
* 10:24 - Quick investigation shows engine error for InnoDB tables&lt;br /&gt;
* 10:25 - Unmount and remount ZFS volumes for InnoDB data and logs&lt;br /&gt;
* 10:25 - Restart MariaDB server, databases are served correctly again&lt;br /&gt;
&lt;br /&gt;
Timestamps are UTC. Timestamps are an estimation, but 10:22 for MariaDB restart is accurate (from Salt).&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
When we noticed wikis were down, we browsed the following logs:&lt;br /&gt;
&lt;br /&gt;
* /var/log/www/nasqueron.org/wikis-error.log (not relevant, only confirms PHP error 500)&lt;br /&gt;
* /var/log/mediawiki/error.log (relevant)&lt;br /&gt;
&lt;br /&gt;
We also previously directly confirmed MediaWiki can connect to database with &amp;lt;code&amp;gt;sudo -u mw agora shell&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MediaWiki was showing objectcache table doesn&amp;#039;t exist in current engine.&lt;br /&gt;
&lt;br /&gt;
Done with MySQL client to check databases and tables: SHOW DATABASES, \u nasqueron_wiki, SHOW CREATE TABLE objectcache.&lt;br /&gt;
&lt;br /&gt;
== Fix ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
$ /usr/local/etc/rc.d/mysql-server stop&lt;br /&gt;
$ umount -f arcology/mysql-innodb-data&lt;br /&gt;
$ umount -f arcology/mysql-innodb-logs&lt;br /&gt;
$ zfs mount arcology/mysql-innodb-data&lt;br /&gt;
$ zfs mount arcology/mysql-innodb-logs&lt;br /&gt;
$ /usr/local/etc/rc.d/mysql-server start&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actionables ==&lt;br /&gt;
* Always unmount and remount ZFS volumes if touched, even if only the parent dataset has been updated, don&amp;#039;t trust ZFS automount blindly&lt;/div&gt;</summary>
		<author><name>Dereckson</name></author>
	</entry>
</feed>