This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Drive replacment advice needed, please.

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
stanv
NewUser
NewUser
Posts: 4
Joined: 16 Feb 2014 21:52
Status: Offline

Drive replacment advice needed, please.

Post by stanv »

Hi,

I mistakenly did a zpool remove instead of a zpool replace. How should I properly progress to adding back a new replacement drive to replace the failed/removed ada2 drive?

nas4free: ~ # zpool status
pool: pool1
state: DEGRADED
status: One or more devices has been removed by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using 'zpool online' or replace the device with
'zpool replace'.
scan: resilvered 14.1G in 0h21m with 0 errors on Thu Aug 7 09:26:59 2014
config:

NAME STATE READ WRITE CKSUM
pool1 DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ada0.nop ONLINE 0 0 0
972325586551966592 REMOVED 0 0 0 was /dev/ada2.nop
ada1.nop ONLINE 0 0 0
ada3.nop ONLINE 0 0 0
ada4.nop ONLINE 0 0 0
cache
ada5 ONLINE 0 0 0

errors: No known data errors

Any help will be greatly appreciated!

Thanks,

Stan

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: Drive replacment advice needed, please.

Post by sleid »

zpool replace pool1 972325586551966592 ada2.nop

or

zpool replace pool1 972325586551966592 ada2

possibly if necessary

zpool online -e ada2.nop or zpool online -e ada2
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

stanv
NewUser
NewUser
Posts: 4
Joined: 16 Feb 2014 21:52
Status: Offline

SOLVED Re: Drive replacment advice needed, please.

Post by stanv »

This worked for me:
ada2 = bad drive
ada6 = replacement drive

# zpool replace pool1 ad2 ad6

Post Reply

Return to “ZFS (only!)”