Problem with unit file mysql@bootstrap under Ubuntu 20.04

Current setup:
We have 3 Ubuntu 18.04 nodes in an extradb 5.7 cluster. We want to replace these nodes with new Ubuntu 20.04 ones.

When we set up a new 20.04 node, we used the instructions from the docs to configure the repo and download the required package:

$ wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb
$ sudo dpkg -i percona-release_latest.generic_all.deb
$ sudo apt-get update
$ apt-get install percona-xtradb-cluster-server-5.7

The installation worked, but it seems that systemd unit files are missing. We cannot execute systemctl start mysql@bootstrap on the new nodes.

On our 18.04 node:

$ dpkg -L percona-xtradb-cluster-server-5.7 | grep systemd
/lib/systemd
/lib/systemd/system
/lib/systemd/system/mysql.service
/lib/systemd/system/mysql@.service
/usr/share/mysql/mysql-systemd-start

On our 20.04 node:

$ dpkg -L percona-xtradb-cluster-server-5.7 | grep systemd
/usr/share/mysql/mysql-systemd-start

Does anyone know how to get the missing files under 20.04?

1 Like

Hi @hildebro
Please use /etc/init.d/mysql bootstrap-pxc
Full systemd support was added only in PXC-80

1 Like