Starting Point :
Single XFS HDD with a whole bunch of Data..

Planned Setup:
ZFS Mirror without loosing any Data..

Save your Data

First things first: DO A BACKUP !!
and then 5 more just to be absolutely sure!

  1. create single ZFS drive: zpool create -m /data data /dev/sdb
  2. copy data on it: cp/rsync/whatever floats your boat
  3. empty and wipe the disk, which you basically just cloned
  4. find your empty drive using: ls /dev/disk/by-id/
  5. add it to the pool: zpool attach Pool_Name Filled_Drive_Name Empty_Drive_Name

Once done you can check it with zpool status.
After a couple seconds it should say that it's "resilvering" the new drive.
Meaning it started creating the Mirror.
Since we are copying all the data 2 times altogether the whole process can take quite some time!

ZFS%20resilvering

Previous Post Next Post