@kidommoc Linux 的大部分文件系统默认就会 reserve 一部分空间,就是为了防止这种情况。没有必要手动再去创建空白文件,直接 tune2fs 就可以把默认 reserve 的空间给放出来(

Follow

@PeterCxy 印象中這樣 reserve 出來的空間是只有 root 可寫,所以還是有點不一樣? @kidommoc@m.cmx.im

@casualwp @kidommoc 一般正常运行的服务都不是在 root 的吧……所以如果满了只要用 tune2fs 把 reserve 给 root 的空间缩小就可以临时恢复服务

@casualwp @kidommoc 当然,我也知道确实有不少人会真的把服务运行在 root,但是这就不是一个磁盘空间的问题了,是严重的安全问题……

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.