Is the migration after creating and importing the new pool so simple as
For z in $(zfs list):
Zfs send | zfs recv
Do magic to import new pool as zones
Once I've got the new pool created, can I safely add two new mirror vdevs to
it online (once I've replaced the old 1T disks with new)?
Sent from my iPhone
> On Jul 2, 2014, at 2:16, Ian Collins via smartos-discuss
> <[email protected]> wrote:
>
> Coy Hile via smartos-discuss wrote:
>> Good evening, all:
>>
>> When I setup my current box that’s doing ‘real’ work using SmartOS, I only
>> had four old 1G SATA disks setup thusly:
>>
>> [root@headnode ~]# zpool list -v
>> NAME SIZE ALLOC FREE EXPANDSZ CAP DEDUP
>> HEALTH ALTROOT
>> zones 3.62T 479G 3.16T - 12% 1.00x
>> ONLINE -
>> raidz1 3.62T 479G 3.16T -
>> c0t5000CCA375D44795d0 - - - -
>> c0t5000CCA375D4B7D3d0 - - - -
>> c0t5000CCA375D4B7ECd0 - - - -
>> c0t5000CCA375D5D4A7d0 - - - -
>> [root@headnode ~]#
>>
>> I’m probably going to pick up a bunch of SAS drives soon (whatever Keith
>> says is the right thing to use in the manufacturing data, naturally :)) and
>> (hopefully) add new mirror zvols
>>
>> (a la zpool add zones mirror newDisk1 newDisk2 run n times)
>>
>> That brings up two questions. Firstly, will that procedure work?
>
> That depends on your definition of work. Don't do it!
>
>> Secondly, if I want to vacate the existing raidz1 zvol so that I can
>> remove those four disks and replace them with a pair of mirror vdevs, is
>> there a supported way to do that online? If I can avoid downtime, that’d be
>> most awesome.
>
> Create a new pool with the new drives and zfs send everything over to
> it. You'll then have to boot into a no install session to export the
> current pool and import the new one as "zones".
>
> --
> Ian.
>
>
>
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/184463/25017710-2b4ef3c5
> Modify Your Subscription: https://www.listbox.com/member/?&
> Powered by Listbox: http://www.listbox.com
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com