[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[OT] Mysql restaurar ficheros fisicos de un backup lvmsnapshot + rsync



Buenas, trato de restaurar una determinada BBDD de la que hice un
backup. La forma de realizar el backup es usando la utilidad
mylvmbackup, que básicamente lo que hace es bloquear las tablas a modo
read only y posteriormente hacer el snapshots de /var/lib/mysql,
desbloquear las tablas, hacer el backup con rsync y cuando acaba
remover el snapshots.

Para restaurar esto, además de mirar en foros, he mirado la
documentación de Mysql:

https://dev.mysql.com/doc/refman/5.5/en/innodb-backup.html

En mi caso, creo que sería el Cold Backup, en frío y parado, puesto
que hago uso de un snapshots.

Lo que hago es instalar Mysql, parar mysql en la nueva máquina donde
quiero restaurar, coger los ficheros ibdata1, y los ib_logfile0 y
logfile1 del backup y copiarlos. Darle los permisos adecuados y
finalmente intentar arrancar Mysql...

Pero recibo estos errores:

Error    : Incorrect information in file: './BBDD/list.frm'
error    : Corrupt
BBDD.product
Error    : Incorrect information in file: './BBDD/product.frm'
error    : Corrupt
BBDD.queue
Error    : Incorrect information in file: './BBDD/queue.frm'
error    : Corrupt
BBDD.savingCheck
Error    : Incorrect information in file: './BBDD/savingCheck.frm'
error    : Corrupt
BBDD.sessions
note     : The storage engine for the table doesn't support repair
BBDD.station
note     : The storage engine for the table doesn't support repair
BBDD.store
Error    : Incorrect information in file: './BBDD/store.frm'
error    : Corrupt
BBDD.ticket
Error    : Incorrect information in file: './BBDD/ticket.frm'
error    : Corrupt
BBDD.transaction
Error    : Incorrect information in file: './BBDD/transaction.frm'
error    : Corrupt
BBDD.transactionState
Error    : Incorrect information in file: './BBDD/transactionState.frm'
error    : Corrupt
BBDD.user
Error    : Incorrect information in file: './BBDD/user.frm'
error    : Corrupt
BBDD.userList
note     : The storage engine for the table doesn't support repair

Además de estos:

160202 12:15:51 [Note] Plugin 'FEDERATED' is disabled.
160202 12:15:51 InnoDB: The InnoDB memory heap is disabled
160202 12:15:51 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160202 12:15:51 InnoDB: Compressed tables use zlib 1.2.8
160202 12:15:51 InnoDB: Using Linux native AIO
160202 12:15:51 InnoDB: Initializing buffer pool, size = 128.0M
160202 12:15:51 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
160202 12:15:51 [ERROR] Plugin 'InnoDB' init function returned error.
160202 12:15:51 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
160202 12:15:51 [ERROR] Unknown/unsupported storage engine: InnoDB
160202 12:15:51 [ERROR] Aborting

He ajustado el innodb_log_file_size a el valor que me dice, 50331648
en el my.cnf pero aún así no arranca...

En teoría, dice que está corrupto pero el backup se realizó bien...

Alguna idea de por qué puede ser?

Gracias de antemano.


Reply to: