Copiare un Dataset Zfs da una macchina ad un'altra

From RVM Wiki
Revision as of 12:57, 11 July 2019 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Installare netcat su entrambe le macchine:
apt-get install netcat
  • Sulla macchina di destinazione, lanciare netcat in modalità server per ricevere lo stream Zfs:
 nc -l -p 9000 | zfs receive -Fdu POOL-DST


  • Sulla macchina sorgente creare uno snapshot di tutto il pool:
zfs snapshot -r POOL-SRC@snap_mig
  • Inviare lo stream Zfs:
zfs send -Rv POOL-SRC@snap_mig | nc dst-machine.example.priv 9000

Se si vuole trasferire SOLO un dataset, fare lo snapshot del solo Dataset e inviare solo quello.

Riferimenti

How to copy one pool into another | iXsystems Community Migrate data from pool to new Freenas system | iXsystems Community