Sonntag, März 15, 2009

start zfs pool with one disk

Some first test using the OpenSolaris live CD in VirtualBox. It helps testing the things directly you read about.

zpool create mypool c3d0
start pool with ony one disk

Created in /mypool a directory and some testfiles.

zpool attach mypool c3d0 c3d1
add a second disk as mirror

zpool detch mypool c3d0
now only the second drive exists in the pool
the data was mirrod to this drive

after reboot "mount" the pool with
zpool import mypool
use -f if the pool was not properly "exported" before

Keine Kommentare: