2016-03-30 7 views
0

auf Ubuntu Trusty Server 64-Bit:MariaDB 10.1.13 auf ubuntu treuen: keine andere datadir möglich

Ich hatte MariaDB 10.1 mit einem anderen datadir Arbeits

datadir=/mnt/SRVDATA/var/lib/mysql 

Gestern habe ich ein Update 10.1.13- MariaDB-1 ~ trusty von

deb http://mirror.netcologne.de/mariadb/repo/10.1/ubuntu trusty main 

Und MariaDB wird nicht mehr starten.

Ich habe/etc/mysql,/usr/lib/mysql und/var/lib/mysql umbenannt und ich habe MariaDB Server und Client neu installiert. Ich habe eine dpkg-reconfigure erstellt und ich habe eine neue pristine Datenbank in/var/lib/mysql. Damit könnte ich MariaDB starten.

Ich kopierte/var/lib/mysql wieder nach/mnt/SRVDATA/var/lib/mysql mit allen Berechtigungen, ich änderte meine.cnf zu zeigen, datadir zu/mnt/SRVDATA/var/lib/mysql aber MariaDB gewann Fange nicht an.

Apparmor ist down, die Profile sind abgebaut.

Die Fehler in syslog:

Mar 30 09:58:47 hg-bioinfo mysqld: 
Mar 30 09:58:47 hg-bioinfo mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended 
Mar 30 10:08:04 hg-bioinfo mysqld_safe: Starting mysqld daemon with databases from /mnt/SRVDATA/var/lib/mysql 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] /usr/sbin/mysqld (mysqld 10.1.13-MariaDB-1~trusty) starting as process 30831 ... 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Using mutexes to ref count buffer pool pages 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: The InnoDB memory heap is disabled 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Memory barrier is not used 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Compressed tables use zlib 1.2.8 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Using Linux native AIO 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Using SSE crc32 instructions 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Initializing buffer pool, size = 256.0M 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Completed initialization of buffer pool 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [Note] InnoDB: Highest supported file format is Barracuda. 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [ERROR] InnoDB: Tried to read 512 bytes at offset 512. Was only able to read 0. 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 7fe86f43d7c0 InnoDB: Operating system error number 22 in a file operation. 
Mar 30 10:08:04 hg-bioinfo mysqld: InnoDB: Error number 22 means 'Invalid argument'. 
Mar 30 10:08:04 hg-bioinfo mysqld: InnoDB: Some operating system error numbers are described at 
Mar 30 10:08:04 hg-bioinfo mysqld: InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html 
Mar 30 10:08:04 hg-bioinfo mysqld: InnoDB: Operation read to file /home/buildbot/buildbot/build/mariadb-10.1.13/storage/xtradb/os/os0file.cc and at line 3158 
Mar 30 10:08:04 hg-bioinfo mysqld: 2016-03-30 10:08:04 140636275857344 [ERROR] InnoDB: File (unknown): 'read' returned OS error 222. Cannot continue operation 
Mar 30 10:08:04 hg-bioinfo mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended 
Mar 30 10:09:05 hg-bioinfo /etc/init.d/mysql[31401]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in 
Mar 30 10:09:05 hg-bioinfo /etc/init.d/mysql[31401]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed 
Mar 30 10:09:05 hg-bioinfo /etc/init.d/mysql[31401]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")' 
Mar 30 10:09:05 hg-bioinfo /etc/init.d/mysql[31401]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! 

zutiefst dankbar für alle Hinweise!

Mit freundlichen Grüßen

Antwort

0

einen großen Chat mit Montywi auf FreeNode in #maria Nachdem stellt sich heraus, dass dies ein neuer Bug in der Version 10.1.13 eingeführt ist.

Es handelt sich um die Konfiguration:

innodb_flush_method=O_DIRECT 

in Kombination mit einem datadir auf einem Dateisystem mit einer Blockgröße <> 512 (Mine auf einem RAID ist)

Die Abhilfe für jetzt ist:

innodb_flush_method=O_DSYNC 

Der Fehler wird jetzt behoben und wird bald in Version 10.1.14, so Montywi verfügbar sein.

Danke Leute!

Verwandte Themen