Currently I have an encrypted mirrored ZFS root on two SSD drives:
What I would like to do it buy a third SSD drive (of the same size) to use as a backup of my system. I was thinking of creating a 3 way mirror (ie: adding the new drive to the existing mirror), letting it sync/resilver and then removing the drive to keep offsite somewhere. The commands:
Power down down server, remove da2 drive and then power up again. So I should have a 2 way mirror again at this stage with the original two disks.
Does this look right?
If in a couple months I want to "update" what is on the 3rd disk, do I just re-add it to the zroot pool and repeat the steps above?
Code:
pool: zroot
state: ONLINE
scan: scrub repaired 0 in 0h0m with 0 errors on Mon Jul 28 03:00:53 2014
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da0p1.eli ONLINE 0 0 0
da1p1.eli ONLINE 0 0 0
errors: No known data errors
What I would like to do it buy a third SSD drive (of the same size) to use as a backup of my system. I was thinking of creating a 3 way mirror (ie: adding the new drive to the existing mirror), letting it sync/resilver and then removing the drive to keep offsite somewhere. The commands:
zpool attach zroot da1p1.eli da2p1.eli (create 3 way mirror)
zpool detach zroot da2p1.eli (detach new drive after syncing has completed)
Power down down server, remove da2 drive and then power up again. So I should have a 2 way mirror again at this stage with the original two disks.
Does this look right?
If in a couple months I want to "update" what is on the 3rd disk, do I just re-add it to the zroot pool and repeat the steps above?