...
執行 /u01/app/oracle/ovm-manager-3/ovm_tools/bin/BackupDatabase -w
mysqlbackup: WARNING: The value of 'innodb_checksum_algorithm' option provided to mysqlbackup might be incompatible with server config.
mysqlbackup: ERROR: Page at offset 5242880 in /u01/app/oracle/mysql/data/appfw/APPFW_EVENTS.ibd seems corrupt!
解決方案:
...
// 檢查資料表狀態
mysqlcheck -uroot -p -S /u01/app/oracle/mysql/data/mysqld.sock --databases appfw
mysql -u appfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw mysql> select count(*) from APPFW_EVENTS; +----------+ | count(*) | +----------+ | 18650 | +----------+ 1 row in set (0.01 sec)
// 重建 table APPFW_EVENTS
service ovmm stop mysqldump -uappfw -p -S /u01/app/oracle/mysql/data/mysqld.sock --databases appfw --tables APPFW_EVENTS > table_dump.appfw_events.sql mysql -u appfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw mysql> create table APPFW_EVENTS_NEW like APPFW_EVENTS; mysql> rename table APPFW_EVENTS to APPFW_EVENTS_OLD; mysql> rename table APPFW_EVENTS_NEW to APPFW_EVENTS; // Import the table mysql -uappfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw < table_dump.appfw_events.sql // Drop the old table mysql -u appfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw mysql> drop table APPFW_EVENTS_OLD;
...
...
...
...
執行 /u01/app/oracle/ovm-manager-3/ovm_tools/bin/BackupDatabase -w
mysqlbackup: WARNING: The value of 'innodb_checksum_algorithm' option provided to mysqlbackup might be incompatible with server config.
mysqlbackup: ERROR: Page at offset 5242880 in /u01/app/oracle/mysql/data/appfw/APPFW_EVENTS.ibd seems corrupt!
解決方案:
...
// 檢查資料表狀態
mysqlcheck -uroot -p -S /u01/app/oracle/mysql/data/mysqld.sock --databases appfw
mysql -u appfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw mysql> select count(*) from APPFW_EVENTS; +----------+ | count(*) | +----------+ | 18650 | +----------+ 1 row in set (0.01 sec)
// 重建 table APPFW_EVENTS
service ovmm stop mysqldump -uappfw -p -S /u01/app/oracle/mysql/data/mysqld.sock --databases appfw --tables APPFW_EVENTS > table_dump.appfw_events.sql mysql -u appfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw mysql> create table APPFW_EVENTS_NEW like APPFW_EVENTS; mysql> rename table APPFW_EVENTS to APPFW_EVENTS_OLD; mysql> rename table APPFW_EVENTS_NEW to APPFW_EVENTS; // Import the table mysql -uappfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw < table_dump.appfw_events.sql // Drop the old table mysql -u appfw -p -S /u01/app/oracle/mysql/data/mysqld.sock appfw mysql> drop table APPFW_EVENTS_OLD;
...
...