Computing Science, posix rules, life rules, no rules… Thursday, 9 September 2010 - 11:09
Publications
Comments

ZFS: Cannot replace a replacing device…

I think some of you already have got that message. The problem is:
1) You have a degraded ZFS pool (some replica was gone)
2) You did try to fix that, changing the disk, and executing a “zpool replace poolname cxtxdx
3) For some reason, the resilver process do not ends. So, you need:
a. Restart the resilver process (that kind of computer problems, uncertain and unknown);
b. Change the new drive (it’s bad too, you need to keep the bad ones on one side, and the good ones in the another side ;-), and restart the resilver process;
c. Restart the server (yes, this still fix somethings), and hope the pool is clean after that.
And if no option above helps you… ok, you have a big problem. If you have a lot of IO’s, so… you are a “walker problem”. ;-)
If you look for the solution, you will see this bug report. Not encouraging…
But there is hope… always! Here is a workaround that i have used, and maybe can help you too:
1) Forget about the old resilver process.
2) Instead of try to replace the disk with a new one, “attach” the new disk to the pool.
e.g: If you have a pool of two disks in mirror (c0t1d0 and c0t2d0), and you got problems replacing the disk c0t2d0, remove it and add another one with this command:

zpool attach poolname c0t1d0 c0t2d0

And the resilver should start automatically. So, you will have a “DEGRADED” pool on the screen, but should have a healthy pool in the background.
Hope that helps.
peace.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • TwitThis

9 Trackbacks to "ZFS: Cannot replace a replacing device…"

  1. on September 3, 2009 at 7:28 pm
  2. on September 3, 2009 at 11:30 pm
  3. on September 4, 2009 at 1:00 am
  4. on September 4, 2009 at 2:22 am
  5. on September 22, 2009 at 11:12 am
  6. on September 22, 2009 at 11:17 am
  7. on September 22, 2009 at 2:44 pm
  8. on September 24, 2009 at 7:18 pm
  9. on September 25, 2009 at 4:07 am

7 Comments to "ZFS: Cannot replace a replacing device…"

  1. September 3, 2009 - 2:38 pm | Permalink

    Привет всем! Для меня как для девушки тоже нашлось в этом блоге много интересного. Так держать

  2. September 16, 2009 - 5:13 pm | Permalink

    Автор явно умеет привлечь посетителей на сайт). Пишет очень понятно и интересно. Огромное человеческое спасибо

  3. September 16, 2009 - 5:14 pm | Permalink

    Давно искал подобный материал, перерыл весь инет, а тут на тебе. Благодарю автора

  4. September 19, 2009 - 9:24 am | Permalink

    Для более подробного и внимательного изучения добавил в избранное. Буду изучать

  5. September 24, 2009 - 5:09 pm | Permalink

    Достаточно поучительно и в тоже самое время кардинально. Добавляю в избранное.

  6. Car insurance claims >> http://onlinecarinsuranceclaims.com/'s Gravatar Car insurance claims >> http://onlinecarinsuranceclaims.com/
    November 23, 2009 - 6:29 pm | Permalink

    [... - http://www.eall.com.br is another wonderful authority of advice. Online Car insurance claims [… -

  7. May 11, 2010 - 4:19 am | Permalink

    Some people think that car insurance is a waste of money but it is really very essential that you have one.-”‘

Leave a Reply