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...
[root at qafx01:/]# 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...
[root at qafx01:/]# 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...
[root at qafx01:/]# uname -iprsv
SunOS 5.10 Generic_118855-36 i386 i86pc
Thanks.
--
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070725/55defdad/attachment.html>
See ''zpool attach''. - Eric 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... > [root at qafx01:/]# 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... > [root at qafx01:/]# 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... > [root at qafx01:/]# uname -iprsv > SunOS 5.10 Generic_118855-36 i386 i86pc > > Thanks. > -- > Sean >> _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
Cindy.Swearingen at Sun.COM
2007-Jul-26 14:51 UTC
[zfs-discuss] Changing a root vdev''s config?
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...
>>[root at qafx01:/]# 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...
>>[root at qafx01:/]# 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...
>>[root at qafx01:/]# uname -iprsv
>>SunOS 5.10 Generic_118855-36 i386 i86pc
>>
>>Thanks.
>>--
>>Sean
>>
>
>
>>_______________________________________________
>>zfs-discuss mailing list
>>zfs-discuss at 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 at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss