Hi again
,
For the sake of learning I set up 2 VBox FreeBSD 8.2 with ZFSonRooT (hostname "primary" and "backup"). The idea is to simulate a full hardware failure and recovery using ZFS. Machine "primary" has 1 pool called "zroot" (OS) and machine "backup has "zroot" (OS) and "primary". The idea is to send all data to the "primary" pool on machine "backup" from machine "primary".
After the machines are up, I populate the "primary" machine with some data, create a snapshot with
and send it to the "backup" machine ("primary" pool) via
.
The problem is that after transferring the snapshot, the datasets get mounted automatically and because the snapshot is of the "zroot" pool from machine "primary" it overwrites the "zroot" pool from machine "backup".
I guess I'm missing something and I need a hand in finding out what.

For the sake of learning I set up 2 VBox FreeBSD 8.2 with ZFSonRooT (hostname "primary" and "backup"). The idea is to simulate a full hardware failure and recovery using ZFS. Machine "primary" has 1 pool called "zroot" (OS) and machine "backup has "zroot" (OS) and "primary". The idea is to send all data to the "primary" pool on machine "backup" from machine "primary".
After the machines are up, I populate the "primary" machine with some data, create a snapshot with
Code:
zfs snapshot -r zroot@1
Code:
zfs send -R zroot@1 | ssh root@backup.local zfs receive -dF primary
The problem is that after transferring the snapshot, the datasets get mounted automatically and because the snapshot is of the "zroot" pool from machine "primary" it overwrites the "zroot" pool from machine "backup".
I guess I'm missing something and I need a hand in finding out what.