FreeNAS:“swap_pager:I/O 错误 - 分页失败”

FreeNAS:“swap_pager:I/O 错误 - 分页失败”

我们的 FreeNAS 服务器日志不断被填满

Apr  5 15:13:49 Wheelhouse NAS kernel: swap_pager: I/O error - pagein failed; blkno 524312,size 4096, error 6
Apr  5 15:13:49 Wheelhouse NAS kernel: vm_fault: pager read error, pid 1 (init)
Apr  5 15:13:49 Wheelhouse NAS kernel: swap_pager: I/O error - pagein failed; blkno 524312,size 4096, error 6
Apr  5 15:13:49 Wheelhouse NAS kernel: vm_fault: pager read error, pid 1 (init)
Apr  5 15:13:49 Wheelhouse NAS kernel: swap_pager: I/O error - pagein failed; blkno 524312,size 4096, error 6
Apr  5 15:13:49 Wheelhouse NAS kernel: vm_fault: pager read error, pid 1 (init)
Apr  5 15:13:49 Wheelhouse NAS kernel: swap_pager: I/O error - pagein failed; blkno 524312,size 4096, error 6

等等。

我们可以做什么?

/var已经满了,/var/log占了“109%”!我能以某种方式停止记录吗?

我们目前正在更换其中一个 RAIDZ 中的损坏驱动器......

> zpool status
  pool: raid-5x3
 state: ONLINE
 scrub: scrub completed after 15h52m with 0 errors on Sun Mar 30 13:52:46 2014
config:

    NAME                                            STATE     READ WRITE CKSUM
    raid-5x3                                        ONLINE       0     0     0
      raidz1                                        ONLINE       0     0     0
        ada5p2                                      ONLINE       0     0     0
        gptid/a767b8ef-1c95-11e2-af4c-f46d049aaeca  ONLINE       0     0     0
        ada8p2                                      ONLINE       0     0     0
        ada10p2                                     ONLINE       0     0     0
        ada7p2                                      ONLINE       0     0     0

errors: No known data errors

  pool: raid2
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
    continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scrub: resilver in progress for 0h57m, 4.48% done, 20h24m to go
config:

    NAME                                              STATE     READ WRITE CKSUM
    raid2                                             DEGRADED     0     0     0
      raidz1                                          DEGRADED     0     0     0
        gptid/5f3c0517-3ff2-11e2-9437-f46d049aaeca    ONLINE       0     0     0
        replacing                                     DEGRADED     0     0     0
          gptid/5fe33556-3ff2-11e2-9437-f46d049aaeca  UNAVAIL      0     0     0  cannot open
          ada0                                        ONLINE       0     0     0  113G resilvered
        gptid/60570005-3ff2-11e2-9437-f46d049aaeca    ONLINE       0     0     0
        gptid/60ebeaa5-3ff2-11e2-9437-f46d049aaeca    ONLINE       0     0     0
        gptid/61925b86-3ff2-11e2-9437-f46d049aaeca    ONLINE       0     0     0

errors: No known data errors

答案1

看起来,发生的情况是,坏驱动器不仅是 RAIDZ 的一部分,而且还包含一个交换分区,该分区不仅处于活动状态,而且实际上还包含一些已交换到其中的内容。

FreeNAS 在添加驱动器时默认创建交换分区,这实际上可能是一个可靠性问题,因为交换没有冗余,如果你最终将数据交换出去的话。请参阅https://bugs.freenas.org/issues/208对此进行一些讨论。

在我看来,您可能需要在此之后重新启动才能恢复已知的良好状态,因为丢失的交换页面保存了哪些数据并不十分清楚。

相关内容