[zfs-discuss] changing vdev types

Freddie Cash
Thu, 02 Jun 2011 03:41:40 -0000

On Wed, Jun 1, 2011 at 2:34 PM, Freddie Cash <fjwcash at gmail.com> wrote:

> On Wed, Jun 1, 2011 at 12:45 PM, Eric Sproul <esproul at omniti.com>
wrote:
>
>> On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison
>> <iwasinnamuknow at genestate.com> wrote:
>> > Hi list,
>> >
>> > I''ve got a pool thats got a single raidz1 vdev.
I''ve just some more
>> disks in
>> > and I want to replace that raidz1 with a three-way mirror. I was
>> thinking
>> > I''d just make a new pool and copy everything across, but
then of course
>> I''ve
>> > got to deal with the name change.
>> >
>> > Basically, what is the most efficient way to migrate the pool to a
>> > completely different vdev?
>>
>> Since you can''t mix vdev types in a single pool
>
>
> Side note:  you most certainly can mix vdevs in a pool.  It''s not
> recommended, nor even suggested, but it''s most certainly possible.
You just
> have to add -f to the "zpool add" command.
>
> I use this at home, where my pool has a 3-disk raidz1 vdev (SATA1) and a
> 2-disk mirror vdev (IDE).  I can''t connect to my home machine
right now, so
> can''t post the "zpool status" output.  But if you want
to see it in action,
> I''ll post when I get home.
>
> [fcash at rogue /home/fcash]$ zpool status pool
  pool: pool
 state: ONLINE
 scrub: none requested
config:

        NAME           STATE     READ WRITE CKSUM
        pool           ONLINE       0     0     0
          raidz1       ONLINE       0     0     0
            ad8        ONLINE       0     0     0
            ad10       ONLINE       0     0     0
            ad9        ONLINE       0     0     0
          mirror       ONLINE       0     0     0
            ad4        ONLINE       0     0     0
            ad6        ONLINE       0     0     0
        cache
          label/cache  ONLINE       0     0     0

errors: No known data errors

[fcash at rogue /home/fcash]$ zpool get version pool
NAME  PROPERTY  VALUE    SOURCE
pool  version   14       default

[fcash at rogue /home/fcash]$ zfs get version pool
NAME  PROPERTY  VALUE    SOURCE
pool  version   3        -

[fcash at rogue /home/fcash]$ uname -a
FreeBSD rogue.ashesofthe.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0 r211388: Sun
Aug 22 15:18:36 PDT 2010
root at rogue.ashesofthe.net:/usr/obj/usr/src-8/sys/ROGUE
i386

--
Freddie Cash
fjwcash at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110601/f2927bde/attachment.html>