5333 private links
zrep is, by design, fairly simple. It is based around zfs properties. Therefore, when in doubt, check the properties. zrep gives an easy way to do this.
Here is an example of a set of properties used when zrep is replicating to a filesystem on the same host. Note that src-host and dest-host are the same:
# ./zrep list -v scratch/zreptest
scratch/zreptest:
zrep:src-fs scratch/zreptest
zrep:src-host hamachi
zrep:dest-fs scratch/zreptest_2
zrep:master yes
zrep:savecount 5
zrep:dest-host hamachi
For the destination filesystem (in this case scratch/zreptest_2), the properties would be mostly the same. The only difference would be, instead of "zrep:master yes", you would see "readonly on"
ZFS property overview
Fixing zfs properties
To manually change a zfs property, use
zfs set zrep:something=newval file/system
To remove a property, zfs is a little odd. The standard (and in fact, only) way of removing a property in zfs, is as follows:
zfs inherit zrep:master file/system
This tells zfs to set the value type of that property, to be "inherited" from the parent filesystem. Since the parent usually does not have any zrep properties, that effectively 'removes' a property from a filesystem or snapshot.