Krzys wrote:
> Hello everyone, I am slowly running out of space in my zpool.. so I wanted to 
> replace my zpool with a different zpool..
> 
> my current zpool is
>> zpool list
> NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
> mypool                  278G    263G   14.7G    94%  ONLINE     -
> 
>> zpool status mypool
>    pool: mypool
>   state: ONLINE
> status: One or more devices is currently being resilvered.  The pool will
>          continue to function, possibly in a degraded state.
> action: Wait for the resilver to complete.
>   scrub: resilver in progress, 11.37% done, 10h0m to go
> config:
> 
>          NAME        STATE     READ WRITE CKSUM
>          mypool      ONLINE       0     0     0
>            mirror    ONLINE       0     0     0
>              c1t2d0  ONLINE       0     0     0
>              c1t3d0  ONLINE       0     0     0
> 
> errors: No known data errors
> 
> (yes I know its resilvering one of the disks...)
> 
> 
> Anyway that is a simple mirror zpool, I would like to create another pool 
> lets 
> say mypool2 with few more disks and use raidz2 instead... What would be my 
> options to do this transfer?

"zfs send" -- which will be much simpler when I finish "zfs send -R".

> I cannot attach to this existing pool disks, I don 
> tthink thats an option because thats mirror and not raidz2...

Well, you *can*, it just isn't recommended.

> can I create 
> raidz2 and just add it to mypool using zpool add option?

Yes.

> and then when its added 
> is there any way to remove originall mirror out of it?

No, not until we implement pool size reduction.

> Now the tricky part is I 
> have lots of snapshots on that mypool and I would like to keep them...

You can use "zfs send -i" to send all the snapshots.

 > Another
> option that I think I have is just create mypool2 as I want it to be which is 
> raidz2 and then use zfs send and receive to move data around and then restroy 
> original mirror when I am done replacing it with this one...

Yep.

> What do you think? what would you recommend? with the second option I 
> probably 
> would need to take system offline and do it

With zfs send, you'd have to take it offline just for a few minutes to do the 
final incremental send of your filesystems, and switch over to using the new 
pool.

--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to