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.

ZFS weirdness

Featured Replies

Created a subpool and I can't get rid of it, as the dev identified as another device when the ssd failed. Need to remove this to properly fix a device rebuild of sdc which should be sdc1 but it was brought in weird. Would love some help as I'm new to zfs.

 

root@Tower-backup:~# zpool status -v
  pool: cache
 state: ONLINE
  scan: scrub canceled on Tue Nov 26 16:25:47 2024
config:

        NAME         STATE     READ WRITE CKSUM
        cache        ONLINE       0     0     0
          nvme0n1p1  ONLINE       0     0     0

errors: No known data errors

  pool: zpool
 state: ONLINE
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
  scan: scrub canceled on Wed Nov 27 07:04:16 2024
config:

        NAME        STATE     READ WRITE CKSUM
        zpool       ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
            sdc     ONLINE       0     0     0
            sdf1    ONLINE       0     0     0
            sdg1    ONLINE       0     0     0
        cache
          sdg1      FAULTED      0     0     0  corrupted data

 

 

Solved by nimble_bitz

  • Community Expert

GUI currently doesn't support removing subpools, but you can do it manually with the CLI, then reimport the pool without that device.

  • Author
43 minutes ago, JorgeB said:

GUI currently doesn't support removing subpools, but you can do it manually with the CLI, then reimport the pool without that device.

Do you have an example syntax to use? Where I run into concern is this: 

zpool       ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
            sdc     ONLINE       0     0     0
            sdf1    ONLINE       0     0     0
            sdg1    ONLINE       0     0     0 <--- (actual array drive)

 

        cache
          sdg1      FAULTED      0     0     0  corrupted data (was bad ssd but it assigned to the same device number)

  • Community Expert
46 minutes ago, nimble_bitz said:

Where I run into concern is this: 

Hmm, that may be a problem, but you can still safely try to remove it, since it's not possible to remove a device from a raidz vdev, so it will either remove the cache device  or fail:

 

zpool remove zpool /dev/sdg1

 

  • Author
18 minutes ago, JorgeB said:

Hmm, that may be a problem, but you can still safely try to remove it, since it's not possible to remove a device from a raidz vdev, so it will either remove the cache device  or fail:

 

zpool remove zpool /dev/sdg1

 

Okay I got the order to change so /dev/sdg1 doesn't exist in the array as it's an assignment that can move. However I can't remove /dev/sdg1

 

  pool: zpool
 state: ONLINE
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
  scan: scrub canceled on Wed Nov 27 07:04:16 2024
config:

        NAME        STATE     READ WRITE CKSUM
        zpool       ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdc1    ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sdb     ONLINE       0     0     0
            sdf1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
        cache
          sdg1      UNAVAIL      0     0     0

errors: No known data errors
root@Tower-backup:~# zpool remove zpool /dev/sdg1
cannot remove /dev/sdg1: no such device in pool

  • Community Expert

That should work:

root@Tower15:~# zpool status
  pool: cache
 state: ONLINE
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
config:

        NAME           STATE     READ WRITE CKSUM
        cache          ONLINE       0     0     0
          raidz1-0     ONLINE       0     0     0
            sdg1       ONLINE       0     0     0
            sdd1       ONLINE       0     0     0
            sde1       ONLINE       0     0     0
            nvme0n1p1  ONLINE       0     0     0
        cache
          sdf1         UNAVAIL      0     0     0

errors: No known data errors
root@Tower15:~# zpool remove cache /dev/sdf1
root@Tower15:~# zpool status
  pool: cache
 state: ONLINE
config:

        NAME           STATE     READ WRITE CKSUM
        cache          ONLINE       0     0     0
          raidz1-0     ONLINE       0     0     0
            sdg1       ONLINE       0     0     0
            sdd1       ONLINE       0     0     0
            sde1       ONLINE       0     0     0
            nvme0n1p1  ONLINE       0     0     0

errors: No known data errors

 

  • Author
  • Solution
4 minutes ago, JorgeB said:

That should work:

root@Tower15:~# zpool status
  pool: cache
 state: ONLINE
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
config:

        NAME           STATE     READ WRITE CKSUM
        cache          ONLINE       0     0     0
          raidz1-0     ONLINE       0     0     0
            sdg1       ONLINE       0     0     0
            sdd1       ONLINE       0     0     0
            sde1       ONLINE       0     0     0
            nvme0n1p1  ONLINE       0     0     0
        cache
          sdf1         UNAVAIL      0     0     0

errors: No known data errors
root@Tower15:~# zpool remove cache /dev/sdf1
root@Tower15:~# zpool status
  pool: cache
 state: ONLINE
config:

        NAME           STATE     READ WRITE CKSUM
        cache          ONLINE       0     0     0
          raidz1-0     ONLINE       0     0     0
            sdg1       ONLINE       0     0     0
            sdd1       ONLINE       0     0     0
            sde1       ONLINE       0     0     0
            nvme0n1p1  ONLINE       0     0     0

errors: No known data errors

 

Got it had to remove the /dev/ then it worked. Any idea how to fix the issue with the /dev/mapping/sdb1 actually being /dev/sdb ? I can make a new topic if needed, but your help is much appreciated!

  • Community Expert
1 hour ago, nimble_bitz said:

Any idea how to fix the issue with the /dev/mapping/sdb1 actually being /dev/sdb

Not sure, post the output from

 

zpool status -LP

 

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.