Jump to content

Drives By-ID or other unique identifier. Drives getting assigned to random pools.


Recommended Posts

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.

Link to comment

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 by Takiyon
typo
Link to comment

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
 

Link to comment
  • 3 weeks later...

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...