При загруке системы не стартует MariaDB.
root@magosm:~# systemctl start mysqld.service
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xeu mysqld.service" for details.
oot@magosm:~# systemctl status mysqld.service
× mysqld.service - MySQL database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; preset: disabled)
Active: failed (Result: exit-code) since Tue 2023-09-12 10:10:28 +05; 3min 2s ago
Process: 92485 ExecStartPre=/usr/sbin/mysqld-prepare-db-dir (code=exited, status=1/FAILURE)
CPU: 228ms
сен 12 10:10:28 magosm systemd[1]: mysqld.service: Scheduled restart job, restart counter is at 5.
сен 12 10:10:28 magosm systemd[1]: Stopped mysqld.service.
сен 12 10:10:28 magosm systemd[1]: mysqld.service: Start request repeated too quickly.
сен 12 10:10:28 magosm systemd[1]: mysqld.service: Failed with result 'exit-code'.
сен 12 10:10:28 magosm systemd[1]: Failed to start mysqld.service.
root@magosm:~#
Удалил /var/lib/mysql и в терминале запустил команду инициализации mysql
root@magosm:~# mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
2023-09-12 10:02:43 0 [Warning] InnoDB: Retry attempts for writing partial data failed.
2023-09-12 10:02:43 0 [ERROR] InnoDB: Write to file ./ibdata1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 22. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
2023-09-12 10:02:43 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument'
2023-09-12 10:02:43 0 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space
2023-09-12 10:02:43 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2023-09-12 10:02:43 0 [ERROR] InnoDB: Operating system error number 22 in a file operation.
2023-09-12 10:02:43 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument'
2023-09-12 10:02:43 0 [ERROR] InnoDB: File (unknown): 'close' returned OS error 222. Cannot continue operation
230912 10:02:43 [ERROR] mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.To report this bug, see https://mariadb.com/kb/en/reporting-bugs
Похоже надо отправлять баг.
Но все же просьба подтвердить. что этот баг не только у меня