免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5441 | 回复: 18
打印 上一主题 下一主题

[系统管理] 如何查找占用根目录的文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-06-16 15:25 |只看该作者 |倒序浏览
CentOS 6.4做WEB服务,才用三个月却发现根目录占用异常,怎么能找出被占用的目录?


[root@SERVER2 ~]# df -aT
/dev/mapper/vg_server2-lv_root
              ext4    51606140  39690896   9293804  82% /
proc          proc           0         0         0   -  /proc
sysfs        sysfs           0         0         0   -  /sys
devpts      devpts           0         0         0   -  /dev/pts
tmpfs        tmpfs     4029792         0   4029792   0% /dev/shm
/dev/sda1     ext4      495844     37697    432547   9% /boot
/dev/mapper/vg_server2-lv_home
              ext4    45066680    184188  42593240   1% /home
none   binfmt_misc           0         0         0   -  /proc/sys/fs/binfmt_misc
sunrpc  rpc_pipefs           0         0         0   -  /var/lib/nfs/rpc_pipefs
[root@SERVER2 ~]# du -sh /*
7.6M    /bin
27M     /boot
196K    /dev
26M     /etc
20K     /home
135M    /lib
25M     /lib64
16K     /lost+found
4.0K    /media
0       /misc
4.0K    /mnt
0       /net
8.0K    /opt
du: 鏍娉璁块?/proc/24287/task/24310/fdinfo/81": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/24287/task/24411/fdinfo/60": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25300/task/25300/fd/4": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25300/task/25300/fdinfo/4": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25300/fd/4": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25300/fdinfo/4": 娌℃椋涓?浠舵珏?
0       /proc
132K    /root
15M     /sbin
0       /selinux
4.0K    /srv
0       /sys
172K    /tmp
14G     /usr
118M    /var

[root@SERVER2 ~]# du -h --max-depth=1 /
8.0K    /opt
16K     /lost+found
0       /sys
27M     /boot
14G     /usr
0       /selinux
7.6M    /bin
196K    /dev
4.0K    /mnt
4.0K    /media
118M    /var
26M     /etc
20K     /home
du: 鏍娉璁块?/proc/25323/task/25323/fd/4": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25323/task/25323/fdinfo/4": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25323/fd/4": 娌℃椋涓?浠舵珏?
du: 鏍娉璁块?/proc/25323/fdinfo/4": 娌℃椋涓?浠舵珏?
0       /proc
132K    /root
135M    /lib
0       /misc
25M     /lib64
0       /net
15M     /sbin
172K    /tmp
4.0K    /srv
15G     /

有高手帮我看一下吗?

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2014-06-16 15:38 |只看该作者
14G都在/usr目录下,不是挺明显么

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
3 [报告]
发表于 2014-06-16 15:38 |只看该作者
不会又是nas mount点的问题吧?

论坛徽章:
0
4 [报告]
发表于 2014-06-16 15:49 |只看该作者
本帖最后由 jason-shen 于 2014-06-16 16:02 编辑

问题是有38GB被占用,Usr用14GB是正常的,跟下的15GB让谁占用的,另外还有近10个GB找不到了。

disk.jpg (76.38 KB, 下载次数: 66)

disk.jpg

disk1.jpg (19.79 KB, 下载次数: 71)

disk1.jpg

论坛徽章:
0
5 [报告]
发表于 2014-06-16 15:59 |只看该作者
q1208c 发表于 2014-06-16 15:38
不会又是nas mount点的问题吧?


没有mount nas

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
6 [报告]
发表于 2014-06-16 16:14 |只看该作者
lsof /tmp 看一下.

如果你发现有 (delete) 的文件, 并且, 尺寸较大. 那你可能要重启一下访问这个文件 应用了.

论坛徽章:
0
7 [报告]
发表于 2014-06-16 16:28 |只看该作者
q1208c 发表于 2014-06-16 16:14
lsof /tmp 看一下.

如果你发现有 (delete) 的文件, 并且, 尺寸较大. 那你可能要重启一下访问这个文件 应 ...



[root@SERVER2 ~]# lsof +d /
COMMAND     PID      USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
init          1      root  cwd    DIR  253,0     4096      2 /
init          1      root  rtd    DIR  253,0     4096      2 /
kthreadd      2      root  cwd    DIR  253,0     4096      2 /
kthreadd      2      root  rtd    DIR  253,0     4096      2 /
migration     3      root  cwd    DIR  253,0     4096      2 /
migration     3      root  rtd    DIR  253,0     4096      2 /
ksoftirqd     4      root  cwd    DIR  253,0     4096      2 /
ksoftirqd     4      root  rtd    DIR  253,0     4096      2 /
migration     5      root  cwd    DIR  253,0     4096      2 /
migration     5      root  rtd    DIR  253,0     4096      2 /
watchdog/     6      root  cwd    DIR  253,0     4096      2 /
watchdog/     6      root  rtd    DIR  253,0     4096      2 /
migration     7      root  cwd    DIR  253,0     4096      2 /
migration     7      root  rtd    DIR  253,0     4096      2 /
migration     8      root  cwd    DIR  253,0     4096      2 /
migration     8      root  rtd    DIR  253,0     4096      2 /
ksoftirqd     9      root  cwd    DIR  253,0     4096      2 /
ksoftirqd     9      root  rtd    DIR  253,0     4096      2 /
watchdog/    10      root  cwd    DIR  253,0     4096      2 /
watchdog/    10      root  rtd    DIR  253,0     4096      2 /
migration    11      root  cwd    DIR  253,0     4096      2 /
migration    11      root  rtd    DIR  253,0     4096      2 /
migration    12      root  cwd    DIR  253,0     4096      2 /
migration    12      root  rtd    DIR  253,0     4096      2 /
ksoftirqd    13      root  cwd    DIR  253,0     4096      2 /
ksoftirqd    13      root  rtd    DIR  253,0     4096      2 /
watchdog/    14      root  cwd    DIR  253,0     4096      2 /
watchdog/    14      root  rtd    DIR  253,0     4096      2 /
migration    15      root  cwd    DIR  253,0     4096      2 /
migration    15      root  rtd    DIR  253,0     4096      2 /
migration    16      root  cwd    DIR  253,0     4096      2 /
migration    16      root  rtd    DIR  253,0     4096      2 /
ksoftirqd    17      root  cwd    DIR  253,0     4096      2 /
ksoftirqd    17      root  rtd    DIR  253,0     4096      2 /
watchdog/    18      root  cwd    DIR  253,0     4096      2 /
watchdog/    18      root  rtd    DIR  253,0     4096      2 /
events/0     19      root  cwd    DIR  253,0     4096      2 /
events/0     19      root  rtd    DIR  253,0     4096      2 /
events/1     20      root  cwd    DIR  253,0     4096      2 /
events/1     20      root  rtd    DIR  253,0     4096      2 /
events/2     21      root  cwd    DIR  253,0     4096      2 /
events/2     21      root  rtd    DIR  253,0     4096      2 /
events/3     22      root  cwd    DIR  253,0     4096      2 /
events/3     22      root  rtd    DIR  253,0     4096      2 /
cgroup       23      root  cwd    DIR  253,0     4096      2 /
cgroup       23      root  rtd    DIR  253,0     4096      2 /
khelper      24      root  cwd    DIR  253,0     4096      2 /
khelper      24      root  rtd    DIR  253,0     4096      2 /
netns        25      root  cwd    DIR  253,0     4096      2 /
netns        25      root  rtd    DIR  253,0     4096      2 /
async/mgr    26      root  cwd    DIR  253,0     4096      2 /
async/mgr    26      root  rtd    DIR  253,0     4096      2 /
pm           27      root  cwd    DIR  253,0     4096      2 /
pm           27      root  rtd    DIR  253,0     4096      2 /
sync_supe    28      root  cwd    DIR  253,0     4096      2 /
sync_supe    28      root  rtd    DIR  253,0     4096      2 /
bdi-defau    29      root  cwd    DIR  253,0     4096      2 /
bdi-defau    29      root  rtd    DIR  253,0     4096      2 /
kintegrit    30      root  cwd    DIR  253,0     4096      2 /
kintegrit    30      root  rtd    DIR  253,0     4096      2 /
kintegrit    31      root  cwd    DIR  253,0     4096      2 /
kintegrit    31      root  rtd    DIR  253,0     4096      2 /
kintegrit    32      root  cwd    DIR  253,0     4096      2 /
kintegrit    32      root  rtd    DIR  253,0     4096      2 /
kintegrit    33      root  cwd    DIR  253,0     4096      2 /
kintegrit    33      root  rtd    DIR  253,0     4096      2 /
kblockd/0    34      root  cwd    DIR  253,0     4096      2 /
kblockd/0    34      root  rtd    DIR  253,0     4096      2 /
kblockd/1    35      root  cwd    DIR  253,0     4096      2 /
kblockd/1    35      root  rtd    DIR  253,0     4096      2 /
kblockd/2    36      root  cwd    DIR  253,0     4096      2 /
kblockd/2    36      root  rtd    DIR  253,0     4096      2 /
kblockd/3    37      root  cwd    DIR  253,0     4096      2 /
kblockd/3    37      root  rtd    DIR  253,0     4096      2 /
kacpid       38      root  cwd    DIR  253,0     4096      2 /
kacpid       38      root  rtd    DIR  253,0     4096      2 /
kacpi_not    39      root  cwd    DIR  253,0     4096      2 /
kacpi_not    39      root  rtd    DIR  253,0     4096      2 /
kacpi_hot    40      root  cwd    DIR  253,0     4096      2 /
kacpi_hot    40      root  rtd    DIR  253,0     4096      2 /
ata/0        41      root  cwd    DIR  253,0     4096      2 /
ata/0        41      root  rtd    DIR  253,0     4096      2 /
ata/1        42      root  cwd    DIR  253,0     4096      2 /
ata/1        42      root  rtd    DIR  253,0     4096      2 /
ata/2        43      root  cwd    DIR  253,0     4096      2 /
ata/2        43      root  rtd    DIR  253,0     4096      2 /
ata/3        44      root  cwd    DIR  253,0     4096      2 /
ata/3        44      root  rtd    DIR  253,0     4096      2 /
ata_aux      45      root  cwd    DIR  253,0     4096      2 /
ata_aux      45      root  rtd    DIR  253,0     4096      2 /
ksuspend_    46      root  cwd    DIR  253,0     4096      2 /
ksuspend_    46      root  rtd    DIR  253,0     4096      2 /
khubd        47      root  cwd    DIR  253,0     4096      2 /
khubd        47      root  rtd    DIR  253,0     4096      2 /
kseriod      48      root  cwd    DIR  253,0     4096      2 /
kseriod      48      root  rtd    DIR  253,0     4096      2 /
md/0         49      root  cwd    DIR  253,0     4096      2 /
md/0         49      root  rtd    DIR  253,0     4096      2 /
md/1         50      root  cwd    DIR  253,0     4096      2 /
md/1         50      root  rtd    DIR  253,0     4096      2 /
md/2         51      root  cwd    DIR  253,0     4096      2 /
md/2         51      root  rtd    DIR  253,0     4096      2 /
md/3         52      root  cwd    DIR  253,0     4096      2 /
md/3         52      root  rtd    DIR  253,0     4096      2 /
md_misc/0    53      root  cwd    DIR  253,0     4096      2 /
md_misc/0    53      root  rtd    DIR  253,0     4096      2 /
md_misc/1    54      root  cwd    DIR  253,0     4096      2 /
md_misc/1    54      root  rtd    DIR  253,0     4096      2 /
md_misc/2    55      root  cwd    DIR  253,0     4096      2 /
md_misc/2    55      root  rtd    DIR  253,0     4096      2 /
md_misc/3    56      root  cwd    DIR  253,0     4096      2 /
md_misc/3    56      root  rtd    DIR  253,0     4096      2 /
khungtask    57      root  cwd    DIR  253,0     4096      2 /
khungtask    57      root  rtd    DIR  253,0     4096      2 /
kswapd0      58      root  cwd    DIR  253,0     4096      2 /
kswapd0      58      root  rtd    DIR  253,0     4096      2 /
ksmd         59      root  cwd    DIR  253,0     4096      2 /
ksmd         59      root  rtd    DIR  253,0     4096      2 /
khugepage    60      root  cwd    DIR  253,0     4096      2 /
khugepage    60      root  rtd    DIR  253,0     4096      2 /
aio/0        61      root  cwd    DIR  253,0     4096      2 /
aio/0        61      root  rtd    DIR  253,0     4096      2 /
aio/1        62      root  cwd    DIR  253,0     4096      2 /
aio/1        62      root  rtd    DIR  253,0     4096      2 /
aio/2        63      root  cwd    DIR  253,0     4096      2 /
aio/2        63      root  rtd    DIR  253,0     4096      2 /
aio/3        64      root  cwd    DIR  253,0     4096      2 /
aio/3        64      root  rtd    DIR  253,0     4096      2 /
crypto/0     65      root  cwd    DIR  253,0     4096      2 /
crypto/0     65      root  rtd    DIR  253,0     4096      2 /
crypto/1     66      root  cwd    DIR  253,0     4096      2 /
crypto/1     66      root  rtd    DIR  253,0     4096      2 /
crypto/2     67      root  cwd    DIR  253,0     4096      2 /
crypto/2     67      root  rtd    DIR  253,0     4096      2 /
crypto/3     68      root  cwd    DIR  253,0     4096      2 /
crypto/3     68      root  rtd    DIR  253,0     4096      2 /
kthrotld/    73      root  cwd    DIR  253,0     4096      2 /
kthrotld/    73      root  rtd    DIR  253,0     4096      2 /
kthrotld/    74      root  cwd    DIR  253,0     4096      2 /
kthrotld/    74      root  rtd    DIR  253,0     4096      2 /
kthrotld/    75      root  cwd    DIR  253,0     4096      2 /
kthrotld/    75      root  rtd    DIR  253,0     4096      2 /
kthrotld/    76      root  cwd    DIR  253,0     4096      2 /
kthrotld/    76      root  rtd    DIR  253,0     4096      2 /
kpsmoused    78      root  cwd    DIR  253,0     4096      2 /
kpsmoused    78      root  rtd    DIR  253,0     4096      2 /
usbhid_re    79      root  cwd    DIR  253,0     4096      2 /
usbhid_re    79      root  rtd    DIR  253,0     4096      2 /
kstriped    110      root  cwd    DIR  253,0     4096      2 /
kstriped    110      root  rtd    DIR  253,0     4096      2 /
scsi_eh_0   206      root  cwd    DIR  253,0     4096      2 /
scsi_eh_0   206      root  rtd    DIR  253,0     4096      2 /
scsi_eh_1   222      root  cwd    DIR  253,0     4096      2 /
scsi_eh_1   222      root  rtd    DIR  253,0     4096      2 /
scsi_eh_2   248      root  cwd    DIR  253,0     4096      2 /
scsi_eh_2   248      root  rtd    DIR  253,0     4096      2 /
kdmflush    299      root  cwd    DIR  253,0     4096      2 /
kdmflush    299      root  rtd    DIR  253,0     4096      2 /
kdmflush    301      root  cwd    DIR  253,0     4096      2 /
kdmflush    301      root  rtd    DIR  253,0     4096      2 /
jbd2/dm-0   318      root  cwd    DIR  253,0     4096      2 /
jbd2/dm-0   318      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   319      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   319      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   320      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   320      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   321      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   321      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   322      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   322      root  rtd    DIR  253,0     4096      2 /
udevd       415      root  cwd    DIR  253,0     4096      2 /
udevd       415      root  rtd    DIR  253,0     4096      2 /
kdmflush    725      root  cwd    DIR  253,0     4096      2 /
kdmflush    725      root  rtd    DIR  253,0     4096      2 /
jbd2/sda1   759      root  cwd    DIR  253,0     4096      2 /
jbd2/sda1   759      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   760      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   760      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   761      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   761      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   762      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   762      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   763      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   763      root  rtd    DIR  253,0     4096      2 /
jbd2/dm-2   764      root  cwd    DIR  253,0     4096      2 /
jbd2/dm-2   764      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   765      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   765      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   766      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   766      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   767      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   767      root  rtd    DIR  253,0     4096      2 /
ext4-dio-   768      root  cwd    DIR  253,0     4096      2 /
ext4-dio-   768      root  rtd    DIR  253,0     4096      2 /
kauditd     811      root  cwd    DIR  253,0     4096      2 /
kauditd     811      root  rtd    DIR  253,0     4096      2 /
auditd     1032      root  cwd    DIR  253,0     4096      2 /
auditd     1032      root  rtd    DIR  253,0     4096      2 /
rsyslogd   1057      root  cwd    DIR  253,0     4096      2 /
rsyslogd   1057      root  rtd    DIR  253,0     4096      2 /
rpcbind    1100       rpc  cwd    DIR  253,0     4096      2 /
rpcbind    1100       rpc  rtd    DIR  253,0     4096      2 /
rpc.statd  1119   rpcuser  rtd    DIR  253,0     4096      2 /
rpciod/0   1147      root  cwd    DIR  253,0     4096      2 /
rpciod/0   1147      root  rtd    DIR  253,0     4096      2 /
rpciod/1   1148      root  cwd    DIR  253,0     4096      2 /
rpciod/1   1148      root  rtd    DIR  253,0     4096      2 /
rpciod/2   1149      root  cwd    DIR  253,0     4096      2 /
rpciod/2   1149      root  rtd    DIR  253,0     4096      2 /
rpciod/3   1150      root  cwd    DIR  253,0     4096      2 /
rpciod/3   1150      root  rtd    DIR  253,0     4096      2 /
rpc.idmap  1154      root  cwd    DIR  253,0     4096      2 /
rpc.idmap  1154      root  rtd    DIR  253,0     4096      2 /
dbus-daem  1248      dbus  cwd    DIR  253,0     4096      2 /
dbus-daem  1248      dbus  rtd    DIR  253,0     4096      2 /
cupsd      1265      root  cwd    DIR  253,0     4096      2 /
cupsd      1265      root  rtd    DIR  253,0     4096      2 /
acpid      1290      root  cwd    DIR  253,0     4096      2 /
acpid      1290      root  rtd    DIR  253,0     4096      2 /
hald       1299 haldaemon  cwd    DIR  253,0     4096      2 /
hald       1299 haldaemon  rtd    DIR  253,0     4096      2 /
hald-runn  1300      root  cwd    DIR  253,0     4096      2 /
hald-runn  1300      root  rtd    DIR  253,0     4096      2 /
hald-addo  1328      root  rtd    DIR  253,0     4096      2 /
hald-addo  1338 haldaemon  rtd    DIR  253,0     4096      2 /
automount  1358      root  cwd    DIR  253,0     4096      2 /
automount  1358      root  rtd    DIR  253,0     4096      2 /
abrtd      1409      root  cwd    DIR  253,0     4096      2 /
abrtd      1409      root  rtd    DIR  253,0     4096      2 /
crond      1417      root  cwd    DIR  253,0     4096      2 /
crond      1417      root  rtd    DIR  253,0     4096      2 /
atd        1428      root  rtd    DIR  253,0     4096      2 /
certmonge  1453      root  cwd    DIR  253,0     4096      2 /
certmonge  1453      root  rtd    DIR  253,0     4096      2 /
mingetty   1468      root  cwd    DIR  253,0     4096      2 /
mingetty   1468      root  rtd    DIR  253,0     4096      2 /
mingetty   1470      root  cwd    DIR  253,0     4096      2 /
mingetty   1470      root  rtd    DIR  253,0     4096      2 /
mingetty   1472      root  cwd    DIR  253,0     4096      2 /
mingetty   1472      root  rtd    DIR  253,0     4096      2 /
mingetty   1474      root  cwd    DIR  253,0     4096      2 /
mingetty   1474      root  rtd    DIR  253,0     4096      2 /
udevd      1480      root  cwd    DIR  253,0     4096      2 /
udevd      1480      root  rtd    DIR  253,0     4096      2 /
mingetty   1482      root  cwd    DIR  253,0     4096      2 /
mingetty   1482      root  rtd    DIR  253,0     4096      2 /
flush-253  2370      root  cwd    DIR  253,0     4096      2 /
flush-253  2370      root  rtd    DIR  253,0     4096      2 /
screen     2554      root  cwd    DIR  253,0     4096 786433 /root
screen     2554      root  rtd    DIR  253,0     4096      2 /
bash       2555      root  rtd    DIR  253,0     4096      2 /
java       2565      root  rtd    DIR  253,0     4096      2 /
screen     2592      root  cwd    DIR  253,0     4096 786433 /root
screen     2592      root  rtd    DIR  253,0     4096      2 /
bash       2593      root  rtd    DIR  253,0     4096      2 /
java       2606      root  rtd    DIR  253,0     4096      2 /
screen     2622      root  cwd    DIR  253,0     4096 786433 /root
screen     2622      root  rtd    DIR  253,0     4096      2 /
bash       2623      root  rtd    DIR  253,0     4096      2 /
java       3893      root  cwd    DIR  253,0     4096 786433 /root
java       3893      root  rtd    DIR  253,0     4096      2 /
screen    14555      root  cwd    DIR  253,0     4096 786433 /root
screen    14555      root  rtd    DIR  253,0     4096      2 /
bash      14556      root  cwd    DIR  253,0     4096 786433 /root
bash      14556      root  rtd    DIR  253,0     4096      2 /
screen    15274      root  cwd    DIR  253,0     4096 786433 /root
screen    15274      root  rtd    DIR  253,0     4096      2 /
bash      15275      root  cwd    DIR  253,0     4096 786433 /root
bash      15275      root  rtd    DIR  253,0     4096      2 /
sshd      22984      root  cwd    DIR  253,0     4096      2 /
sshd      22984      root  rtd    DIR  253,0     4096      2 /
login     23161      root  cwd    DIR  253,0     4096      2 /
login     23161      root  rtd    DIR  253,0     4096      2 /
catalina. 24281      root  cwd    DIR  253,0     4096 786433 /root
catalina. 24281      root  rtd    DIR  253,0     4096      2 /
java      24287      root  cwd    DIR  253,0     4096 786433 /root
java      24287      root  rtd    DIR  253,0     4096      2 /
bash      24986      root  cwd    DIR  253,0     4096      2 /
bash      24986      root  rtd    DIR  253,0     4096      2 /
sshd      25159      root  cwd    DIR  253,0     4096      2 /
sshd      25159      root  rtd    DIR  253,0     4096      2 /
sftp-serv 25163      root  cwd    DIR  253,0     4096 786433 /root
sftp-serv 25163      root  rtd    DIR  253,0     4096      2 /
sshd      25219      root  cwd    DIR  253,0     4096      2 /
sshd      25219      root  rtd    DIR  253,0     4096      2 /
bash      25223      root  cwd    DIR  253,0     4096      2 /
bash      25223      root  rtd    DIR  253,0     4096      2 /
sshd      25331      root  cwd    DIR  253,0     4096      2 /
sshd      25331      root  rtd    DIR  253,0     4096      2 /
sftp-serv 25335      root  cwd    DIR  253,0     4096 786433 /root
sftp-serv 25335      root  rtd    DIR  253,0     4096      2 /
sshd      25380      root  cwd    DIR  253,0     4096      2 /
sshd      25380      root  rtd    DIR  253,0     4096      2 /
sftp-serv 25384      root  cwd    DIR  253,0     4096 786433 /root
sftp-serv 25384      root  rtd    DIR  253,0     4096      2 /
nginx     25599      root  cwd    DIR  253,0     4096 786433 /root
nginx     25599      root  rtd    DIR  253,0     4096      2 /
nginx     25600    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25600    nobody  rtd    DIR  253,0     4096      2 /
nginx     25601    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25601    nobody  rtd    DIR  253,0     4096      2 /
nginx     25602    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25602    nobody  rtd    DIR  253,0     4096      2 /
nginx     25603    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25603    nobody  rtd    DIR  253,0     4096      2 /
nginx     25604    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25604    nobody  rtd    DIR  253,0     4096      2 /
nginx     25605    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25605    nobody  rtd    DIR  253,0     4096      2 /
nginx     25606    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25606    nobody  rtd    DIR  253,0     4096      2 /
nginx     25607    nobody  cwd    DIR  253,0     4096 786433 /root
nginx     25607    nobody  rtd    DIR  253,0     4096      2 /
sshd      25644      root  cwd    DIR  253,0     4096      2 /
sshd      25644      root  rtd    DIR  253,0     4096      2 /
bash      25648      root  cwd    DIR  253,0     4096 786433 /root
bash      25648      root  rtd    DIR  253,0     4096      2 /
lsof      25668      root  cwd    DIR  253,0     4096 786433 /root
lsof      25668      root  rtd    DIR  253,0     4096      2 /
lsof      25669      root  cwd    DIR  253,0     4096 786433 /root
lsof      25669      root  rtd    DIR  253,0     4096      2 /
memcached 26295      root  cwd    DIR  253,0     4096      2 /
memcached 26295      root  rtd    DIR  253,0     4096      2 /
xinetd    29529      root  cwd    DIR  253,0     4096      2 /
xinetd    29529      root  rtd    DIR  253,0     4096      2 /
screen    29790      root  cwd    DIR  253,0     4096 786433 /root
screen    29790      root  rtd    DIR  253,0     4096      2 /
bash      29791      root  cwd    DIR  253,0     4096 786433 /root
bash      29791      root  rtd    DIR  253,0     4096      2 /
java      31949      root  rtd    DIR  253,0     4096      2 /
console-k 32432      root  cwd    DIR  253,0     4096      2 /
console-k 32432      root  rtd    DIR  253,0     4096      2 /
udevd     32651      root  cwd    DIR  253,0     4096      2 /
udevd     32651      root  rtd    DIR  253,0     4096      2 /
[root@SERVER2 ~]# lsof /tmp
[root@SERVER2 ~]#

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
8 [报告]
发表于 2014-06-16 16:32 |只看该作者
怎么 根本没有使用 /tmp ...

那可能是其它的文件了. lsof | grep delete 找一下吧.

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
9 [报告]
发表于 2014-06-16 17:50 |只看该作者
有没有以点开头的隐藏文件夹?

论坛徽章:
15
射手座
日期:2014-02-26 13:45:082015年迎新春徽章
日期:2015-03-04 09:54:452015年辞旧岁徽章
日期:2015-03-03 16:54:15羊年新春福章
日期:2015-02-26 08:47:552015年亚洲杯之卡塔尔
日期:2015-02-03 08:33:45射手座
日期:2014-12-31 08:36:51水瓶座
日期:2014-06-04 08:33:52天蝎座
日期:2014-05-14 14:30:41天秤座
日期:2014-04-21 08:37:08处女座
日期:2014-04-18 16:57:05戌狗
日期:2014-04-04 12:21:33技术图书徽章
日期:2014-03-25 09:00:29
10 [报告]
发表于 2014-06-17 08:26 |只看该作者
jason-shen 发表于 2014-06-16 15:25
CentOS 6.4做WEB服务,才用三个月却发现根目录占用异常,怎么能找出被占用的目录?

也可能是文件系统坏了,可以重启看看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP