November 27, 20241 yr 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
November 27, 20241 yr 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.
November 27, 20241 yr 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)
November 27, 20241 yr 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
November 27, 20241 yr 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
November 27, 20241 yr 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
November 27, 20241 yr 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!
November 27, 20241 yr 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.