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.

Add to ZFS cache to create mirror with slightly different size drive

Featured Replies

I have an existing single disk ZFS cache drive with a 4.1TB SP UD90 Nvme.

I would like to add a second drive to create a mirror, ideally keeping the existing data.

The new drives seem to be 4.0TB.

Would this be possible?

 

Here is some relevant data:

Crucial P3 4TB:

Nvme version:

1.4

Number of namespaces:

1

Namespace 1 size/capacity:

4,000,787,030,016 [4.00 TB]

Namespace 1 formatted LBA size:

512

Namespace 1 IEEE EUI-64:

6479a7 844000005e

 

SP UD90 4TB:

Nvme version:

1.4

Number of namespaces:

1

Namespace 1 size/capacity:

4,096,805,658,624 [4.09 TB]

Namespace 1 formatted LBA size:

512

Namespace 1 IEEE EUI-64:

6479a7 801a500c58

Edited by foo_fighter

Solved by foo_fighter

  • Author
  • Solution

So apparently it's not possible:

 

image.thumb.png.ba061e52b6442ade6512ca909b9d7f71.png

 

Here's what I did:

Run the user.script to snapshots/syncoid from cache to Array 

 

Stop Array

Rename old cache pool to cache_old and mount with unassigned devices

Create a new single disk cache pool with zfs as the file system

Start Array

Format new Cache to zfs

image.thumb.png.56cf3b6bcb69aa21c8ec8fc51ddd8287.png

 

image.thumb.png.058dee1a90f678612a91f3982fce1452.png

 

 

image.thumb.png.a5363dd5fd20476d877b90f27943d1fd.png

 

Syncoid all datasets from cache_old to cache to preserve all snapshots:

 >syncoid -r cache_old cache 

rsync other files and non-datasets:

root@NAS:/mnt/cache# rsync -avuXizPh --stats /mnt/disks/cache_old/ /mnt/cache

sending incremental file list

.d..tpog... ./

>f+++++++++ docker.img

>f+++++++++ jwt-secret

>f+++++++++ oplog.sqlite

>f+++++++++ oplog.sqlite.lock

>f+++++++++ rsync.log

 

Double check all files made it safely

 

Stop the array Set the number of slots to 2 for cache 

Assign cache_old to slot 2 of cache

 image.thumb.png.c9fcf51d71aa53239e1cd4c769138f79.png

 

Note: it doesn't seem like you can select stripe or mirror like you can when you create a pool:

image.thumb.png.b2b7d1ea594f52564941cf79dbba9757.png

vs

image.thumb.png.553f8f3eb5e638835259bcf6de6caec9.png

 

but it eventually does show:

image.thumb.png.a0f33f1666ce2a7969b87ca948f64de0.png

 

and

 

root@NAS:~# zpool status

  pool: cache

state: ONLINE

status: One or more devices is currently being resilvered.  The pool will

continue to function, possibly in a degraded state.

action: Wait for the resilver to complete.

  scan: resilver in progress since Sat Jan  4 12:48:17 2025

593G / 593G scanned, 314G / 593G issued at 3.65G/s

317G resilvered, 52.98% done, 00:01:16 to go

config:

 

NAME           STATE     READ WRITE CKSUM

cache          ONLINE       0     0     0

  mirror-0     ONLINE       0     0     0

    nvme0n1p1  ONLINE       0     0     0

    nvme1n1p1  ONLINE       0     0     0  (resilvering)

 

 

and finally:

image.thumb.png.c6a000068561419ba58e78490dcf3dbf.png

 

 

 

 

Edited by foo_fighter

  • Community Expert
13 hours ago, foo_fighter said:

So apparently it's not possible:

Yep, zfs replication to the smaller device like you did is the best option.

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.