OpenVZ MySQL InnoDB não inicia

1

Eu tenho um OpenVZ Server com 4GB de RAM e tentei instalar o MySQL em várias distros (Ubuntu 12.04 64Bit, Ubuntu 12.10 64Bit, Debian 7 64Bit) e sempre recebo os mesmos erros:

 130718  6:57:27 [Note] Plugin 'FEDERATED' is disabled.
130718  6:57:27 InnoDB: The InnoDB memory heap is disabled
130718  6:57:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130718  6:57:27 InnoDB: Compressed tables use zlib 1.2.7
130718  6:57:27 InnoDB: Using Linux native AIO
130718  6:57:27  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.
130718  6:57:29  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
130718  6:57:29 InnoDB: Fatal error: cannot initialize AIO sub-system
130718  6:57:29 [ERROR] Plugin 'InnoDB' init function returned error.
130718  6:57:29 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130718  6:57:29 [ERROR] Unknown/unsupported storage engine: InnoDB
130718  6:57:29 [ERROR] Aborting

exceto no Ubuntu 12.04 64 Bit, mas eu gostaria de usar uma versão mais recente.

Eu tentei definir innodb_use_native_aio = 0 em my.cnf, mas isso não ajuda. Eu ficaria muito grato se alguém pudesse me ajudar com este problema:)

    
por coldice4 18.07.2013 / 13:03

3 respostas

1

Como este é o kernel OpenVZ®, você pode ter atingido algum limite que não foi configurado corretamente. Experimente:

cat /proc/user_beancounters

e verifique se algumas linhas não têm zero failcnt . Ajuste adequadamente para corrigir.

Outra coisa é simplesmente chroot no VE em questão, por e. g .:

chroot /vz/root/1064 /bin/bash

e tente iniciar mysqld diretamente para ver se ele é relacionado ao OpenVZ®. Deixe-nos saber se você precisar de mais conselhos.

    
por 11.04.2015 / 09:53
0

de acordo com isso existem duas soluções:

  • adicione em my.cnf na seção mysqld innodb_use_native_aio = 0

ou

  • echo 65536 > / proc / sys / fs / aio-max-nr
por 18.07.2013 / 15:01
-1

Edite seu my.cnf :

ignore_builtin_innodb
default_storage_engine=MyISAM

você também pode adicionar:

skip-innodb

Eu acho que mais software é compatível com o antigo MyISAM. Foi o que funcionou para mim com um kernel personalizado do Debian 7 executando uma configuração básica. Esteja avisado que não testei isso em um ambiente de produção!

    
por 29.09.2013 / 15:43