zpool replace issue

Status
Not open for further replies.

jerem38

Cadet
Joined
Jun 30, 2012
Messages
2
Hello all,

sorry for posting again some zpool replace problems, but it seems each issue is different.
I'm running 8.0.2 release.

One of my disks was faulty. I found out on the forums different procedures, and did it through CLI:
- Offline the failed disk
- Powered off the system, physically changed the disk with a brand new one
- Powered on the system and did zpool replace, with success (some errors though).
Here is the status after the zpool replace:

[maison@freenas] ~# zpool status -v RAID
pool: RAID
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://www.sun.com/msg/ZFS-8000-8A
scrub: resilver completed after 2h55m with 165 errors on Sun Jun 17 15:37:33 2012
config:

NAME STATE READ WRITE CKSUM
RAID DEGRADED 0 0 1.04K
raidz1 DEGRADED 0 0 3.88K
ada0p2 ONLINE 78 323 0
ada1p2 ONLINE 0 0 0
replacing DEGRADED 0 0 0
15879716105957533447 OFFLINE 0 0 0 was /dev/ada2p2
ada2 ONLINE 0 0 0 258G resilvered
ada3p2 ONLINE 0 0 0

errors: Permanent errors have been detected in the following files:

RAID:<0x0>
RAID:<0x1aef5>
[maison@freenas] ~#

To clear the errors, I did a zpool scrub, it seems it helped!
Status after the scrub:

[maison@freenas] /# zpool status -v
pool: RAID
state: DEGRADED
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://www.sun.com/msg/ZFS-8000-9P
scrub: scrub completed after 1h26m with 0 errors on Thu Jun 28 23:53:21 2012
config:

NAME STATE READ WRITE CKSUM
RAID DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 1 35K repaired
replacing DEGRADED 0 0 0
15879716105957533447 OFFLINE 0 0 0 was /dev/ada2p2
ada2 ONLINE 0 0 0
ada3p2 ONLINE 0 0 0 4.50K repaired

errors: No known data errors
[maison@freenas] /#

It seems not so bad, now. My data is available, no know errors.
But I'm not sure what is the next step to move the pool back to Online.
Any recommendation?

Thanks,
Jeremie
 

jerem38

Cadet
Joined
Jun 30, 2012
Messages
2
I finally managed to solve the issue. For any reason, the old disk didn't detached automatically.
I runn "zpool detach RAID 15879716105957533447" and all is back to online now :)

in case it can help others with similar issue.
 
Status
Not open for further replies.
Top