On 02/11/15 11:58, Jan Stary wrote:
On Feb 10 17:48:22, na...@mips.inka.de wrote:
On 2015-02-10, yary <not....@gmail.com> wrote:

I know FFS2 can handle that size easily, but I'm worried about fsck
taking forever. This machine will have 1.5GB RAM, from what I've read
that's not enough memory to fsck a 4TB volume without painful
swapping.

It vastly depends on the number of files you have on there.
Here's an almost full 4TB drive...

FAQ4 still says

   If you make very large partitions, keep in mind that performing
   filesystem checks using fsck(8) requires about 1M of RAM per gigabyte of
   filesystem size
   ^^^^^^^^^^^^^^^

Does that still apply?

        Jan


It is probably far less than that currently, but lacking a more precise number, I don't think this is a bad rule of thumb, and if you wish to disregard it, I suspect you either read and really understand the code or do some real world testing on YOUR hardware and file systems. The penalties for too much RAM are minimal; the penalties for too little are ... substantial.

Note that you don't have to leave file systems mounted RW all the time, especially a backup server. Mount it RW when you need it, dismount or RO it when you don't...tripping over the power power cords won't (shouldn't?) corrupt a file system that is mounted RO. You don't get to ignore the issues, but you can reduce their occurrence.

Nick.

Reply via email to