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.

Replace only one drive ZFS pool with another one

Featured Replies

I have a 2tb ssd in a zfs pool alone, I want to replace it with a 4tb one, I read various differents methods online, but I don't know the best one, here my config:

NAME                                  USED  AVAIL     REFER  MOUNTPOINT
cache                                1.09T   685G      213G  /mnt/cache
cache/appdata                         109G   685G      962M  /mnt/cache/appdata
cache/appdata/ASF                     336K   685G      336K  /mnt/cache/appdata/ASF
cache/appdata/DiskSpeed              1000K   685G     1000K  /mnt/cache/appdata/DiskSpeed
cache/appdata/Duplicacy              4.14G   685G     4.14G  /mnt/cache/appdata/Duplicacy
cache/appdata/JDownloader2            132M   685G      132M  /mnt/cache/appdata/JDownloader2
cache/appdata/MKVToolNix-1           6.73M   685G     6.73M  /mnt/cache/appdata/MKVToolNix-1
cache/appdata/MKVToolNix-2           11.6M   685G     11.6M  /mnt/cache/appdata/MKVToolNix-2
cache/appdata/NginxProxyManager       172M   685G      172M  /mnt/cache/appdata/NginxProxyManager
cache/appdata/Plex-Media-Server      82.3G   685G     82.3G  /mnt/cache/appdata/Plex-Media-Server
cache/appdata/QDirStat                684K   685G      684K  /mnt/cache/appdata/QDirStat
cache/appdata/Unraid-API              116K   685G      116K  /mnt/cache/appdata/Unraid-API
cache/appdata/binhex-code-server     17.1M   685G     17.1M  /mnt/cache/appdata/binhex-code-server
cache/appdata/binhex-krusader        11.6G   685G     11.6G  /mnt/cache/appdata/binhex-krusader
cache/appdata/binhex-makemkv         67.6M   685G     67.6M  /mnt/cache/appdata/binhex-makemkv
cache/appdata/binhex-qbittorrentvpn  28.0M   685G     28.0M  /mnt/cache/appdata/binhex-qbittorrentvpn
cache/appdata/bitwarden              7.96M   685G     7.96M  /mnt/cache/appdata/bitwarden
cache/appdata/cloudflared             116K   685G      116K  /mnt/cache/appdata/cloudflared
cache/appdata/compreface             11.1M   685G     11.1M  /mnt/cache/appdata/compreface
cache/appdata/double-take            88.2M   685G     88.2M  /mnt/cache/appdata/double-take
cache/appdata/fgc                     325M   685G      325M  /mnt/cache/appdata/fgc
cache/appdata/frigate                 206M   685G      206M  /mnt/cache/appdata/frigate
cache/appdata/homeassistant           704M   685G      704M  /mnt/cache/appdata/homeassistant
cache/appdata/immich                 1.68G   685G     1.68G  /mnt/cache/appdata/immich
cache/appdata/mariadb                 279M   685G      279M  /mnt/cache/appdata/mariadb
cache/appdata/mosquitto               140K   685G      140K  /mnt/cache/appdata/mosquitto
cache/appdata/nextcloud               238M   685G      238M  /mnt/cache/appdata/nextcloud
cache/appdata/overseerr              3.44M   685G     3.44M  /mnt/cache/appdata/overseerr
cache/appdata/plex-meta-manager       104K   685G      104K  /mnt/cache/appdata/plex-meta-manager
cache/appdata/postgresql14            992M   685G      992M  /mnt/cache/appdata/postgresql14
cache/appdata/pterodactyl             348K   685G      348K  /mnt/cache/appdata/pterodactyl
cache/appdata/speedtest-tracker      1.59M   685G     1.59M  /mnt/cache/appdata/speedtest-tracker
cache/appdata/tautulli               4.42G   685G     4.42G  /mnt/cache/appdata/tautulli
cache/appdata/tdarr                   790M   685G      790M  /mnt/cache/appdata/tdarr
cache/appdata/wizarr                  628K   685G      628K  /mnt/cache/appdata/wizarr
cache/appdata/wrapperr               2.57M   685G     2.57M  /mnt/cache/appdata/wrapperr
cache/downloads                       305G   685G      305G  /mnt/cache/downloads
cache/media                           152G   685G      152G  /mnt/cache/media
cache/nextcloud                       191G   685G      191G  /mnt/cache/nextcloud
cache/plex                             96K   685G       96K  /mnt/cache/plex
cache/pterodactyl-node               7.17G   685G     7.17G  /mnt/cache/pterodactyl-node
cache/system                          135G   685G      135G  /mnt/cache/system

image.png.97d9b578660975a286034d20458c3473.png

image.thumb.png.ed2c5ea1a0ff2ab927e37672fb8f7713.png

 

(I can add the two ssds to the server simultaneously so it can be quicker)

Solved by JorgeB

  • Community Expert

You could add the new device to the pool but then would need to manually remove the other one, or update to v7-beta.

 

Alternatively, you can create a new pool with the new SSD and then replicate the datasets there.

  • Author
5 minutes ago, JorgeB said:

You could add the new device to the pool but then would need to manually remove the other one, or update to v7-beta.

If I update to v7, then how it will work?
I read from you faq article that I cannot use that solution for a single drive pool, what commands are the best to do it on v7?

  • Community Expert

With v7.0.0-beta.3 or newer you can add the drive to create a mirror, then remove the smaller one leaving it a single device pool again.

  • Author
1 hour ago, JorgeB said:

With v7.0.0-beta.3 or newer you can add the drive to create a mirror, then remove the smaller one leaving it a single device pool again.

Seems the way to go, I'll update to beta and try to do that, if I have any problems I'll tell you

  • Community Expert

Make sure you let the resilver finish before trying to remove the smaller device, click on the pool and check the zpool status.

  • Author

Did the resilver, now Im here:

image.png.003b501b1a3ab493248f85a4127a9c03.png

 

Now I'll do this:

image.png.a34721af7660c7e9895111def4b70bbc.png

And start the array, correct?

  • Author

It tell me this:
image.png.b96e670805b35c50a3081b77c7b52770.png

But if I set 1 slot it tells me that it will be wiped

Edited by PilaScat

  • Author

If I do New config and set only the new ssd it tells me

Unmountable: wrong or no file system

 

  • Author

image.png.ba528370176eeedaa3a6e697462af391.png

My status with two slots in use

  • Author

@JorgeB I did 

zpool detach cache nvme1n1p1

Is it correct?

Edited by PilaScat

  • Community Expert

Please post the diags, the GUI should be able to remove it.

  • Community Expert

Pool should not be showing blue icons, something is not correct.

  • Author

image.png.27cdc11ed97567dc7936610534fa0e14.png

after detach

image.png.e9fee876f6c979ac2af82f9532293ddd.png

Edited by PilaScat

  • Community Expert

That works, you just need to re-import the pool, but I think the GUI option didn't work because the pool was not imported with "auto", icons must be green after array start/stop for the pool to be correctly assigned.

  • Author

What I need to type? ahahha

Now array and docker is started and working as expected

 

I need to stop docker and array then type zpool import?

Edited by PilaScat

  • Community Expert
13 minutes ago, PilaScat said:

What I need to type?

Just need to re-import the pool using the GUI, I assume the GUI is still showing both devices?

  • Author
19 minutes ago, JorgeB said:

Just need to re-import the pool using the GUI, I assume the GUI is still showing both devices?

Yes but I don't see any command/button about zfs pool

  • Community Expert
  • Solution

Stop the array, click on the pool and then click "Remove Pool", add anew pool with the same name with 1 slot, assign the remaining device, leave the fs set to "auto", start the array.

  • Author

perfect, worked like a charm

thank u 🤍

  • Author

can I upgrade the pool?

  • Author
24 minutes ago, PilaScat said:

can I upgrade the pool?

I saw the other post, I don't wanna return to 6.12, I have upgraded, thanks

  • 5 months later...

Sorry for taking over this thread, but I am exactly in the same position for the exchange: I have resilvered, and I would now like to remove the smaller mirrored device. However, I don't know how I should accomplish the following via the GUI:

On 10/21/2024 at 3:33 PM, JorgeB said:

then remove the smaller one leaving it a single device pool again.

 

I am on 7.0.1. (so long after the beta), but the GUI does not let me change the slot numbers, so how should I remove the smaller one? I probably could solve it via the CLI path, but I specifically want to understand what the GUI way would have been. Or was the possibility for GUI removal removed after the beta?

 

EDIT:

Maybe this is actually the correct way to do this?

 

SnapshotUnraid.thumb.png.cd8f10a04b4cb6e686b993549c451a27.png

 

grafik.thumb.png.497aedfee976374e02ab6a7eb3f2a04f.png

 

So, is it correct that the pool shows two red crosses?

 

Edited by HumanTechDesign

As I needed my server to run today, I actually continued using the CLI way:

1. Add the larger device as a mirror for the existing pool via a new slot in the GUI

2. Start array

3. Finish resilver

4. Stop the array

5. Import the pool via CLI

zpool import <poolname>

6. Remove the smaller mirror device via 

zpool detach <poolname> <drivename>

7. Remove the pool via the pool details (clicking on the blue poolname on the left)

8. Add a new pool with the same name, 1 slot and FS set to auto (showing a blue icon)

9. Start the array

 

This worked without problems.

 

However, I would still be interested in the GUI way. I could also not find any documentation on how this should be accomplished correctly via GUI.

  • Community Expert
17 minutes ago, HumanTechDesign said:

However, I would still be interested in the GUI way.

If it's a mirror, you can just unassign the device you want to remove and start the array.

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.