On 2015-02-10, yary <[email protected]> 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...
# df -hi /export
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/sd0d 3.6T 3.3T 124G 96% 1642 122292628 0% /export
... but it has only 1642 files and directories. Checking this
takes all of 60 seconds and 83M of memory;
# umount /export
# \time -l fsck -f /dev/sd0d
** /dev/rsd0d
** File system is already clean
** Last Mounted on /export
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1642 files, 444033559 used, 40503354 free (306 frags, 5062881 blocks, 0.0%
fragmentation)
60.37 real 14.21 user 4.29 sys
83688 maximum resident set size
0 average shared memory size
0 average unshared data size
0 average unshared stack size
513846 minor page faults
3 major page faults
0 swaps
0 block input operations
9 block output operations
0 messages sent
0 messages received
0 signals received
30962 voluntary context switches
19 involuntary context switches
--
Christian "naddy" Weisgerber [email protected]