Page 1 of 1

trouble replacing Disk RaidZ2

Posted: 17 May 2014 08:43
by rwps
I have a non-hotswap HP n36L running Nas4free 9.1.0.1 - Sandstorm (revision 636).
One of the 4 x 2tb disks starting showing errors, so I'm trying to replace it with a new 3tb disk.
However I can't find the right command to get the disk online & resilvering.

I'm entering commands in the gui at ADVANCED/COMMAND, then executing from there.

Disks|ZFS|Pools|Information is currently showing:

Code: Select all

  pool: ourdata
 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 11h33m with 0 errors on Sat May 17 12:28:35 2014
config:

	NAME                      STATE     READ WRITE CKSUM
	ourdata                   DEGRADED     0     0     0
	  raidz2-0                DEGRADED     0     0     0
	    ada0p2                ONLINE       0     0     0
	    ada1p2                ONLINE       0     0     0
	    ada2p2                ONLINE       0     0     0
	    10974645521217784628  UNAVAIL      0     0     0  was /dev/ada3p2

errors: No known data errors
I have tried many commands, but none are doing anything:
zpool replace ourdata ada3p2 ada3p2
zpool replace ourdata ada3p2
zpool replace ourdata 10974645521217784628 /dev/ada3p2
zpool replace ourdata /dev/ada3p2/ dev/ada3p2
zpool replace ourdata 10974645521217784628
zpool replace ourdata 10974645521217784628 ada3p2
zpool replace ourdata ada3p2 10974645521217784628

I did a scrub and then tried again, no luck
I onlined the disk, and tried again, no luck.

Any thoughts on what I should be doing?

Re: trouble replacing Disk RaidZ2

Posted: 17 May 2014 08:47
by b0ssman
well if its a new 3tb drive there is no ada3p2.

why did you use partitions in the first place?

the command would be
zpool replace ourdata 10974645521217784628 ada3

Re: trouble replacing Disk RaidZ2

Posted: 17 May 2014 08:52
by rwps
Thanks!! resilvering now.

Not sure why I have partitions....
Is it something I should address?

Re: trouble replacing Disk RaidZ2

Posted: 17 May 2014 09:00
by b0ssman
its just one more thing that can fail.

but its not necessary to change it.

Re: trouble replacing Disk RaidZ2

Posted: 17 May 2014 11:27
by rwps
OK, will take note to ensure I don't replicate it in future.
Many thanks