Solaris Replicate ZFS Volume with zfs send and zfs receive

• Updated January 10, 2019

ZFS provides a mechanism to migrate or backup ZFS pools from one server to another using SSH.

For example, pretend you have a large ZFS pool to migrate from one server to another, but your maintenance window to perform the copy is very small. You could run the initial ZFS replication, which will take a considerable amount of time, then when your maintenance window opens, run the ZFS replication again to only copy everything that changed (the incrementals). This will take much less time and hopefully fit within your maintenance window.

The following commands show how to start the initial replication and then the replicate incrementals.

Initial ZFS Replication

zfs snapshot pool1/iscsi_server@initial

zfs send pool1/iscsi_server@initial | ssh root@thumper2 zfs receive pool1/iscsi_server

Replicate Incrementals

You will have to use zfs receive -F to force the transfer if the destination volume is modified.

zfs snapshot pool1/iscsi_server@new

zfs send -i pool1/iscsi_server@initial pool1/iscsi_server@new | ssh root@thumper2 zfs receive pool1/iscsi_server


If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided links.

The following links are part of affiliate programs, and I will receive a referral payment from any of the services you sign-up for.

  • Get Faster Shipping: About to order some stuff on Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free, 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.
  • Start Investing Now: Looking to start investing some of your saved income? Get started by opening an account with Webull, where upon sign-up and opening a brokerage account with an initial deposit of $100 or more you will receive free stock(s). The promotions are always changing, so be sure to click the link to see the latest.

Thanks for reading and take care.