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)
keychron k8 max
https://launcher.keychron.com/ $ sudo tee /etc/udev/rules.d/99-keychron.rules <<EOF KERNEL=="hidraw*", SUBSYSTEM=="hid...
-
■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...
-
$ alias sqlplus='rlwrap -pRed -if /usr/local/opt/rlwrap-extensions/sqlplus sqlplus64' $ sqlplus user/password@192.168.1.xxx:1521/sid...