Não consegui consertar isso e acabei substituindo o disco por outro, o que resolveu o problema. Eu suspeito que a unidade estava com defeito, mesmo quando nenhum erro SMART foi registrado.
Substitui uma unidade quebrada por um tipo já usado na minha piscina há algum tempo. O problema que enfrento é que o processo de resilver parece estar preso em um loop de reinicialização. Sempre que eu verifico o zpool status
, vejo que o processo de resilver começou há alguns segundos. A porcentagem de progresso fica parada em 0%
por exemplo,
...
Não tenho ideia do que está errado, nunca encontrei esse problema antes. Eu gostaria de receber alguns conselhos da comunidade.
root@nas:~# dmesg | grep ZFS
[5.224533] ZFS: Loaded module v0.7.0-rc4_36_g2d82116e8, ZFS pool version 5000, ZFS filesystem version 5
root@nas:~# uname -a
Linux nas 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.25-1~bpo8+1 (2017-05-19) x86_64 GNU/Linux
root@nas:~# zpool status
[code]
pool: naspool
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.
scan: resilver in progress since Thu Jun 1 09:13:27 2017
3.52G scanned out of 12.8T at 157M/s, 23h40m to go
720M resilvered, 0.03% done
config:
NAME STATE READ WRITE CKSUM
naspool DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
wwn-0x5000c5005d126ae9 ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F3LC75 ONLINE 0 0 0
ata-ST4000DM005-2DP166_ZDH1BA2G ONLINE 0 0 0
replacing-3 DEGRADED 0 0 0
11962083988745856144 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_45U3NSGGS-part1
ata-ST4000DM005-2DP166_ZDH1L31E ONLINE 0 0 0 (resilvering)
ata-ST3000DM001-1CH166_W1F517W8 ONLINE 0 0 0
errors: No known data errors[/code]
root@nas:~# zpool status
[code]
pool: naspool
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.
scan: resilver in progress since Thu Jun 1 09:15:10 2017
511M scanned out of 12.8T at 31.9M/s, 116h23m to go
101M resilvered, 0.00% done
config:
NAME STATE READ WRITE CKSUM
naspool DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
wwn-0x5000c5005d126ae9 ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F3LC75 ONLINE 0 0 0
ata-ST4000DM005-2DP166_ZDH1BA2G ONLINE 0 0 0
replacing-3 DEGRADED 0 0 0
11962083988745856144 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_45U3NSGGS-part1
ata-ST4000DM005-2DP166_ZDH1L31E ONLINE 0 0 0 (resilvering)
ata-ST3000DM001-1CH166_W1F517W8 ONLINE 0 0 0
errors: No known data errors
root@nas:~# zpool status
pool: naspool
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.
scan: resilver in progress since Thu Jun 1 09:18:11 2017
40.0M scanned out of 12.8T at 3.34M/s, (scan is slow, no estimated time)
7.78M resilvered, 0.00% done
config:
NAME STATE READ WRITE CKSUM
naspool DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
wwn-0x5000c5005d126ae9 ONLINE 0 0 0
ata-ST3000DM001-1CH166_Z1F3LC75 ONLINE 0 0 0
ata-ST4000DM005-2DP166_ZDH1BA2G ONLINE 0 0 0
replacing-3 DEGRADED 0 0 0
11962083988745856144 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-TOSHIBA_DT01ACA300_45U3NSGGS-part1
ata-ST4000DM005-2DP166_ZDH1L31E ONLINE 0 0 0 (resilvering)
ata-ST3000DM001-1CH166_W1F517W8 ONLINE 0 0 0
errors: No known data errors
root@nas:~# ls -altr /dev/disk/by-id/
total 0
drwxr-xr-x 8 root root 160 May 31 20:08 ..
drwxr-xr-x 2 root root 800 May 31 20:08 .
lrwxrwxrwx 1 root root 9 Jun 1 09:19 wwn-0x5001b44a10bb94af -> ../../sda
lrwxrwxrwx 1 root root 9 Jun 1 09:19 ata-SanDisk_SDSSDP128G_133230401711 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5001b44a10bb94af-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5001b44a10bb94af-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5001b44a10bb94af-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-SanDisk_SDSSDP128G_133230401711-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-SanDisk_SDSSDP128G_133230401711-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-SanDisk_SDSSDP128G_133230401711-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Jun 1 09:19 wwn-0x5000c500646bb32a -> ../../sdc
lrwxrwxrwx 1 root root 9 Jun 1 09:19 ata-ST3000DM001-1CH166_Z1F3LC75 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5000c500646bb32a-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-ST3000DM001-1CH166_Z1F3LC75-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5000c500646bb32a-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-ST3000DM001-1CH166_Z1F3LC75-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 9 Jun 1 09:19 wwn-0x5000c500a2ef74a9 -> ../../sde
lrwxrwxrwx 1 root root 9 Jun 1 09:19 ata-ST4000DM005-2DP166_ZDH1L31E -> ../../sde
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5000c500a2ef74a9-part9 -> ../../sde9
lrwxrwxrwx 1 root root 10 Jun 1 09:19 wwn-0x5000c500a2ef74a9-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-ST4000DM005-2DP166_ZDH1L31E-part9 -> ../../sde9
lrwxrwxrwx 1 root root 10 Jun 1 09:19 ata-ST4000DM005-2DP166_ZDH1L31E-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Jun 1 09:20 wwn-0x5000c500a2a93310 -> ../../sdd
lrwxrwxrwx 1 root root 9 Jun 1 09:20 ata-ST4000DM005-2DP166_ZDH1BA2G -> ../../sdd
lrwxrwxrwx 1 root root 10 Jun 1 09:20 wwn-0x5000c500a2a93310-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 1 09:20 ata-ST4000DM005-2DP166_ZDH1BA2G-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 1 09:20 wwn-0x5000c500a2a93310-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 10 Jun 1 09:20 ata-ST4000DM005-2DP166_ZDH1BA2G-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 9 Jun 1 09:21 wwn-0x5000c5005d1119cc -> ../../sdf
lrwxrwxrwx 1 root root 9 Jun 1 09:21 ata-ST3000DM001-1CH166_W1F517W8 -> ../../sdf
lrwxrwxrwx 1 root root 10 Jun 1 09:21 wwn-0x5000c5005d1119cc-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Jun 1 09:21 ata-ST3000DM001-1CH166_W1F517W8-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Jun 1 09:21 wwn-0x5000c5005d1119cc-part9 -> ../../sdf9
lrwxrwxrwx 1 root root 10 Jun 1 09:21 ata-ST3000DM001-1CH166_W1F517W8-part9 -> ../../sdf9
lrwxrwxrwx 1 root root 9 Jun 1 09:21 wwn-0x5000c5005d126ae9 -> ../../sdb
lrwxrwxrwx 1 root root 9 Jun 1 09:21 ata-ST3000DM001-1ER166_Z500CKWL -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 1 09:21 wwn-0x5000c5005d126ae9-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 1 09:21 ata-ST3000DM001-1ER166_Z500CKWL-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 1 09:21 wwn-0x5000c5005d126ae9-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 10 Jun 1 09:21 ata-ST3000DM001-1ER166_Z500CKWL-part9 -> ../../sdb9
Não consegui consertar isso e acabei substituindo o disco por outro, o que resolveu o problema. Eu suspeito que a unidade estava com defeito, mesmo quando nenhum erro SMART foi registrado.
Tags zfs zfsonlinux debian-jessie