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!

Replace HDD in RAIDZ

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
drnicolas
Advanced User
Advanced User
Posts: 180
Joined: 15 Aug 2013 14:03
Location: Wiesbaden, Germany
Status: Offline

Replace HDD in RAIDZ

Post 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)
HP Proliant N54L - Bios Mod -16GB non-ECC-RAM - ZFS RAIDZ1 (3x3TB) - 1VM running XigmaNAS 11.2.0.4.6026

kenZ71
Advanced User
Advanced User
Posts: 379
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: Replace HDD in RAIDZ

Post 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
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

drnicolas
Advanced User
Advanced User
Posts: 180
Joined: 15 Aug 2013 14:03
Location: Wiesbaden, Germany
Status: Offline

Re: Replace HDD in RAIDZ

Post 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.
HP Proliant N54L - Bios Mod -16GB non-ECC-RAM - ZFS RAIDZ1 (3x3TB) - 1VM running XigmaNAS 11.2.0.4.6026

Post Reply

Return to “ZFS (only!)”