ho aggiunto il nuovo disco invece di fare replace

Status
Not open for further replies.

maumar

Cadet
Joined
Sep 8, 2013
Messages
2
Buongiornoa tutti
ho un NAS con 7 dischi da 3 Tera, un disco e' sacrificato per il boot, gli altri 6 invece sono sonoin RAIDZ2-0

Si e' rotto un disco ed ecco la situazione:

zpool status -x
pool: volraidz2
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: scrub repaired 0 in 16h31m with 0 errors on Sun Aug 25 16:31:13 2013
config:

NAME STATE READ WRITE CKSUM
volraidz2 DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
gptid/ad584362-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/adf33495-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/ae71c597-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/aee96670-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
16072502205208485062 UNAVAIL 0 0 0 was /dev/gptid/af650245-7d1a-11e2-a678-0024219c3544
gptid/afdc214a-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0


Ho chiesto a quelli della webfarm di sotituire il disco rotto (il 5^)
Dopo la sostituzione da interfaccia web ho fatto (stupidamente) Add
Non dovevo fare Add
Dovevo fare replace
Il disco addato adesso e' l'ultimo
/dev/gptid/7ede4402-1633-11e3-9227-0024219c3544

Adesso sono in questa situazione

[root@freenas] ~# zpool status
pool: volraidz2
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: scrub repaired 0 in 16h31m with 0 errors on Sun Aug 25 16:31:13 2013
config:

NAME STATE READ WRITE CKSUM
volraidz2 DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
gptid/ad584362-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/adf33495-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/ae71c597-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/aee96670-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
16072502205208485062 UNAVAIL 0 0 0 was /dev/gptid/af650245-7d1a-11e2-a678-0024219c3544
gptid/afdc214a-7d1a-11e2-a678-0024219c3544 ONLINE 0 0 0
gptid/7ede4402-1633-11e3-9227-0024219c3544 ONLINE 0 0 0

errors: No known data errors
[root@freenas] ~# zpool detach gptid/7ede4402-1633-11e3-9227-0024219c3544
missing <device> specification
usage:
detach <pool> <device>
[root@freenas] ~# zpool detach volraidz2 gptid/7ede4402-1633-11e3-9227-0024219c3544
cannot detach gptid/7ede4402-1633-11e3-9227-0024219c3544: only applicable to mirror and replacing vdevs
[root@freenas] ~# zpool remove volraidz2 gptid/7ede4402-1633-11e3-9227-0024219c3544
cannot remove gptid/7ede4402-1633-11e3-9227-0024219c3544: only inactive hot spares, cache, top-level, or log devices can be removed
[root@freenas] ~# zpool replace volraidz2 gptid/af650245-7d1a-11e2-a678-0024219c3544 gptid/7ede4402-1633-11e3-9227-0024219c3544
invalid vdev specification
use '-f' to override the following errors:
/dev/gptid/7ede4402-1633-11e3-9227-0024219c3544 is part of active pool 'volraidz2'


Dunque
non mi fa rimuovere
non mi fa fare detach

il replace mi chiede di fare -f, sono sicuro che perdo tutto

Esiste qualche altra via di uscita?
Altrimenti reinstall

Grazie
 

M_a_X_Italy

Patron
Joined
Jul 28, 2012
Messages
448
Hai un hd da 3 tera per il boot ?
X il tuo problema ho delle idee, ma ti consiglio di attendere chi è + esperto di me.
immagino cmq che ti indichi degraded xkè il raid non'è del tutto operativo
 

maumar

Cadet
Joined
Sep 8, 2013
Messages
2
immagino cmq che ti indichi degraded xkè il raid non'è del tutto operativo
e degraded xche' nonostante manchi un disco, per l aridondanza e' operativo ma in modo degradato, ha perso la ridondanza che aveva
 

gian4nas

Patron
Joined
Oct 13, 2011
Messages
389
Ciao

bella situazione la tua, hai provato prima di fare qualsiasi operazione a mettere il disco che hai aggiunto offline?

Hai provato dare un occhio qua, nello specifico al capitolo 11, in questo paragrafo, oppure qua dove parla di attaccare e staccare i dischi.

Saluti
 
Status
Not open for further replies.
Top