Key Buffer Problem oder doch ei nanderes ?

Esokiller

New Member
Hallo liebe Community.

Ich versuche schon seid ein paar Tagen dieses Problem zu beheben einmal habe ich es auch geschafft aber dann habe ich einen fehler bei apache2 gemacht und ein backup eingespielt.

Und zwar bin ich in meine My.cnf gegangen und habe den Key_buffer = 16M auf Key_buffer = 512M gestellt und es funktionierte wieder.

Jetzt aber funktioniert es nicht mehr nach dem ich das gemacht habe und bin total ratlos
Der Mysql Server lässt sich nicht mehr starten ich lade hier mal die Error.log hoch von /var/log/mysql
vllt weiß einer wie es weiter gehen kann, ich danke für ide hilfe :-)


Inhalt der Error.log

140727 13:46:00 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140727 13:46:00 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140727 13:46:00 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
140727 13:46:00 [Note] Plugin 'FEDERATED' is disabled.
140727 13:46:00 InnoDB: The InnoDB memory heap is disabled
140727 13:46:00 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140727 13:46:00 InnoDB: Compressed tables use zlib 1.2.8
140727 13:46:00 InnoDB: Using Linux native AIO
140727 13:46:00 InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
InnoDB: Warning: io_setup() attempt 1 failed.
InnoDB: Warning: io_setup() attempt 2 failed.
InnoDB: Warning: io_setup() attempt 3 failed.
InnoDB: Warning: io_setup() attempt 4 failed.
InnoDB: Warning: io_setup() attempt 5 failed.
140727 13:46:03 InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
140727 13:46:03 InnoDB: Fatal error: cannot initialize AIO sub-system
140727 13:46:03 [ERROR] Plugin 'InnoDB' init function returned error.
140727 13:46:03 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140727 13:46:03 [ERROR] Unknown/unsupported storage engine: InnoDB
140727 13:46:03 [ERROR] Aborting

140727 13:46:03 [Note] /usr/sbin/mysqld: Shutdown complete

140727 13:46:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
 
140727 13:46:00 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
140727 13:46:00 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
Dann ändere doch vorsorglich die beiden Optionen in die neuen.
http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_key_buffer_size
http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_myisam-recover-options


140727 13:46:00 InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
InnoDB: Warning: io_setup() attempt 1 failed.
InnoDB: Warning: io_setup() attempt 2 failed.
InnoDB: Warning: io_setup() attempt 3 failed.
InnoDB: Warning: io_setup() attempt 4 failed.
InnoDB: Warning: io_setup() attempt 5 failed.
140727 13:46:03 InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
Steht da doch ;)
Code:
innodb_use_native_aio = 0
in deine my.cnf.
 
Last edited by a moderator:
Hallo, danke für die antworten.
Und zwar das mit innodb_use_native_aio
habe ich in n++ in der my.cnf nicht gefunden

Ich habe Debian drauf und IMSCP installiert.
Leider weiterhin das gleiche bringen die Änderungen jetzt garnichts
zu mal die 2 Links da auch nicht das ergebniss bringen bzw. ich da nicht so ganz durchblicke bevor ich jetzt aber das mache warte ich lieber ab
was ihr noch dqazu sagt.
 
Ja, wenn der Schlüssel nicht drin steht, dann muss man ihn eben selbst reinschreiben und zwar so, wie ihn auch GwenDragon geschrieben hat. Im Prinzip kannst Du ihre Zeile einfach copy/pasten.
Und inwiefern "blickst" Du nicht durch?
 
Ich wäre euch sehr verbunden wenn ihr mir das schritt für schritt schildern könnt oder ggf. ein tut, raus suchen weil ich bin echt überfragt und es mangeld mir nicht an erfahrung sondern eher an "Man wieso komm ich da jetzt nicht drauf" - gefühl.

Vielen lieben Dank euch :-)
 
Und zwar das mit innodb_use_native_aio
habe ich in n++ in der my.cnf nicht gefunden
Du hast in der richtigen my.conf nachgesehen?
Ansonsten wird mysqld vielleicht noch mit den den Optionen gestartet.

Ich habe Debian drauf und IMSCP installiert.
Debian 5, 6 oder welches genau?

Leider weiterhin das gleiche bringen die Änderungen jetzt garnichts
zu mal die 2 Links da auch nicht das ergebniss bringen bzw. ich da nicht so ganz durchblicke bevor ich jetzt aber das mache warte ich lieber ab
was ihr noch dqazu sagt.
Ja, deine Information dazu ist auch mager.
Was bedeutet druchblicken bitte?

Meine Glaskugel sagt mir bezüglich deiner Aktivität:
1. Soll er das Log posten nach der Änderung
2. Soll er die my.cnf posten
3. Kann er kein Englisch oder versteht er den technischen Inhalt nicht

Bitte etwas konkretere Aussagen, damit wir helfen können.
 
Klar verstehe ich die technischen Daten aber ich fange mal nochmal neu an tschuldige bitte diesbezüglich ich bin grad auch etwas verwirrt.

Mein System ist ein Debian 7 System
mit IMSCP - Internet Multiserver Controll Panell
Imscp hat aber keine eigene My.cnf diese wird angesteuert durch die eigl. My.cnf

Ich habe wo ich den Fehler auf den Seiten gesehen habe direkt in den Error.logs nach geschaut und da stand Key Buffer size is Full
dann habe ich den fehler in Google eingegeben und das dann so gemacht wie es dort stand und siehe da es funktionierte.

Leider musste ich dann am gleichen tag ein Backup vor dem diesen Eingriff ins Apache2 System einspielen daher habe ich das gleiche nochmal machen wollen und nun funktioniert es garnicht mehr.

Daher ist meine Frage, meine English Kenntnisse sind zwar Angemessen aber jedoch bin ich doch sehr überfragt zzt.

Daher wäre ich sehr verbunden um jeden Hinweis ggf. tutorials.- Anleitungen etc. Hilfestellungen.

Vielen Dank.
 
Du selbst hast uns mitgeteilt, dass Du die my.cnf schon häufiger geändert hast.
Daher musst Du nur folgendes machen:
die von GwenDragon genannte Zeile in die Konfigurationsdatei einfügen.
 
Du selbst hast uns mitgeteilt, dass Du die my.cnf schon häufiger geändert hast.
Daher musst Du nur folgendes machen:
die von GwenDragon genannte Zeile in die Konfigurationsdatei einfügen.

Alles klar, ich werde sie einfügen , sorry ich bin echt heut neben der Spur.
Ja ich habe das nochmal von neu gesagt deswegen, mit System mit Vorgängen etc.
Pardon.


Update von 14:39 Uhr:
innodb_use_native_aio = 0 wurde der My.cnf hinzugefügt.

Weiß nun leider nicht wie es weiter gehen soll, ich waarte einfach dann auf antworten.
 
Last edited by a moderator:
sorry ich bin echt heut neben der Spur.
Ja ich habe das nochmal von neu gesagt deswegen, mit System mit Vorgängen etc. .
Ja, kann schon passieren. Deswegen haben wir ja nach.

innodb_use_native_aio = 0 wurde der My.cnf hinzugefügt.
Und wo, in welchem Abschnitt?

Restarte bitte mal mysqld.
Und dann poste bitte die Logs nach dem Neustart von Mysqld:
/var/log/mysql.log
/var/log/mysql.err
/var/log/daemon.log

Ich will mal sehen, was da drin steht. Im Trüben fischen ist nicht so der Hit.
 
Ja, kann schon passieren. Deswegen haben wir ja nach.

Und wo, in welchem Abschnitt?


Restarte bitte mal mysqld.
Und dann poste bitte die Logs nach dem Neustart von Mysqld:
/var/log/mysql.log
/var/log/mysql.err
/var/log/daemon.log


Ich will mal sehen, was da drin steht. Im Trüben fischen ist nicht so der Hit.
Anhänge als Zip Ordner hochgeladen, da die dateiendungen von dem Board hier nicht unterstützt werden.

4 Logs , in einer Zip zusätzlich nochmal die Error.log aus der /var/log/mysql
Die einen Logs scheinen leer auszusehen.
Weiteres im Zip Archiv.
Und wo, in welchem Abschnitt?
(Unter # ssl-key=/etc/mysql/server-key.pem und über [mysqldump] steht innodb_use_native_aio = 0)
EDIT: Standort aus dem Zitat raus genommen
 

Attachments

Das nächste Mal benutzte bitte grep und filtere alles was nicht mysql ist raus.

Code:
Jul 27 15:18:43 h2274663 /etc/init.d/mysql[17296]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jul 27 15:18:43 h2274663 /etc/init.d/mysql[17296]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jul 27 15:18:43 h2274663 /etc/init.d/mysql[17296]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jul 27 15:18:43 h2274663 /etc/init.d/mysql[17296]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Da ist sichtbar, dass MySQL keine Verbindung aufmachen kann sonst würde das Socket existieren.

Ich bin sicher, du hast deine my.cnf geschrottet.
Und zeig endlich mal die my.conf. Mit deinem "über ... gepostet" ist nicht anzufangen.
 
Ja tut mir leid,

Hier der Inhalt der my.cnf:


#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 512M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer = 50M

#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
 
Du kannst übrigens den Text von Konfigurationen und Logs in Code-Tags (#-Button im Foren-Editor) setzen.
Find ich sinnvoller.



Und wo steht da im Abschnitt [mysqld] das notwendige
Code:
innodb_use_native_aio = 0
drin?
 
Code:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port		= 3306
socket		= /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket		= /var/run/mysqld/mysqld.sock
nice		= 0

[mysqld]
#
# * Basic Settings
#
user		= mysql
pid-file	= /var/run/mysqld/mysqld.pid
socket		= /var/run/mysqld/mysqld.sock
port		= 3306
basedir		= /usr
datadir		= /var/lib/mysql
tmpdir		= /tmp
lc-messages-dir	= /usr/share/mysql
skip-external-locking
innodb_use_native_aio = 0
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address		= 127.0.0.1
#
# * Fine Tuning
#
key_buffer		= 512M
max_allowed_packet	= 16M
thread_stack		= 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit	= 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#log_slow_queries	= /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id		= 1
#log_bin			= /var/log/mysql/mysql-bin.log
expire_logs_days	= 10
max_binlog_size         = 100M
#binlog_do_db		= include_database_name
#binlog_ignore_db	= include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet	= 16M

[mysql]
#no-auto-rehash	# faster start of mysql but no tab completition

[isamchk]
key_buffer		= 50M

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/



So nun ist er drin.
Problem gelöst, Mysql Läuft wieder.

Vielen lieben Dank :-)
 
Back
Top