While trying to fsck a 7TB RAID, I get the following error:
ubuntu@ubuntu:~$ date; sudo fsck -nC /dev/sdb1; date
Thu Jan 14 09:23:04 UTC 2010
fsck from util-linux-ng 2.16
e2fsck 1.41.9 (22-Aug-2009)
/dev/sdb1 has gone 260 days without being checked, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Error allocating icount structure: Memory allocation failed
Thu Jan 14 13:37:59 UTC 2010
I have attached some additional information.
The filesystem has 855 million inodes. The only memory requirements I was able to find for e2fsck state that it requires about 0.5MB of memory per million inodes, so it should require about 418MB for this drive, which is much less than the 1.8GB available (plus a 1TB swap drive which I added because I was getting the same error with 8GB of swap.)
Am I running into a per-process RAM limitation, or a bug in e2fsck, or something else?