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.

How to encrypt existing ZFS drive/Pool containing snapshots

Featured Replies

TL;DR: Need guidance on transferring ZFS datasets and snapshots from an unencrypted drive to an encrypted one.

 

Context:

  • I've successfully converted a cache SSD and HDD into ZFS following this guide and then setting up nightly snapshots of the cache SSD, replicated to the HDD according to this guide from @SpaceInvaderOne
  • now I aim to encrypt my unraid server. As a test, I've already encrypted one empty drive. works great!

 

Issue:

  • I'm looking to move data from the unencrypted drives to encrypted ones, and then reformat the unencrypted ones and then move the data back (at least for the SSD)
  • Although I plan to follow this encryption guide , my concern is about the ZFS datasets and snapshots present on the existing drives. I'm unsure how the mover tool in the guide would work with these ZFS features as the tutorial didn't feature any of those

 

Request:

  • Should I consider using native ZFS features, like 'zfs send', for this transfer? If so, how?
  • should I perhaps use spaceinvaders replication script to move/copy the data? or syncoid directly?
  • I'd appreciate any advice or tips on this process.

 

note: please ignore the Disk2 in the example screenshot is encrypted-xfs. I am planning to reformat it to encrypted-ZFS

chrome_OxgE4lOu1z.png

Solved by timetraveler

  • Community Expert

You can use zfs send with the replicate option (-R), it will replicate the complete filesystem up to the last snapshot. 

  • Author
  • Solution

Thank you that worked. 

 

This is what i used to move the data:

take a snapshot of all datasets

zfs list -H -o name -r poolname | while read dataset; do zfs snapshot "${dataset}@snapshot_name"; done

transfer

zfs send -R -v cache@snapshot_transfer | zfs receive -F disk2

 

also make sure there are no regular folders on the root level!

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.