Ubuntu size: Difference between revisions
Jump to navigation
Jump to search
(Created page with " df -h du -sk * | sort -nr | head -10 du -hs directory/* du -h directory/* du -ah Directory/* journalctl --vacuum-time=10d lsof /var/lib/mysql/zabbix/*.ibd mysql -u root -p use zabbix delete from auditlog; delete from history_text; delete from history_uint; delete from history;") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
du -ah Directory/* | du -ah Directory/* | ||
journalctl --disk-usage | |||
journalctl --vacuum-time=10d | journalctl --vacuum-time=10d | ||
lsof /var/lib/ | lsof /var/lib/my | ||
mysql | |||
mysql -u root -p | |||
SHOW BINARY LOGS; | |||
PURGE BINARY LOGS BEFORE now(); | |||
use zabbix | use zabbix | ||
delete from | DELETE FROM table ORDER BY the field DESC|ASC limit 100 | ||
delete from auditlog limit 100000; | |||
delete from history limit 100000; | |||
delete from history_uint; | delete from history_uint limit 100000; | ||
delete from | delete from history_text limit 10000; |
Latest revision as of 09:07, 22 December 2023
df -h
du -sk * | sort -nr | head -10
du -hs directory/*
du -h directory/*
du -ah Directory/*
journalctl --disk-usage
journalctl --vacuum-time=10d
lsof /var/lib/my
mysql -u root -p
SHOW BINARY LOGS;
PURGE BINARY LOGS BEFORE now();
use zabbix
DELETE FROM table ORDER BY the field DESC|ASC limit 100
delete from auditlog limit 100000;
delete from history limit 100000;
delete from history_uint limit 100000;
delete from history_text limit 10000;