2019年6月24日月曜日
zabbixのレコード数を確認
mysql> select table_name, table_rows from information_schema.TABLES where table_schema = 'zabbix';
2019年6月14日金曜日
Zabbix history_uint.ibd 肥大化して困った。
history_uint.ibdが肥大化して52Gになった。
-rw-r-----. 1 mysql mysql 52495908864 6月 14 09:20 history_uint.ibd
-rw-r-----. 1 mysql mysql 7977566208 6月 14 09:20 trends_uint.ibd
# /etc/init.d/zabbix-server stop
1.現テーブルをコピーして別テーブルで保存(1週間分)
timestampについては以下
https://www.epochconverter.com/
mysql> CREATE TABLE history_uint_new LIKE history_uint;
mysql> INSERT INTO history_uint_new SELECT * FROM history_uint WHERE clock > 'xxxxxxxxxx';
2.コピーした別テーブルを現テーブルに移行
mysql> ALTER TABLE history_uint RENAME history_uint_old;
mysql> ALTER TABLE history_uint_new RENAME history_uint;
5.zabbix-server 起動
# /etc/init.d/zabbix-server start
-rw-r-----. 1 mysql mysql 52495908864 6月 14 09:20 history_uint.ibd
-rw-r-----. 1 mysql mysql 7977566208 6月 14 09:20 trends_uint.ibd
# /etc/init.d/zabbix-server stop
1.現テーブルをコピーして別テーブルで保存(1週間分)
timestampについては以下
https://www.epochconverter.com/
mysql> CREATE TABLE history_uint_new LIKE history_uint;
mysql> INSERT INTO history_uint_new SELECT * FROM history_uint WHERE clock > 'xxxxxxxxxx';
2.コピーした別テーブルを現テーブルに移行
mysql> ALTER TABLE history_uint RENAME history_uint_old;
mysql> ALTER TABLE history_uint_new RENAME history_uint;
5.zabbix-server 起動
# /etc/init.d/zabbix-server start
登録:
コメント (Atom)
SSD比較
https://kakaku.com/prdcompare/prdcompare.aspx?pd_cmpkey=K0001673420_K0001588762_K0001559684_K0001504089_K0001546441_K0001662527&pd_ctg=0...
-
■20210216追記 TIB_js-studiocomm_6.16.0_linux_x86_64.tgz ■コミュニティ版をダウンロード https://community.jaspersoft.com/download からJasperStudio 6.6をダウンロード ...
-
■Rocky Linux8 ORACLE RPM インストール # curl -o oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/ap...
-
Permission denied: [client 127.0.0.1:33562] mod_wsgi (pid=5683): Unable to connect to WSGI daemon process 'analyze' on '/etc/htt...