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 a vdev with different amount of drives to an existing ZFS Pool

Featured Replies

Hello,


I have a ZFS Pool with a single vdev made out of 3x8TB drives in raidz1.

Now, I have an additional 4 drives that I'd like to add to that existing pool as a new vdev, also in raidz1.

 

After my first search, I found this post by a moderator about adding additional vdevs and how they have to be the same width (amount of disks):

However, this info is wrong: After reading up some more I found contradicting info, and upon trying it myself, it worked perfectly fine when doing it manually in the terminal. The pool mounts perfectly fine, too.

So I know ZFS can do this, and I tested around and also already managed to add the separate vdev to the pool using terminal:

cb2Pxv.png

 

The issue now is, that the Unraid Web UI only lets me select "1 group of 7 devices" when I try to mount the pool like this - and it ends up saying the pool isn't mountable.

 

Is there any way to work around this or is it planned to add this functionality (maybe in 6.13)? This pool I used for testing isn't my primary pool, but I'd love to add the 3x8TB HDDs to my main pool (which currently is made out of 5 disks) and it's kind of frustrating to be stopped by an Unraid limitation when the underlying file system clearly can do the job :(

Edited by Lilly

  • Community Expert
10 hours ago, Lilly said:

However, this info is wrong

I can see how you got that from the way I wrote it, but what I meant was, adding a single disk to a raidz volume, which is what the user was trying to do, is not supported by zfs, at least for now, and to expand the pool with Unraid he would need to use a vdev of the same width, which is the only option Unraid supports, I'm going to edit that post to make it clearer, in case someone else finds it in a search.

 

As for your question, Unraid does not support vdevs with different widths, it also doesn't support vdevs using different profiles, e.g., one mirror, and one raidz, one raidz1 and one raidz2, etc, this is also supported by zfs, though not usually recommended, AFAIK there are no plans to support either in the near future, but you can always make a feature request.

  • Author

Ah, yeah, in that case I misunderstood what you said in the other post, thanks for the clarification!

 

I do plan to stay with the same type of vdev inside of a given pool, but being able to set at least different vdev widths would honestly be great. ZFS is already pretty inflexible as-is, and this would at least give a decent amount more flexibility when it comes to expanding a pool. I'll create a feature request later today, thank you.

  • 7 months later...
On 5/14/2024 at 1:09 AM, JorgeB said:

As for your question, Unraid does not support vdevs with different widths, it also doesn't support vdevs using different profiles, e.g., one mirror, and one raidz, one raidz1 and one raidz2, etc, this is also supported by zfs, though not usually recommended, AFAIK there are no plans to support either in the near future, but you can always make a feature request.

Is this still the case?  I'd like to add a raidz1 vdev to my existing pool containing a raidz2 vdev...both vdevs would contain 4 physical disks.  If I did it all via terminal would it work?

  • Community Expert
15 minutes ago, calvados said:

If I did it all via terminal would it work?

It still shouldn't work using the GUI, unless you always import/export the pool manually, but then it won't be used by shares.

17 minutes ago, JorgeB said:

It still shouldn't work using the GUI, unless you always import/export the pool manually, but then it won't be used by shares.

Thanks @JorgeB.  I don't use the traditional unraid shares.  I have them turned off as per the screenshot below.  If I'm understanding what you're saying, I could do it, (use a raidz1 vdev and a raidz2 vdev in the same zpool), via terminal and it would work?  Could I automate the import in the go file so the mixed vdev zpool is online after a reboot?  Do you happen to know if this would work in the upcoming Unraid 7?

 

image.png.776294fab3f6cd7603ea42bf098fec82.png

 

Thanks again @JorgeB,

Cal.

Edited by calvados

  • Community Expert

It should work fine if used outside the GUI, you just need to do 

 

zpool import pool_name

 

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.