CactiEZ異常關機重啓有圖無數據

 CactiEZ異常關機重啓後,主機鑑控的內存、cpu、硬盤空間等無數據顯示,爲主機添加的閾值所有消失。mysql

  cactiezhd

查看日誌sql

[root@CactiEZ ~]# tail -f /var/log/mysqld.logide

130410 10:58:35 [ERROR] /usr/libexec/mysqld: Table './cacti/poller_item' is marked as crashed and should be repaired3d

130410 10:58:36 [ERROR] /usr/libexec/mysqld: Table './cacti/poller_item' is marked as crashed and should be repaired日誌

130410 10:58:37 [ERROR] /usr/libexec/mysqld: Table './cacti/poller_item' is marked as crashed and should be repairedblog

修復出問題的表
 
[root@CactiEZ /]# myisamchk -c -r /var/lib/mysql/cacti/poller_item.MYI
- recovering (with sort) MyISAM-table '/var/lib/mysql/cacti/poller_item.MYI'
Data records: 707
- Fixing index 1
Wrong bytesec:   0-  0-  0 at     137228; Skipped
Wrong bytesec:   0-  0-  0 at     137228; Skipped
Wrong bytesec:   0-  0-  0 at     137228; Skipped
Wrong bytesec:   0-  0-  0 at     137228; Skipped
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
Data records: 691
 
修復完成後等待幾分鐘,查看圖形的數據能夠正常顯示了,但閾值項目仍是空的,再次查看日誌。
 

cactiezhd2

[root@CactiEZ ~]# tail -f /var/log/mysqld.log
130410 13:05:48 [ERROR] /usr/libexec/mysqld: Table './cacti/thold_data' is marked as crashed and should be repaired
130410 13:05:50 [ERROR] /usr/libexec/mysqld: Table './cacti/thold_data' is marked as crashed and should be repaired
130410 13:05:59 [ERROR] /usr/libexec/mysqld: Table './cacti/thold_data' is marked as crashed and should be repaired
130410 13:06:02 [ERROR] /usr/libexec/mysqld: Table './cacti/thold_data' is marked as crashed and should be repaired
再次修復出問題的表
[root@CactiEZ ~]# myisamchk -c -r /var/lib/mysql/cacti/thold_data.MYI
- recovering (with sort) MyISAM-table '/var/lib/mysql/cacti/thold_data.MYI'
Data records: 111
- Fixing index 1
Wrong block with wrong total length starting at 580
Wrong block with wrong total length starting at 1776
Wrong block with wrong total length starting at 2740
Wrong block with wrong total length starting at 2936
Wrong block with wrong total length starting at 4032
Wrong block with wrong total length starting at 10072
Found block with too small length at 11544; Skipped
Found block with too small length at 14676; Skipped
Found block with too small length at 21632; Skipped
Found block with too small length at 21772; Skipped
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7
- Fixing index 8
- Fixing index 9
Data records: 102
 
修改完成後,從系統裏能夠看到閾值的項目所有回來了。
 

yuzhi

相關文章
相關標籤/搜索