---
title: 'Single Disk Data Migration to ZFS Mirror'
url: 'https://www.voidfox.de/zfsmigration'
markdown: 'https://www.voidfox.de/zfsmigration.md'
date: '2023-05-14'
description: 'Starting Point : Single XFS HDD with a whole bunch of Data.. Planned Setup: ZFS Mirror without loosing any Data.. Save your Data First things first: DO A BACKUP !! and then 5 more just to be absolutely sure! create single ZFS drive: zpool create -m /data data /dev/sdb copy data on it: cp/rsy…'
taxonomy:
  category:
    - blog
  tag:
    - ZFS
    - Storage
    - Linux
---

# Single Disk Data Migration to ZFS Mirror

[ Hole ](https://www.voidfox.de/)      Single Disk Data Migration to ZFS Mirror    

## [Single Disk Data Migration to ZFS Mirror](https://www.voidfox.de/zfsmigration)

  [ZFS](https://www.voidfox.de/tag:ZFS#body-wrapper) [Storage](https://www.voidfox.de/tag:Storage#body-wrapper) [Linux](https://www.voidfox.de/tag:Linux#body-wrapper)  

Starting Point :
Single XFS HDD with a whole bunch of Data..

Planned Setup:
ZFS Mirror without loosing any Data..

### Save your Data

First things first: **DO A BACKUP !!**
and then 5 more just to be absolutely sure!

1. create single ZFS drive: **zpool create -m /data data /dev/sdb**
2. copy data on it: **cp/rsync/whatever floats your boat**
3. empty and wipe the disk, which you basically just cloned
4. find your empty drive using: **ls /dev/disk/by-id/**
5. add it to the pool: **zpool attach Pool\_Name Filled\_Drive\_Name Empty\_Drive\_Name**

Once done you can check it with **zpool status**.
After a couple seconds it should say that it's "resilvering" the new drive.
Meaning it started creating the Mirror.
Since we are copying all the data 2 times altogether the whole process can take quite some time!

![ZFS%20resilvering](https://www.voidfox.de/user/pages/01.blog/zfsmigration/ZFS%20resilvering.png "ZFS%20resilvering")

 [ Previous Post](https://www.voidfox.de/weechat-cheat-sheet) [Next Post ](https://www.voidfox.de/zfscheatsheet)

#### Related Posts

- 100 

     [ZFS Cheat Sheet](https://www.voidfox.de/zfscheatsheet "ZFS Cheat Sheet")
- 70 

     [Distro Hopping](https://www.voidfox.de/distro-hopping "Distro Hopping")
- 50 

     [Linux Shell Tools](https://www.voidfox.de/shell_tools "Linux Shell Tools")
- 50 

     [Linux Performance Observability Tools](https://www.voidfox.de/linux-performance-observability-tools "Linux Performance Observability Tools")
- 50 

     [Linux Hardening](https://www.voidfox.de/linux-hardening "Linux Hardening")

#### Random Article

 [ I'm Feeling Lucky!](https://www.voidfox.de/random)

#### Popular Tags

  [CheatSheet](https://www.voidfox.de/tag:CheatSheet) [Linux](https://www.voidfox.de/tag:Linux) [ZFS](https://www.voidfox.de/tag:ZFS) [Storage](https://www.voidfox.de/tag:Storage) [Virtualization](https://www.voidfox.de/tag:Virtualization) [Distro](https://www.voidfox.de/tag:Distro) [Weechat](https://www.voidfox.de/tag:Weechat) [Nginx](https://www.voidfox.de/tag:Nginx) [SSL](https://www.voidfox.de/tag:SSL) [Config](https://www.voidfox.de/tag:Config) [Security](https://www.voidfox.de/tag:Security) [SSH](https://www.voidfox.de/tag:SSH) [Tools](https://www.voidfox.de/tag:Tools) [Shell](https://www.voidfox.de/tag:Shell) [Git](https://www.voidfox.de/tag:Git) [Fun](https://www.voidfox.de/tag:Fun)

---

## Navigation

- Parent: [Hole](https://www.voidfox.de/index.md)
- Previous: [ZFS Cheat Sheet](https://www.voidfox.de/zfscheatsheet.md)
- Next: [Weechat Cheat Sheet](https://www.voidfox.de/weechat-cheat-sheet.md)
