freenastier
Dabbler
- Joined
- Feb 9, 2017
- Messages
- 20
I am looking for a way to compare the contents of two data-sets. What makes it more complex is that the two data-sets are not on the same system.
I have found the following ZFS command in the Oracle documntation:
Unfortunately the above command compares snapshots, not data-sets.
Is there an approach that can determine the difference between two data-sets?
I want to achieve that two machines have identical data-sets on both sides. Currently they have data-sets named similar but the content of these data-sets might differ.
After experimenting and thinking this trough the best approach I could come up with is as follows:
I have found the following ZFS command in the Oracle documntation:
Code:
zfs diff tank/cindy@snap1 tank/cindy@snap2
Unfortunately the above command compares snapshots, not data-sets.
Is there an approach that can determine the difference between two data-sets?
I want to achieve that two machines have identical data-sets on both sides. Currently they have data-sets named similar but the content of these data-sets might differ.
After experimenting and thinking this trough the best approach I could come up with is as follows:
- Create snapshots of the data-sets on both machines.
- Use replication to send then to the other machine.
- Execute the 'zfs diff' command on the local and remote snapshot to compare.