gzip後硬碟空間消失 - Linux

Table of Contents

※ 引述《indept (真人)》之銘言:
: 我有一個很大的 log file, 100G
: 我執行了 gzip, 產生了一個新的 .gz 檔, 約 7G
: 我的理解是舊的檔案應該被刪除,
: 可是我用 df 看, 那 93G 並沒有回來
: 有什麼辦法嗎?
: 這是一台使用中的 server,
: umount 或 fsck 是萬不得已才列入考慮, 謝謝

看一下是哪個process產生這個log的

砍掉沒反應應該是因為有process hold住這個log

如果像是apache之類的 只要service重開就可以了

不然就是把那個process直接砍掉

--


http://blog.carlcarl.tw


--

All Comments

Andy avatarAndy2012-11-11
Thanks, I found my process holding the file.