dont see /dev/disk/by-id

elkmaster

Dabbler
Joined
Feb 26, 2019
Messages
26
Hi,

on truenas where can I found the by-id dir for the discs. Do need to see the wwn ids for pool creation
 

j_r0dd

Contributor
Joined
Jan 26, 2015
Messages
134
smartctl --scan
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
or camcontrol devlist (depending on what ID you wanted to see)
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Do need to see the wwn ids for pool creation
No, you create pools through the GUI, where you don't need to see by-id, by-gptid, or anything other than the disk identifier.
 

elkmaster

Dabbler
Joined
Feb 26, 2019
Messages
26
No, you create pools through the GUI, where you don't need to see by-id, by-gptid, or anything other than the disk identifier.
If I do so I only see the logical disk names but not the real one. logical disc names can change but serial number or wwn not . Therefore the discs are labeled in way that a immediately exchange can be done cos you see the physical id at the log message and the label at the storage.
Therefore I created the last pool on the command line to have the right naming of pool members.

but without by-id .. this is not possible anymore
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
If I do so I only see the logical disk names but not the real one.
...which doesn't matter, because FreeNAS/TrueNAS uses gptids behind the scenes. If you don't want to use the system as it's designed, that's up to you, but you'll be fighting it every step of the way.

Edit: You don't have to take my word for it--just create a pool in the GUI, then drop to the CLI and run zpool status poolname. You won't see members identified as adan or dan.
 
Last edited:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Example pool:
Code:
  pool: Abrams                                                                                                                                                                                                                               
 state: ONLINE                                                                                                                                                                                                                               
  scan: scrub repaired 0 in 0 days 06:17:02 with 0 errors on Sun Mar  7 06:17:04 2021                                                                                                                                                       
config:                                                                                                                                                                                                                                     

        NAME                                            STATE     READ WRITE CKSUM
        Abrams                                          ONLINE       0     0     0
          raidz2-0                                      ONLINE       0     0     0
            gptid/8d969854-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8d845687-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8df39412-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8dcf7c79-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8ea807c2-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8f281020-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8ec5eec2-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8ed9555f-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8f14dae3-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8f3b58f3-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8f78ea99-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0
            gptid/8f591119-52a1-11ea-b16e-3cecef0c26ce  ONLINE       0     0     0

errors: No known data errors
 

elkmaster

Dabbler
Joined
Feb 26, 2019
Messages
26
So ok whats the working instruction if one of the disks seen in the list (example pool) is broken and needs to be replaced ?
Work assumption : There is no blinking LED at HDD Slot available.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Nice play on tank there. Is your other pool called Sherman?
No, we're going alphabetically. The next pool is probably going to be Bradley. Not strictly a tank, but it's in the same spirit. Unless someone can come up with a real tank that starts with B. C is going to be hard because there's so much to choose from.

So ok whats the working instruction if one of the disks seen in the list (example pool) is broken and needs to be replaced ?
Work assumption : There is no blinking LED at HDD Slot available.
Get the serial number for the disk you want to replace and use that to check the physical label. If the disk is dead, elimination of the serial numbers that aren't dead.
 
Top