Sean,

This scenario is covered in the ZFS Admin Guide, found here:

http://docs.sun.com/app/docs/doc/817-2271/6mhupg6fu?a=view#gcfhe

I provided an example below.

Cindy

# zpool create tank02 c0t0d0
# zpool status tank02
   pool: tank02
  state: ONLINE
  scrub: none requested
config:

         NAME        STATE     READ WRITE CKSUM
         tank02      ONLINE       0     0     0
           c0t0d0    ONLINE       0     0     0

errors: No known data errors
# zpool attach tank02 c0t0d0 c0t2d0
# zpool status tank02
   pool: tank02
  state: ONLINE
  scrub: resilver completed with 0 errors on Thu Jul 26 08:47:18 2007
config:

         NAME        STATE     READ WRITE CKSUM
         tank02      ONLINE       0     0     0
           mirror    ONLINE       0     0     0
             c0t0d0  ONLINE       0     0     0
             c0t2d0  ONLINE       0     0     0

errors: No known data errors
#


> On Wed, Jul 25, 2007 at 05:58:50PM -0400, Alderman, Sean wrote:
> 
>>Is it possible to convert a plain jane disk (or slice) vdev to a mirror
>>vdev?  With SVM (and other Volume Managers) it's not terribly difficult
>>to change a plain meta device to a mirrored meta device.  Can this be
>>done with ZFS?... 
>>
>>Like convert something similar to...
>>[EMAIL PROTECTED]:/]# zpool status tank02
>>  pool: tank02
>> state: ONLINE
>> scrub: none requested
>>config:
>>
>>        NAME         STATE     READ WRITE CKSUM
>>        tank02       ONLINE       0     0     0
>>          c3t0d0s12  ONLINE       0     0     0
>>
>>errors: No known data errors
>>
>>to...
>>[EMAIL PROTECTED]:/]# zpool status tank02
>>  pool: tank02
>> state: ONLINE
>> scrub: none requested
>>config:
>>
>>        NAME          STATE     READ WRITE CKSUM
>>        tank02        ONLINE       0     0     0
>>          mirror      ONLINE       0     0     0
>>            c3t0d0s12 ONLINE       0     0     0
>>            c3t1d0s0  ONLINE       0     0     0
>>
>>errors: No known data errors
>>
>>I'm hoping yes, but expecting no.  :(
>>
>>P.S. I'm running on a Sun Fire X4200 M2...
>>[EMAIL PROTECTED]:/]# uname -iprsv
>>SunOS 5.10 Generic_118855-36 i386 i86pc
>>
>>Thanks.
>>--
>>Sean
>>
> 
> 
>>_______________________________________________
>>zfs-discuss mailing list
>>zfs-discuss@opensolaris.org
>>http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
> 
> 
> 
> --
> Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to