User Tools

Site Tools


freenas:replace_a_drive

This is an old revision of the document!


FreeNAS - Replace a Drive

The GUI informs that the zpool is degraded.


List the Pools

zpool list

returns:

NAME           SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
Pool1         43.5T  35.6T  7.94T        -         -    10%    81%  1.00x    ONLINE  /mnt
freenas-boot   216G  5.08G   211G        -         -     0%     2%  1.00x    ONLINE  -

Check the status of the Pool

zpool status Pool1

returns:

  pool: Pool1
 state: DEGRADED
status: One or more devices has experienced an unrecoverable error.  An
    attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
    using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
config:
 
	NAME                                            STATE     READ WRITE CKSUM
	Pool1                                           ONLINE       0     0     0
	  raidz1-0                                      ONLINE       0     0     0
	    gptid/2d35e96c-b611-11ea-be33-00d861fcb7d8  ONLINE       0     0     0
	    gptid/2d41dcbd-b611-11ea-be33-00d861fcb7d8  ONLINE       0     0    40  too many errors
	    gptid/2ddb5cb2-b611-11ea-be33-00d861fcb7d8  ONLINE       0     0     0
 
errors: No known data errors

NOTE: This shows the disks within the Pool.

It also shows that device 2d41dcbd-b611-11ea-be33-00d861fcb7d8 has errors.


Determine the actual disk connected to that device

glabel status | grep 2d41dcbd

returns:

gptid/2d41dcbd-b611-11ea-be33-00d861fcb7d8     N/A  ada3p2

NOTE: This shows that the disk is /dev/ada3


Determine the Serial Number of the Disk

sudo camcontrol identify ada3 | grep serial

returns:

serial number         ZL21DEPA

freenas/replace_a_drive.1608575719.txt.gz · Last modified: 2020/12/21 18:35 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki