我的/tmp满了,我用rm * -R作了删除,好像也没有少多少,
满的原因是我在做一个自动备份的实验,经常编辑crontab -e这个文件让系统自动执行,经常出现错误(因为是测试嘛),然后系统给我发邮件,不知不觉/tmp满了,我现在执行df -k :# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2097152 1595440 24% 1414 1% /
/dev/hd2 3145728 2043708 36% 29423 4% /usr
/dev/hd9var 2097152 2017728 4% 397 1% /var
/dev/hd3 1048576 0 100% 43 1% /tmp
/dev/hd1 2097152 2030268 4% 24 1% /home
/dev/lv00 8388608 1993516 77% 64905 4% /ora
/dev/oraluchenglv 20971520 17019908 19% 28 1% /oradata/lc
/dev/oraloglv 20971520 15997528 24% 74 1% /oradata/log
/dev/orasyslv 10485760 6187088 41% 33 1% /oradata/sys
执行# mail
/tmp/Rx60630: There is not enough space in the file system.
执行$ crontab -e
fclose: There is not enough space in the file system.
我该怎么办啊
strock 回复于:2004-07-01 14:30:39 |
reboot |
warehouse 回复于:2004-07-01 14:35:51 |
刚才不知道什么原因,占用的空间释放了,但是在我试验的时候又占满了
莫名其妙! 不能reboot 啊 |
warehouse 回复于:2004-07-01 14:38:04 |
$ exit(退出oracle登录,提示如下:)
There are stopped jobs. 怎么看jobs 怎么停止jobs |
strock 回复于:2004-07-01 14:57:04 |
sorry,是不能用shutdown等命令,只能直接关机下电,然后重起。 |
sunbeat 回复于:2004-07-01 15:14:07 |
进入到对应的用户下(比如root、oracle等)
crontab -l >xxx.cron ##把当前的crontab备份一下 crontab -r ##把当前用户的所有crontab都给清除了 现在TMP应该不会再涨了。 现在把/tmp目录下东西清一下 然后在crontab xx.cron再导入 |
warehouse 回复于:2004-07-01 15:39:35 |
我猜想/tmp增长的原因是我建了一个.netrc在/ora(oracle的安装目录)
目的是实现自动exp , 然后自动ftp(当然建立.netra主要是实现ftp) , .netrc内容如下: machine 192.168.3.3 login root password root macdef init bin prom lcd /ora/dbbak cd /home/db_bak mput * bye 此时我做ftp测试: ftp 192.168.3.3 出现如下错误: ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous command ?Ambiguous com 简直就是死循环,导致/tmp快速增长 但是我觉得我的.netrc没有问题啊,大伙帮我看看 现在/tmp满了,什么也干不了了 |
sunbeat 回复于:2004-07-01 15:52:53 |
machine 192.168.3.3 login root password root
macdef init type binary prompt lcd /ora/dbbak cd /home/db_bak mput * bye 你如果要用root登陆,要改/etc/ftpusers,把root从黑名单中去掉 |
warehouse 回复于:2004-07-01 16:05:33 |
to :sunbeat
那你说,出现错误是用root登录的缘故吗? |
sunbeat 回复于:2004-07-01 16:08:04 |
现在报的错,当然是你的语法有误了:
Ambiguous command |
warehouse 回复于:2004-07-01 16:19:38 |
非常感谢sunbeat
现在好用了,但是为什么有了prompt,还是提示我呢? |
boinicke 回复于:2004-07-02 12:11:41 |
首先,扩/tmp空间
chfs -a size=+大少 /tmp 然后去掉cron里的定时执行命令: crontab -e |
warehouse 回复于:2004-07-02 12:19:46 |
谢谢各位,问题解决了,过了一段时间自动释放了
一切都好用了 |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/