What about removing attach/deattach and replace it with
zpool add [-fn] 'pool' submirror 'device/mirrorname' 'new_device'
e.g.
        NAME        STATE     READ WRITE CKSUM
        rpool        ONLINE       0     0     0
          mirror-01 ONLINE       0     0     0
            c4d0s0  ONLINE       0     0     0
            c3d0s0  ONLINE       0     0     0
zpool add rpool submirror mirror-01 c5d0s0 # or
zpool add rpool submirror c4d0s0 c5d0s0
zpool remove rpool c5d0s0
Some more examples
zpool add 'pool' submirror log-01 c7d0s0  # create a mirror for the Intent Log 
And may be one day zpool add 'pool' subraidz raidz2-01 c5d0s0 to add extra disk 
to raidz group and have the disk restriped in the background

Which would mean vdev in terms of syntax would support
concat (was disk), concat-file (was file), mirror, submirror, raidz, raidzN, 
subraidz (one day), spare, log, cache
--
And change 
zpool add rpool disk c5d0s0
to
zpool add rpool concat c5d0s0  # instead of disk use concat or 
zpool add rpool concatfile <path to file> # instead of file

Cheers
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to