[zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Andreas Höschler
Dear managers, one of our servers (X4240) shows a faulty disk: -bash-3.00# zpool status   pool: rpool  state: ONLINE  scrub: none requested config:         NAME          STATE     READ WRITE CKSUM         rpool        

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Cindy . Swearingen
Hi Andreas, Good job for using a mirrored configuration. :-) Your various approaches would work. My only comment about #2 is that it might take some time for the spare to kick in for the faulted disk. Both 1 and 2 would take a bit more time than just replacing the faulted disk with a spare

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Andreas Höschler
Hi Cindy, Good job for using a mirrored configuration. :-) Thanks! Your various approaches would work. My only comment about #2 is that it might take some time for the spare to kick in for the faulted disk. Both 1 and 2 would take a bit more time than just replacing the faulted disk with

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Cindy . Swearingen
Andreas, More comments below. Cindy On 08/06/09 14:18, Andreas Höschler wrote: Hi Cindy, Good job for using a mirrored configuration. :-) Thanks! Your various approaches would work. My only comment about #2 is that it might take some time for the spare to kick in for the faulted

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Andreas Höschler
Hi all, zpool add tank spare c1t15d0 ? After doing that c1t6d0 is offline and ready to be physically replaced? Yes, that is correct. Then you could physically replace c1t6d0 and add it back to the pool as a spare, like this: # zpool add tank spare c1t6d0 For a production system, the

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Cindy . Swearingen
Andreas, I think you can still offline the faulted disk, c1t6d0. The difference between these two replacements: zpool replace tank c1t6d0 c1t15d0 zpool replace tank c1t6d0 Is that in the second case, you are telling ZFS that c1t6d0 has been physically replaced in the same location. This would

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Andreas Höschler
Hi Cindy, I think you can still offline the faulted disk, c1t6d0. OK, here it gets tricky. I have NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 mirror ONLINE 0 0 0 c1t2d0 ONLINE 0 0

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Cindy . Swearingen
Dang. This is a bug we talked about recently that is fixed in Nevada and an upcoming Solaris 10 release. Okay, so you can't offline the faulted disk, but you were able to replace it and detach the spare. Cool beans... Cindy On 08/06/09 15:35, Andreas Höschler wrote: Hi Cindy, I think you

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Don Turnbull
I believe there are a couple of ways that work. The commands I've always used are to attach the new disk as a spare (if not already) and then replace the failed disk with the spare. I don't know if there are advantages or disavantages but I also have never had a problem doing it this way.

Re: [zfs-discuss] Replacing faulty disk in ZFS pool

2009-08-06 Thread Don Turnbull
If her adds the spare and then manually forces a replace, it will take no more time than any other way. I do this quite frequently and without needing the scrub which does take quite a lot of time. cindy.swearin...@sun.com wrote: Hi Andreas, Good job for using a mirrored configuration. :-)