Chinaunix

标题: solaris下的文件系统空间清除问题 [打印本页]

作者: angrytiger    时间: 2004-01-14 14:08
提示: 作者被禁止或删除 内容自动屏蔽
作者: bloomit    时间: 2004-01-14 23:55
I have ever met this suitation. I do not know the exact reason. perhaps it some priviledged daemon that log some info in /var. I can only tell you how to find the possible largest file and how to enlarge /var online.

1.Find the possible largest file and check if it can be eliminate from var
#du -sk /var/*/* | sort -nr
Some file related to mail, log etc can be touched to 0 size.

2. The worst thing is that so much /var space is occupied by /var/run, /var/tmp. Reboot system may solve this. As for you, your server can not be rebooted. perhaps you need to online revise your /var size.
move /var to new disk(if /var is not in /)
#umount /var
Then add a new disk,
#newfs /dev/dsk/cntxdysz
# mount -F ufs /dev/cntxdysz /var
Then ufsdump /var on it.
作者: slls    时间: 2004-01-15 12:42
我以前在HP-UX也遇到过。
但如果用>清空文件的话空间就可以释放,不知道是为什么?
作者: qch1521    时间: 2004-01-16 12:04
lsof is a good tool to analyse such kind of problem, basically, this issue is due to some unix process which hold the diskspace was not killed.
lsof will help to identified the unix process after killed the process the diskspace will be released.
or, just reboot the box.
作者: angrytiger    时间: 2004-01-16 14:22
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2