Loading…
<emphasis><varname>vfs.zfs.resilver_delay</varname></emphasis> - Number of milliseconds of delay inserted between each I/O during a <link linkend="zfs-term-resilver">resilver</link>. To ensure that a resilver does not interfere with the normal operation of the pool, if any other I/O is happening the resilver will delay between each command. This value controls the limit of total <acronym>IOPS</acronym> (I/Os Per Second) generated by the resilver. The granularity of the setting is determined by the value of <varname>kern.hz</varname> which defaults to 1000 ticks per second. This setting may be changed, resulting in a different effective <acronym>IOPS</acronym> limit. The default value is 2, resulting in a limit of: 1000 ticks/sec / 2 = 500 <acronym>IOPS</acronym>. Returning the pool to an <link linkend="zfs-term-online">Online</link> state may be more important if another device failing could <link linkend="zfs-term-faulted">Fault</link> the pool, causing data loss. A value of 0 will give the resilver operation the same priority as other operations, speeding the healing process. The speed of resilver is only limited when there has been other recent activity on the pool, as determined by <link linkend="zfs-advanced-tuning-scan_idle"><varname>vfs.zfs.scan_idle</varname></link>. This value can be adjusted at any time with <citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
<emphasis><varname>vfs.zfs.resilver_delay</varname></emphasis> - 在<link linkend="zfs-term-resilver">resilver</link>期间,每个I/O之间插入的延迟的毫秒数。为了确保 resilver 不干扰池的正常运行,如果发生任何其他 I/O,resilver 将在每个命令之间进行延迟。此值控制 resilver 产生的总 <acronym>IOPS</acronym>(每秒 I/O)的限制。设置的粒度由<varname>kern.hz</varname>的值决定,默认值为每秒1000次。此设置可以更改,从而导致不同的有效<acronym>IOPS</acronym>限制。默认值为2,因此限制为:1000 ticks/sec / 2 = 500 <acronym>IOPS</acronym>。如果另一个设备发生故障可能会让存储池发生<link linkend="zfs-term-faulted">故障</link>,导致数据丢失,则将池返回到<link linkend="zfs-term-online">在线</link>状态可能更为重要。值为0时,将赋予resilver操作与其他操作相同的优先级,从而加快修复过程。只有当池上最近有其他活动时,resilver 的速度才会受到限制,这由 <link linkend="zfs-advanced-tuning-scan_idle"><varname>vfs.zfs.scan_idle</varname></link>决定。这个值可以在任何时候用<citerefentry><refentrytitle>sysctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>调整。