How to copy ZFS volume

Ryan Babchishin – http://win2ix.ca

Below are the steps to copy ZFS volume (zvol).

Create a test source volume
zfs create -V 10g pool1/testvol

Snapshot the test volume
zfs snapshot pool1/testvol@snapshot

Copy the volume
zfs send pool1/testvol@snapshot | zfs receive pool1/testvol_copy

Reserve space for the copy of the volume 
zfs set refreservation=10G pool1/testvol_copy