Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Migrating data from TrueNAS ZFS pool to new native pool with zfs send | zfs recv

Featured Replies

Hi all, just need a sanity check please.

 

I've had a ZFS pool in unRAID for a while but it was created in TrueNAS. I'm now in a position to create and move to a new native pool but wanted to check the correct command to migrate data across while hopefully retaining snapshots.

 

I was going to take one last snapshot and use zfs send | zfs receive e.g.

 

zfs send -Rcv chimera/data@migrate | zfs recv -s newchimera/data

 

The last time I attempted this (in unRAID before native ZFS support), the dataset wasn't automatically created (it was showing but had a 0 size, all data was in the root?).

 

I have a script to take a recursive snapshot so wondering if I should just use that instead of specifying the "data" dataset?

 

Here's what I'm working with;

 

zfs list
NAME           USED  AVAIL     REFER  MOUNTPOINT
chimera       34.2T  9.24T      224K  /mnt/chimera
chimera/data  34.2T  9.24T     31.1T  /mnt/chimera/data

 

zfs list -t filesystem -o space
NAME          AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
chimera       9.24T  34.2T        0B    224K             0B      34.2T
chimera/data  9.24T  34.2T     3.12T   31.1T             0B         0B

 

zfs get copies
NAME                           PROPERTY  VALUE   SOURCE
chimera                        copies    1       default
chimera@auto-July23            copies    -       -
chimera@auto-August23          copies    -       -
chimera@auto-September23       copies    -       -
chimera@auto-October23         copies    -       -
chimera@auto-November23        copies    -       -
chimera@auto-December23        copies    -       -
chimera@auto-January24         copies    -       -
chimera@auto-February24        copies    -       -
chimera@auto-March24           copies    -       -
chimera@auto-April24           copies    -       -
chimera@auto-May24             copies    -       -
chimera/data                   copies    1       local
chimera/data@auto-July23       copies    -       -
chimera/data@auto-August23     copies    -       -
chimera/data@auto-September23  copies    -       -
chimera/data@auto-October23    copies    -       -
chimera/data@auto-November23   copies    -       -
chimera/data@auto-December23   copies    -       -
chimera/data@auto-January24    copies    -       -
chimera/data@auto-February24   copies    -       -
chimera/data@auto-March24      copies    -       -
chimera/data@auto-April24      copies    -       -
chimera/data@auto-May24        copies    -       -

 

Trying to avoid bungling this given how long it'll take to move everything over.

 

TIA!

Solved by JorgeB

  • Community Expert
  • Solution
52 minutes ago, Akshunhiro said:
zfs send -Rcv chimera/data@migrate | zfs recv -s newchimera/data

Looks OK to me, compress may not help a lot, depending on the data, and if you are using large blocks use -L

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.