原因:oracle資料庫服務器根目錄使用率達到100%
處理:洗掉了LOG檔案,并重啟了服務器還是一樣
服務器情況如下:
[root@otcdb1 /]# df -alh
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 83G 79G 0 100% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 32G 52K 32G 1% /dev/shm
/dev/sda1 190M 41M 140M 23% /boot
/dev/sdb1 394G 106G 268G 29% /db
none 0 0 0 - /proc/sys/fs/binfmt_misc
none 0 0 0 - /sys/kernel/config
[root@otcdb1 /]# du -skh
du: 無法訪問"./proc/119298/task/119298/fd/4": 沒有那個檔案或目錄
du: 無法訪問"./proc/119298/task/119298/fdinfo/4": 沒有那個檔案或目錄
du: 無法訪問"./proc/119298/fd/4": 沒有那個檔案或目錄
du: 無法訪問"./proc/119298/fdinfo/4": 沒有那個檔案或目錄
120G .
[root@otcdb1 /]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 5496832 238088 5258744 5% /
tmpfs 8245324 14 8245310 1% /dev/shm
/dev/sda1 51200 39 51161 1% /boot
/dev/sdb1 26214400 91 26214309 1% /db
[root@otcdb1 /]# free -g
total used free shared buffers cached
Mem: 62 52 10 0 0 0
-/+ buffers/cache: 51 11
Swap: 17 0 17
[root@otcdb1 /]# lsof|grep deleted
[root@otcdb1 /]#
[root@otcdb1 /]# du -h -x --max-depth=1
258M ./home
12K ./.dbus
4.0K ./mnt
176M ./lib
608K ./tmp
4.0K ./db
5.3G ./usr
16K ./.sftp
0 ./misc
3.1M ./root
0 ./proc
12M ./bin
4.0K ./srv
4.0K ./media
16K ./lost+found
47M ./etc
23M ./sbin
4.0K ./cgroup
4.9G ./opt
2.0K ./boot
0 ./net
1.3G ./var
0 ./dev
32M ./lib64
0 ./sys
0 ./selinux
8.0K ./app
14G .
[root@otcdb1 /]#ls -al
總用量 2097282
dr-xr-xr-x. 29 root root 4096 10月 23 17:15 .
dr-xr-xr-x. 29 root root 4096 10月 23 17:15 ..
drwxr-xr-x. 3 root root 4096 11月 14 2016 app
-rw-r--r--. 1 root root 0 10月 23 17:15 .autofsck
dr-xr-xr-x. 2 root root 4096 10月 23 17:11 bin
dr-xr-xr-x. 5 root root 1024 8月 22 05:43 boot
drwxr-xr-x. 10 root root 4096 9月 12 2016 cgroup
drwxr-xr-x. 4 root root 4096 11月 23 2016 db
drwx------. 3 root root 4096 9月 12 2016 .dbus
drwxr-xr-x. 16 root root 3700 10月 23 17:16 dev
drwxr-xr-x. 151 root root 12288 10月 26 10:53 etc
drwxr-xr-x. 3 root root 4096 2月 10 2017 home
dr-xr-xr-x. 13 root root 4096 9月 12 2016 lib
dr-xr-xr-x. 11 root root 12288 9月 12 2016 lib64
drwx------. 2 root root 16384 9月 12 2016 lost+found
drwxr-xr-x. 2 root root 4096 9月 13 2016 media
drwxr-xr-x. 2 root root 0 10月 23 17:16 misc
drwxr-xr-x. 2 root root 4096 6月 28 2011 mnt
drwxr-xr-x. 2 root root 0 10月 23 17:16 net
drwxr-xr-x. 5 root root 4096 9月 14 2016 opt
dr-xr-xr-x. 481 root root 0 10月 23 17:15 proc
dr-xr-x---. 26 root root 4096 10月 23 17:16 root
dr-xr-xr-x. 2 root root 12288 10月 23 17:16 sbin
drwxr-xr-x. 7 root root 0 10月 23 17:15 selinux
drwxr-xr-x. 2 root root 4096 9月 29 15:16 .sftp
drwxr-xr-x. 2 root root 4096 6月 28 2011 srv
-rwxrwxrwx. 1 root root 2147483648 8月 22 05:46 swapfile
drwxr-xr-x. 13 root root 0 10月 23 17:15 sys
drwxrwxrwt. 10 root root 4096 10月 23 17:24 tmp
drwxr-xr-x. 13 root root 4096 9月 12 2016 usr
drwxr-xr-x. 23 root root 4096 9月 12 2016 var
找不到占用
求各位大神幫忙,謝謝!
uj5u.com熱心網友回復:
看下資料庫默認保存位置 會有個很大的檔案 保存的是歷史資料 正常情況下是不能洗掉的 如果沒中毒的話 擴容吧uj5u.com熱心網友回復:
目前查到總的使用空間為120G,db目錄使用106g沒有掛載在根目錄下, 根目錄應該才使用14g,為什么會有DF顯示出來是79G出來,占滿了轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/192858.html
標籤:系統維護與使用區
上一篇:第一天-Linux的今生前世
下一篇:linuxcnc配置
