우분투 VM을 사용중에 디스크용량이 넘쳤다는 알람발생.
[zabbix ~ # ] uname -a
Linux zabbix 3.19.0-80-generic #88~14.04.1-Ubuntu SMP Fri Jan 13 14:54:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[zabbix ~ # ] df -k
Filesystem 1K-blocks Used Available Use% Mounted on
udev 2009368 4 2009364 1% /dev
tmpfs 404744 720 404024 1% /run
/dev/mapper/zabbix--vg-root 7633800 5795356 1427616 81% /
none 4 0 4 0% /sys/fs/cgroup
none 5120 0 5120 0% /run/lock
none 2023708 0 2023708 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 240972 160455 68076 71% /boot
[zabbix ~ # ] df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 720K 395M 1% /run
/dev/mapper/zabbix--vg-root 7.3G 5.6G 1.4G 81% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 157M 67M 71% /boot
[zabbix /var/cache/apt/archives # ] du -sh
1.1G .
/var/cache/apt/archives 삭제하기로 결정
[zabbix /var/cache/apt/archives # ] apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Del linux-image-generic-lts-vivid 3.19.0.56.40 [2,282 B]
Del php5-gd 5.5.9+dfsg-1ubuntu4.16 [27.8 kB]
Del libnss3-nssdb 2:3.23-0ubuntu0.14.04.1 [10.6 kB]
Del libnss3 2:3.21-0ubuntu0.14.04.1 [1,103 kB]
0.4G 감소.
[zabbix /var/cache/apt/archives # ] df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 720K 395M 1% /run
/dev/mapper/zabbix--vg-root 7.3G 5.2G 1.8G 76% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 157M 67M 71% /boot
안되는거
[zabbix /var/cache/apt/archives # ] apt clean
E: Invalid operation clean
되는거
[zabbix /var/cache/apt/archives # ] apt-get clean
[zabbix /var/cache/apt/archives # ] du -sh
44K .
[zabbix /var/cache/apt/archives # ] df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 720K 395M 1% /run
/dev/mapper/zabbix--vg-root 7.3G 4.4G 2.5G 64% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 157M 67M 71% /boot
성공!!! 작업종료.
'Unix' 카테고리의 다른 글
Opensource monitoring tool trends (0) | 2021.01.08 |
---|---|
구형맥미니 Macos USB제작, 클린설치 (0) | 2017.07.11 |
awk 칼럼 바꾸기 (sed) (0) | 2017.02.22 |
[cygwin] crontab 설정문제 (0) | 2016.12.08 |
커맨드라인의 간단한 아파치(Apache) 로그분석 (1) | 2015.05.19 |
댓글