Hi there,

On Mon, 2007-04-02 at 00:37 -0700, homerun wrote:
> Is it possible to convert live 3 disks zpool from raidz to raidz2

Unfortunately not - you'd need to backup your data, destroy the pool,
create the new pool and restore your data.

> And is it possible to add 1 new disk to raidz configuration
> without backups and recreating zpool from cratch.

You can add a disk to a raidz configuration, but then that makes a pool
containing 1 raidz + 1 additional disk in a dynamic stripe configuration
(which ZFS will warn you about, since you have different fault tolerance
then) eg.

# mkfile 64m 1 2 3 4
# zpool create mypool raidz `pwd`/1 `pwd`/2 `pwd`/3 
# zpool status -v mypool
  pool: mypool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        mypool      ONLINE       0     0     0
          raidz1    ONLINE       0     0     0
            /tmp/1  ONLINE       0     0     0
            /tmp/2  ONLINE       0     0     0
            /tmp/3  ONLINE       0     0     0

errors: No known data errors
# zpool add mypool `pwd`/4
invalid vdev specification
use '-f' to override the following errors:
mismatched replication level: pool uses raidz and new vdev is file
# zpool add -f mypool `pwd`/4
# zpool status -v mypool
  pool: mypool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        mypool      ONLINE       0     0     0
          raidz1    ONLINE       0     0     0
            /tmp/1  ONLINE       0     0     0
            /tmp/2  ONLINE       0     0     0
            /tmp/3  ONLINE       0     0     0
          /tmp/4    ONLINE       0     0     0

errors: No known data errors
# 


        cheers,
                        tim

-- 
Tim Foster, Sun Microsystems Inc, Solaris Engineering Ops
http://blogs.sun.com/timf

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

Reply via email to