Categories: Snippets

Copy zfs volume onto another server using ssh

Copy ZFS Volume onto another Server using SSH


This snippet describes how to Copy ZFS Volume onto another Server using SSH. The steps to realize that are very easily and can be done by doing following:

Let’s assume you want to transfer a zfs volume named "rpool/storage" onto another Server you own.

First you have to take a snapshot from your source volume.

On your source host by enter following commands:

zfs snapshot -r rpool/storage@1
zfs send rpool/storage@1 | ssh root@yourTARGETHOSTIP zfs receive rpool/storage@1

After SSH transfer login to your target host and set your new mountpoint for the new volume:

zfs set mountpoint=/storage rpool/storage

Thats it!

See also Oracle ZFS Administration Handbook for detailed infos about ZFS: Oracle ZFS

Jules

Jules is the owner and author of ISPIRE.ME. He's a Linux System Engineer, Tech fanatic and an Open Source fan.

Share
Published by
Jules
Tags: copy zfszfs

Recent Posts

HTTP/2 SSL Offloading with Hitch and Varnish

HTTP/2 SSL Offloading with Hitch and Varnish Since Chrome browsers showing you insecure warning on…

7 years ago

File changed as we read it GlusterFS issue

File changed as we read it GlusterFS issue Recently i had trouble running Backups of…

7 years ago

Running multiple instances of varnish using systemd

Running multiple instances of varnish using systemd If you have not yet found a complete…

7 years ago

HTTP/2 SSL Offloading with Haproxy and Nginx

HTTP/2 SSL Offloading with Haproxy and Nginx After HTTP/2 becoming more an more prominent regarding SSL…

7 years ago

Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for

Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for Everyone knows the Problem. Get…

7 years ago

Review TDS2 How to backtest using tick data with Metatrader 4

Review TDS2 How to backtest using tick data with Metatrader 4 in this Review TDS2…

8 years ago

This website uses cookies.