zpool clear device

From Red Penguin, 4 Years ago, written in Plain Text, viewed 227 times.
URL https://paste.steamr.com/view/fdb6eddf Embed
Download Paste or View Raw
  1. root@nas:/root# zpool status                                                                                                                                                                              15:19:21
  2.   pool: data
  3.  state: DEGRADED
  4. status: One or more devices are faulted in response to persistent errors.
  5.         Sufficient replicas exist for the pool to continue functioning in a
  6.         degraded state.
  7. action: Replace the faulted device, or use 'zpool clear' to mark the device
  8.         repaired.
  9.   scan: scrub canceled on Thu Sep 26 15:15:47 2019
  10. config:
  11.  
  12.         NAME                                                STATE     READ WRITE CKSUM
  13.         data                                                DEGRADED     0     0     0
  14.           raidz1-0                                          DEGRADED     0     0     0
  15.             ata-ST4000DM005-2DP166_ZGY0956M-part1           ONLINE       0     0     0
  16.             ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E0KR60H3-part1  ONLINE       0     0     0
  17.             ata-ST4000DM000-2AE166_WDH01SND-part1           FAULTED      0     0     0  too many errors
  18.  
  19. errors: No known data errors
  20.  
  21.   pool: storage
  22.  state: ONLINE
  23.   scan: resilvered 2.12T in 13h14m with 0 errors on Sat Sep 21 11:09:25 2019
  24. config:
  25.  
  26.         NAME                                       STATE     READ WRITE CKSUM
  27.         storage                                    ONLINE       0     0     0
  28.           raidz1-0                                 ONLINE       0     0     0
  29.             ata-Hitachi_HUS724030ALE641_P8GH7GVR   ONLINE       0     0     0
  30.             ata-ST3000DM001-9YN166_W1F0SJ27-part1  ONLINE       0     0     0
  31.             ata-Hitachi_HUS724030ALE641_P8GBAW7P   ONLINE       0     0     0
  32.             ata-ST3000DM001-1CH166_Z1F4HGS6        ONLINE       0     0     0
  33.             ata-Hitachi_HUS724030ALE641_P8G9NZSR   ONLINE       0     0     0
  34.  
  35. errors: No known data errors
  36. root@nas:/root# zpool offline data ata-ST4000DM000-2AE166_WDH01SND-part1                                                                                                                                  15:19:52
  37. root@nas:/root# zpool status                                                                                                                                                                              15:19:55
  38.   pool: data
  39.  state: DEGRADED
  40. status: One or more devices are faulted in response to persistent errors.
  41.         Sufficient replicas exist for the pool to continue functioning in a
  42.         degraded state.
  43. action: Replace the faulted device, or use 'zpool clear' to mark the device
  44.         repaired.
  45.   scan: scrub canceled on Thu Sep 26 15:15:47 2019
  46. config:
  47.  
  48.         NAME                                                STATE     READ WRITE CKSUM
  49.         data                                                DEGRADED     0     0     0
  50.           raidz1-0                                          DEGRADED     0     0     0
  51.             ata-ST4000DM005-2DP166_ZGY0956M-part1           ONLINE       0     0     0
  52.             ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E0KR60H3-part1  ONLINE       0     0     0
  53.             ata-ST4000DM000-2AE166_WDH01SND-part1           FAULTED      0     0     0  too many errors
  54.  
  55. errors: No known data errors
  56.  
  57.   pool: storage
  58.  state: ONLINE
  59.   scan: resilvered 2.12T in 13h14m with 0 errors on Sat Sep 21 11:09:25 2019
  60. config:
  61.  
  62.         NAME                                       STATE     READ WRITE CKSUM
  63.         storage                                    ONLINE       0     0     0
  64.           raidz1-0                                 ONLINE       0     0     0
  65.             ata-Hitachi_HUS724030ALE641_P8GH7GVR   ONLINE       0     0     0
  66.             ata-ST3000DM001-9YN166_W1F0SJ27-part1  ONLINE       0     0     0
  67.             ata-Hitachi_HUS724030ALE641_P8GBAW7P   ONLINE       0     0     0
  68.             ata-ST3000DM001-1CH166_Z1F4HGS6        ONLINE       0     0     0
  69.             ata-Hitachi_HUS724030ALE641_P8G9NZSR   ONLINE       0     0     0
  70.  
  71. errors: No known data errors
  72. root@nas:/root# zpool online data ata-ST4000DM000-2AE166_WDH01SND-part1                                                                                                                                   15:20:05
  73. warning: device 'ata-ST4000DM000-2AE166_WDH01SND-part1' onlined, but remains in faulted state
  74. use 'zpool clear' to restore a faulted device
  75. root@nas:/root# dmesg -T | tial                                                                                                                                                                           15:20:42
  76. root@nas:/root# zpool clear data ata-ST4000DM000-2AE166_WDH01SND-part1                                                                                                                         Code 130 | 15:21:22
  77. root@nas:/root# zpool status                                                                                                                                                                              15:21:34
  78.   pool: data
  79.  state: ONLINE
  80. status: One or more devices is currently being resilvered.  The pool will
  81.         continue to function, possibly in a degraded state.
  82. action: Wait for the resilver to complete.
  83.   scan: resilver in progress since Thu Sep 26 15:21:22 2019
  84.         72.6M scanned out of 8.30T at 6.05M/s, 399h36m to go
  85.         22.4M resilvered, 0.00% done
  86. config:
  87.  
  88.         NAME                                                STATE     READ WRITE CKSUM
  89.         data                                                ONLINE       0     0     0
  90.           raidz1-0                                          ONLINE       0     0     0
  91.             ata-ST4000DM005-2DP166_ZGY0956M-part1           ONLINE       0     0     0
  92.             ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E0KR60H3-part1  ONLINE       0     0     0
  93.             ata-ST4000DM000-2AE166_WDH01SND-part1           ONLINE       0     0     0  (resilvering)
  94.  
  95. errors: No known data errors
  96.  
  97.   pool: storage
  98.  state: ONLINE
  99.   scan: resilvered 2.12T in 13h14m with 0 errors on Sat Sep 21 11:09:25 2019
  100. config:
  101.  
  102.         NAME                                       STATE     READ WRITE CKSUM
  103.         storage                                    ONLINE       0     0     0
  104.           raidz1-0                                 ONLINE       0     0     0
  105.             ata-Hitachi_HUS724030ALE641_P8GH7GVR   ONLINE       0     0     0
  106.             ata-ST3000DM001-9YN166_W1F0SJ27-part1  ONLINE       0     0     0
  107.             ata-Hitachi_HUS724030ALE641_P8GBAW7P   ONLINE       0     0     0
  108.             ata-ST3000DM001-1CH166_Z1F4HGS6        ONLINE       0     0     0
  109.             ata-Hitachi_HUS724030ALE641_P8G9NZSR   ONLINE       0     0     0
  110.  
  111. errors: No known data errors
  112.  

Reply to "zpool clear device"

Here you can reply to the paste above