On 3/7/2012 9:04 PM, Fajar A. Nugraha wrote:
Why can't I
just give the old pool name to the raidz pool when I create it?
Cause you can't have two pools with the same name. You either need to
rename the old pool first, or rename the new pool afterwards.
But in your instructions you have me destroying the old pool before
creating the new raidz pool, so it seems I can create the new pool with
the old name.
This means I don't need the export/import at the end, doesn't it?
So I think the steps are:
- use the one new disk to create a temporary pool
- copy the data ("zfs snapshot -r" + "zfs send -R | zfs receive")
- destroy old pool
- create a three-disk raidz pool (with the old pool name) using two disks and a
something like http://www.dev-eth0.de/creating-raidz-with-missing-device/
- copy data to new pool from temp pool
- destroy the temporary pool
- replace the fake device with now-free disk
I think that's it. Does this look right? I very much appreciate your
assistance here. Kinda important to me that I get this right :-)
And thanks to Cindy. If I had another disk it would indeed be simpler to
create two mirrors and add them together. But I had to pay in blood to
even get these :-)
zfs-discuss mailing list