Q & A

    內容表格
    to the older version or return to 版本存檔.

    Combined revision comparison

    正在比較的版本由alang修改於13:10, 11 Feb 2020,另一版本為目前, 由alang修改於15:18, 11 Feb 2020

    ...

    Q: 執行手動備份 OVMM 資料庫失敗
    執行 /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!

    解決方案:

    1. 檢查資料表 APPFW_EVENTS 是否已損壞
    2. 如果已損壞,嘗試執行修復資料表
    3. 如果顯示正常,嘗試手動重建資料表
    4. 再執行備份一次

    ...

    // 檢查資料表狀態

    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;
    

    ...

    Q: OVMM 主機的 MySQL DB 耗盡所有磁碟空間

    ...

    Version from 13:10, 11 Feb 2020

    This revision modified by alang (Ban)

    ...

    目前版本

    This revision modified by alang (Ban)

    ...

    Q: 執行手動備份 OVMM 資料庫失敗
    執行 /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!

    解決方案:

    1. 檢查資料表 APPFW_EVENTS 是否已損壞
    2. 如果已損壞,嘗試執行修復資料表
    3. 如果顯示正常,嘗試手動重建資料表
    4. 再執行備份一次

    ...

    // 檢查資料表狀態

    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;
    

    ...

    Q: OVMM 主機的 MySQL DB 耗盡所有磁碟空間

    ...

    Powered by MindTouch Core