Need to replace device

Status
Not open for further replies.

DaffyDuke

Cadet
Joined
Nov 30, 2014
Messages
3
While I was trying to replace a failed device, I forced something I should not, but I thought warning message was just a confirmation needed, not a real message to not do what I was trying to .....

Now, I have a zpool with
3 devices in a raiz (and one failed, OFFLINE now)
1 device in a stripe (that should replace failed one).
NAME STATE READ WRITE CKSUM
freenas DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
14657110215957473015 OFFLINE 0 0 0 was /dev/gptid/3b8a732e-85b7-11e3-9acb-28924a2b0273.eli
gptid/35167f0a-ab80-11e2-a3b8-28924a2b0273.eli ONLINE 0 0 0
gptid/35d05556-ab80-11e2-a3b8-28924a2b0273.eli ONLINE 0 0 0
gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli ONLINE 0 0 0

errors: No known data errors

And I can not replace hard drive now, here is some tries :

[root@freenas] /data# zpool remove freenas 14657110215957473015
cannot remove 14657110215957473015: only inactive hot spares, cache, top-level, or log devices can be removed

[root@freenas] /data# zpool offline freenas gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli
cannot offline gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli: no valid replicas

[root@freenas] /data# zpool offline -t freenas gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli
cannot offline gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli: no valid replicas

[root@freenas] /data# zpool replace -f freenas 14657110215957473015 gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli
invalid vdev specification
the following errors must be manually repaired:
/dev/gptid/e2548ef4-78c4-11e4-8c3a-28924a2b0273.eli is part of active pool 'freenas'

What should I do ?
 

DaffyDuke

Cadet
Joined
Nov 30, 2014
Messages
3
Ouch, sorry for my poor english and this bad copy / paste, I totally forgot something : "hello all, and thank you for your help".
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
There's nothing you can do to "fix" this. You need to destroy the pool and recreate it from scratch.

And always, always stick with the GUI and follow the manual's instructions closely. The situation is still recoverable, but using random ZFS commands might change that.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Don't use the CLI to replace a disk. The GUI has helpful little buttons you click and they do all the hard work for you.
 
Status
Not open for further replies.
Top