Site
Converting A Single Disk Pool Into A Mirror
Site.ConvertingASingleDiskPoolIntoAMirror History
Show minor edits - Show changes to output
Changed lines 24-26 from:
NAME STATE READ WRITE CKSUM
solo ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
solo
mirror-0
to:
NAME STATE READ WRITE CKSUM
solo ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
solo ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
Added lines 1-31:
\\
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
@]
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
@]