On Thu, Mar 8, 2012 at 10:28 AM, Bob Doolittle <bob.doolit...@oracle.com> wrote:
> 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.

You're probably right :)

> 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")

i'd probably add "verify that your data is copied and accessibe in the
temp pool", just to be sure.

> - destroy old pool
> - create a three-disk raidz pool (with the old pool name) using two disks
> and a fake device,
> something like http://www.dev-eth0.de/creating-raidz-with-missing-device/
> - copy data to new pool from temp pool

... and here as well, "verify that your data is copied and accessibe
in the new pool", just to be sure.

> - 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 :-)

zfs-discuss mailing list

Reply via email to