Takiyon Posted July 28, 2023 Share Posted July 28, 2023 Another idea not sure if it is already planned but this one would be a big deal for anyone using ZFS pools. My server had a kernel fault today and I had to restart it. After it restarted all of the drive designations changed. Since unraid uses drive letters for ZFS pools the two ZFS arrays that I have went bonkers with drives from one array being moved to the other and thankfully only degraded the array. I am now rectifying this situation by using drives by-id only but this should be something that the backend should know when ZFS pools are created from the GUI. Quote Link to comment
Takiyon Posted July 28, 2023 Author Share Posted July 28, 2023 (edited) fixed with this command if anyone cares. zpool import -d /dev/disk/by-id/ <PoolName> Now my pools look like this: pool: alpha state: ONLINE scan: resilvered 560G in 06:20:21 with 0 errors on Fri Jul 28 15:54:58 2023 config: NAME STATE READ WRITE CKSUM alpha ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 wwn-0x5000cca254ecefe6 ONLINE 0 0 0 wwn-0x5000cca23bdb5b97 ONLINE 0 0 0 wwn-0x5000cca23bdc527b ONLINE 0 0 0 wwn-0x5000cca23bdc1887 ONLINE 0 0 0 wwn-0x5000cca23bdc4ff4 ONLINE 0 0 0 wwn-0x5000cca23bdbf920 ONLINE 0 0 0 cache wwn-0x50015178f35974f1 ONLINE 0 0 0 errors: No known data errors pool: bravo state: DEGRADED 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 Fri Jul 28 11:07:55 2023 1.82T scanned at 15.0G/s, 172M issued at 1.39M/s, 11.5T total 0B resilvered, 0.00% done, no estimated completion time config: NAME STATE READ WRITE CKSUM bravo DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 replacing-0 DEGRADED 0 0 0 16473841147996356439 UNAVAIL 0 0 0 was /dev/sde1/old wwn-0x5000cca23bd460eb-part1 ONLINE 0 0 0 wwn-0x5000cca23bc7a55d-part1 ONLINE 0 0 0 wwn-0x5000cca260e38403-part1 ONLINE 0 0 0 cache wwn-0x55cd2e404b65069d ONLINE 0 0 0 Edited July 28, 2023 by Takiyon typo Quote Link to comment
Takiyon Posted July 29, 2023 Author Share Posted July 29, 2023 Just rebooted and pool is back to this... 😞 pool: alpha state: ONLINE scan: resilvered 560G in 06:20:21 with 0 errors on Fri Jul 28 15:54:58 2023 config: NAME STATE READ WRITE CKSUM alpha ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sdn ONLINE 0 0 0 sdr ONLINE 0 0 0 sdq ONLINE 0 0 0 sdp ONLINE 0 0 0 sdm ONLINE 0 0 0 sdo ONLINE 0 0 0 cache wwn-0x50015178f35974f1 ONLINE 0 0 0 errors: No known data errors pool: bravo state: DEGRADED 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 Fri Jul 28 18:25:14 2023 10.4T scanned at 6.91G/s, 585G issued at 388M/s, 11.5T total 195G resilvered, 4.98% done, 08:10:14 to go config: NAME STATE READ WRITE CKSUM bravo DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 replacing-0 DEGRADED 0 0 0 16473841147996356439 UNAVAIL 0 0 0 was /dev/sde1/old sde1 ONLINE 0 0 0 (resilvering) sdf1 ONLINE 0 0 0 sdc1 ONLINE 0 0 0 cache wwn-0x55cd2e404b65069d ONLINE 0 0 0 errors: No known data errors Quote Link to comment
itimpi Posted July 29, 2023 Share Posted July 29, 2023 11 hours ago, Takiyon said: Since unraid uses drive letters for ZFS pools Unraid does not rely on drive letters being constant - it works on drive serial numbers. Not sure therefore why you got the effects you describe. Quote Link to comment
skahl Posted August 14, 2023 Share Posted August 14, 2023 I have experienced the exact same problem. Maybe using: zpool import -d /dev/disk/by-id POOL for when the Array get's started is a good idea? Quote Link to comment
JorgeB Posted August 14, 2023 Share Posted August 14, 2023 As mentioned it's not needed, Unraid tracks the devices by serial number, it will always use the same devices even if the disk identifiers change. 1 Quote Link to comment
Recommended Posts
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.