<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mteramoto</author_name>
  <author_url>https://blog.hatena.ne.jp/mteramoto/</author_url>
  <blog_title>mteramoto's blog</blog_title>
  <blog_url>https://mteramoto.hatenablog.com/</blog_url>
  <categories>
    <anon>FreeBSD</anon>
  </categories>
  <description>今回のサーバ更新では、ZFSからZFSへデータ移行をする必要があった。一般的にはrsyncやtarを使うんだろうけど、せっかくなのでZFSの機能を使って移行してみたら、かなり高速で快適だったのでメモ。 ZFSには、複製を作成するためのsend/recvという機能が用意されている。標準入出力を使ってデータをやりとりできるので、netcatを使ってネットワーク越しにつなぐことで、データを移行する。 まずは新サーバでの操作。netcatでネットワークからの入力を待ち受けて、標準出力へリダイレクトし、zfs recvで受信する。ポート番号は適当に選択する。受信するpoolはあらかじめ作成しておくこと。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmteramoto.hatenablog.com%2Fentry%2F20130105%2F1357363484&quot; title=&quot;ZFS send/recvとnetcatを使ってネットワーク越しにZFSのデータを移行する - mteramoto&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-01-05 14:24:44</published>
  <title>ZFS send/recvとnetcatを使ってネットワーク越しにZFSのデータを移行する</title>
  <type>rich</type>
  <url>https://mteramoto.hatenablog.com/entry/20130105/1357363484</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
