Setting the number of parallel fsck threads
This section describes how to set the number of parallel fsck threads.
The number of parallel fsck threads that could be active during recovery was set to 4. For example, if a node failed over 12 file systems, log replay for the 12 file systems will not complete at the same time. The number was set to 4 since parallel replay of a large number of file systems would put memory pressure on systems with less memory. However, on larger systems the restriction of 4 parallel processes replaying is not necessary.
This value gets tuned in accordance with available physical memory in the system.
To set the number of parallel fsck threads
On all nodes in the cluster, edit the
/opt/VRTSvcs/bin/CFSfsckd/CFSfsckd.env file and set FSCKD_OPTS="-n N".
where N is the number of parallel fsck threads desired and value of N has to be between 4 and 128.
The default number of parallel fsck threads is determined by the amount of memory on the machine, unless overridden by the user.