Page 1 of 1

Replace HDD in RAIDZ

Posted: 15 Oct 2013 18:45
by drnicolas
I want to replace one of the HDDs in my RAIDz

The original was 250GB, the new is 500GB.

For this, I have "offlined" the old HDD and built in the new one.
Now I get the following Picture from the ZFS ann cannot online the new HDD:

pool: vStorage
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 1h21m with 0 errors on Mon Oct 14 18:29:21 2013
config:

NAME STATE READ WRITE CKSUM
vStorage DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
9374500334088417568 UNAVAIL 0 0 0 was /dev/ada0.nop
ada1.nop ONLINE 0 0 0
ada2.nop ONLINE 0 0 0

errors: No known data Errors

What can I do ?
in another posting I found, I should replace the drive, but
that did not work sufficiently.

Attaching did also seem not to work (I did not get any success-message)

Re: Replace HDD in RAIDZ

Posted: 16 Oct 2013 01:57
by kenZ71
This link has a good description of how to replace a drive
http://mattwilson.org/blog/solaris/repl ... -with-zfs/

The command you want is:
zpool replace tank c0t3d0

where tank = the name of your pool and c0t3d0 = the name of your drive


edit - better link

Re: Replace HDD in RAIDZ

Posted: 22 Oct 2013 12:35
by drnicolas
Thank you for your help.
At the end, i had to use the -f switch.
The HDD was in use befoere.

It works now.