From ZEVO Wiki

Site: ConvertingASingleDiskPoolIntoAMirror


In this example we turn a pool with a single disk into a mirror by “attaching” a new disk. The new disk should be of similar size and speed to the original disk in the pool.

$ zpool status solo
  pool: solo
 state: ONLINE
 scan: none requested
config:

  NAME                                         STATE     READ WRITE CKSUM
  solo                                         ONLINE       0     0     0
    GPTE_3A7D177B-0C3E-46A2-8049-76D7E95BADFD  ONLINE       0     0     0

errors: No known data errors

$ sudo zpool attach -f solo GPTE_3A7D177B-0C3E-46A2-8049-76D7E95BADFD /dev/disk6

$ zpool status solo
  pool: solo
 state: ONLINE
 scan: resilvered 426Ki in 0h0m with 0 errors on Fri Sep 14 15:02:21 2012
config:

  NAME                                      STATE     READ WRITE CKSUM
  solo                                      ONLINE       0     0     0
    mirror-0                                ONLINE       0     0     0
      GPTE_3A7D177B-0C3E-46A2-8049-76D7E9…  ONLINE       0     0     0  at disk5s2
      GPTE_11003786-D792-4B8C-8432-8BA38D…  ONLINE       0     0     0  at disk6s2

errors: No known data errors
Retrieved from http://zevo.getgreenbytes.com/wiki/pmwiki.php?n=Site.ConvertingASingleDiskPoolIntoAMirror
Page last modified on September 15, 2012, at 06:35 AM