[ZFS] vast in degraded/replacing mode

Pagina: 1
Acties:

Vraag


  • Simkin
  • Registratie: Maart 2000
  • Laatst online: 28-12-2025
Ik heb een kapotte disk proberen te vervangen maar de replacement bleef vast zitten in een 'resilver' loop. Ik heb vervolgens een andere disk gebruikt maar als resultaat kom ik nu niet uit degraded (replacing) mode. Ik wil graag disk 4437479425609100131 verwijderen maar het lukt me niet. Iemand een idee waar ik tegen aan loop?

Linux nas 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

root@nas:~# zpool status
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  pool: naspool
 state: DEGRADED
  scan: scrub repaired 96K in 9h53m with 0 errors on Tue Nov 28 02:52:42 2017
config:

        NAME                                                          STATE     READ WRITE CKSUM
        naspool                                                       DEGRADED     0     0     0
          raidz1-0                                                    DEGRADED     0     0     0
            replacing-0                                               DEGRADED     0     0     3
              ata-WD4000FYYZ-23UL_49Y6003_49Y6006IBM_WD-WCC137HAPU1T  ONLINE       0     0     0
              4437479425609100131                                     OFFLINE      0     0     0  was /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN060XP-part1
            ata-WD4000FYYZ-23UL_49Y6003_49Y6006IBM_WD-WCC137HAPLRC    ONLINE       0     0     0
            ata-WDC_WD40EZRZ-00GXCB0_WD-WCC7K3KU94ZC                  ONLINE       0     0     0
            wwn-0x50014ee263716326                                    ONLINE       0     0     0
            ata-ST4000DM005-2DP166_ZDH1L31E                           ONLINE       0     0     0

errors: No known data errors


root@nas:~# zpool remove naspool 4437479425609100131
code:
1
cannot remove 4437479425609100131: only inactive hot spares, cache, or log devices can be removed


root@nas:~# zpool offline naspool 4437479425609100131
root@nas:~# zpool remove naspool 4437479425609100131
code:
1
cannot remove 4437479425609100131: only inactive hot spares, cache, or log devices can be removed


root@nas:~# zpool clear naspool
root@nas:~# zpool status
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  pool: naspool
 state: DEGRADED
  scan: scrub repaired 96K in 9h53m with 0 errors on Tue Nov 28 02:52:42 2017
config:

        NAME                                                          STATE     READ WRITE CKSUM
        naspool                                                       DEGRADED     0     0     0
          raidz1-0                                                    DEGRADED     0     0     0
            replacing-0                                               DEGRADED     0     0     0
              ata-WD4000FYYZ-23UL_49Y6003_49Y6006IBM_WD-WCC137HAPU1T  ONLINE       0     0     0
              4437479425609100131                                     OFFLINE      0     0     0  was /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN060XP-part1
            ata-WD4000FYYZ-23UL_49Y6003_49Y6006IBM_WD-WCC137HAPLRC    ONLINE       0     0     0
            ata-WDC_WD40EZRZ-00GXCB0_WD-WCC7K3KU94ZC                  ONLINE       0     0     0
            wwn-0x50014ee263716326                                    ONLINE       0     0     0
            ata-ST4000DM005-2DP166_ZDH1L31E                           ONLINE       0     0     0

errors: No known data errors


root@nas:~# zpool clear naspool 4437479425609100131
root@nas:~# zpool status
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  pool: naspool
 state: DEGRADED
  scan: scrub repaired 96K in 9h53m with 0 errors on Tue Nov 28 02:52:42 2017
config:

        NAME                                                          STATE     READ WRITE CKSUM
        naspool                                                       DEGRADED     0     0     0
          raidz1-0                                                    DEGRADED     0     0     0
            replacing-0                                               DEGRADED     0     0     0
              ata-WD4000FYYZ-23UL_49Y6003_49Y6006IBM_WD-WCC137HAPU1T  ONLINE       0     0     0
              4437479425609100131                                     OFFLINE      0     0     0  was /dev/disk/by-id/ata-ST4000DM004-2CV104_ZFN060XP-part1
            ata-WD4000FYYZ-23UL_49Y6003_49Y6006IBM_WD-WCC137HAPLRC    ONLINE       0     0     0
            ata-WDC_WD40EZRZ-00GXCB0_WD-WCC7K3KU94ZC                  ONLINE       0     0     0
            wwn-0x50014ee263716326                                    ONLINE       0     0     0
            ata-ST4000DM005-2DP166_ZDH1L31E                           ONLINE       0     0     0

errors: No known data errors

Alle reacties


  • Simkin
  • Registratie: Maart 2000
  • Laatst online: 28-12-2025
Opgelost met:
zpool detach naspool 4437479425609100131