Commit Graph

10 Commits

Author SHA1 Message Date
Petr Khartskhaev
def9e70848 Add galera recovery environment variable to service file and move temporary 'wsrep' files to '/run'
This commit fixes two issues:

1. A Fedora downstream one, since 11.6
   (https://jira.mariadb.org/browse/MDEV-19210), MariaDB upstream use
   environment files in their systemd service files to load environment
   variables and pass the arguments '--wsrep-new-cluster' and
   '--wsrep_start_position' when starting the daemon. The Fedora downstream
   service file has been missing the variable for '--wsrep_start_position' since
   it was added into MariaDB upstream in 10.1.15
   (a6816995ee).
   And this Fedora downstream commit adds those missing environment
   variables and their arguments into the service files. After I tested
   it, the recovery of failed nodes works.

2. A MariaDB upstream one, where the temporary 'wsrep' files have
   incorrect SELinux policies set ('mysqld-db-t' instead of
   'mysqld-run-t') because of their parent directories. This occurs
   because their location is tied to the location of 'mysql.sock' in the
   CMake files. As RPMs get built to have 'mysql.sock' in
   '/var/lib/mysql' as opposed to inside '/run' like Debian or Arch, the
   temporary files for the service could not actually be read by the
   service during start-up, resulting in failure as no primary node was
   ever created. Discussion with the MariaDB upstream
   (https://jira.mariadb.org/browse/MDEV-37726) resulted in a patch that
   separates the location of the socket file and the temporary
   environment files into two CMake flags and allows for more flexible
   building of the package. We use this patch temporarily until we
   update to a version with it included.
2025-09-30 12:04:17 +02:00
Daniel Black
a87e9e5d9a Document systemd service changes
Prefer the systemctl edit mysql.service syntax
and leave the more complex alternatives to the
existing documents referenced.

Also show how to use the multiinstance a bit more.
2021-05-11 12:07:23 +00:00
Daniel Black
95f558b833 drop KillMode=process
MariaDB-10.4 onwards included a pam_helper subprocess to help
with the pam authentication module.

If the user is running with Galera there are SST modules that could
be executing.

By dropping KillMode=process this reverts back to control-group to
cover all of these subprocesses. This is what upstream does.

https://jira.mariadb.org/browse/MDEV-25233 suggests moving to
KillMode=mixed, which is probably ok too, but has been tested less.
2021-05-11 12:07:23 +00:00
Daniel Black
df76620f9e rename mysql scripts to mariadb
Use mariadb names in the scripts too.
2021-05-11 12:01:29 +00:00
Michal Schorm
f6397a1a9b Rebase to 10.2.15
Don't use conditionals macros verided by the values outside the SPEC. They don't work thay way.
Fix the server Recommends. They won't be parsed correctly, if they have whitespaces in front of them in contidional macros.
Move the upstream systemd config file for tokudb to the correct location.
Tweak the systemd unit files, to be closer to their upstream variants.
Heavy update of the skipped tests list. PPC64le seems problematic lately. Spider tests are disabled in the first testsuite run as a whole testsuite, so no need to explicitly list them.
Extend the testsuite timeout to 15 hours; 12 hours just wasn't enough for PPC64le; allow to retry failed test one time.
Build with Jemalloc again. Require Jemalloc by TokuDB. Set precise version of Jemalloc library to systemd config for TokuDB.
2018-05-28 06:16:00 +02:00
Michal Schorm
1edbdde313 Include aliases for mariadb service; #1520905 2017-12-09 02:48:08 +01:00
Honza Horak
036ca48a16 Support --defaults-group-suffix option in all starting scripts
Resolves: #1485777
2017-08-28 20:38:32 +02:00
Michal Schorm
04a85451ac Remove mysql-wait-* scripts. They aren't needed when using systemd "Type=notify" 2017-07-13 16:30:08 +02:00
Michal Schorm
4a9448cf0c Removed strmov patch, it is no longer needed. The issue was fixed long ago in both MariaDB and MySQL
Removed "After=syslog.target" from systemd unit files. This option is a default one
2017-03-08 15:10:16 +01:00
Honza Horak
2caa773538 Remove mariadb-wait-ready call from systemd unit, we have now systemd notify support
Make mariadb@.service similar to mariadb.service
2016-02-11 13:52:17 +01:00