Hi Martin,

Yes, you can do this with the zpool attach command.

See the output below.

An example in the ZFS Admin Guide is here:

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


Cindy

# zpool create mpool c1t20d0
# zpool status mpool
  pool: mpool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        mpool       ONLINE       0     0     0
          c1t20d0   ONLINE       0     0     0

errors: No known data errors
# zpool attach mpool c1t20d0 c1t21d0
# zpool status mpool
  pool: mpool
 state: ONLINE
 scrub: resilver completed with 0 errors on Tue Apr 10 08:52:30 2007
config:

        NAME         STATE     READ WRITE CKSUM
        mpool        ONLINE       0     0     0
          mirror     ONLINE       0     0     0
            c1t20d0  ONLINE       0     0     0
            c1t21d0  ONLINE       0     0     0

errors: No known data errors
#


Martin Girard wrote:
Hi,

I have a zpool with only one disk. No mirror.
I have some data in the file system.

Is it possible to make my zpool redundant by adding a new disk in the pool
and making it a mirror with the initial disk?
If yes, how?

Thanks

Martin
This message posted from opensolaris.org
_______________________________________________
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