GUI not showing all disks

malcolmwade

Cadet
Joined
Oct 23, 2021
Messages
5
I recently added some extra drives (via a USB3 attached 4 drive enclosure) to my TrueNAS-12.0-U6 server. From camcontrol, I can see the drives are visible to TrueNAS but the Storage > Disks GUI only shows ada0 thru ada3 and da1 and da5. But, when I created a new zpool and vdevs I was able to find them all, bar da3, in the drop downs.

root@truenas:~ # camcontrol devlist
<WDC WD40EFRX-68WT0N0 82.00A82> at scbus0 target 0 lun 0 (pass0,ada0)
<WDC WD40EFRX-68N32N0 82.00A82> at scbus1 target 0 lun 0 (pass1,ada1)
<WDC WD40EFRX-68WT0N0 80.00A80> at scbus2 target 0 lun 0 (pass2,ada2)
<WDC WD20EARX-00PASB0 51.0AB51> at scbus3 target 0 lun 0 (pass3,ada3)
<AHCI SGPIO Enclosure 2.00 0001> at scbus6 target 0 lun 0 (pass4,ses0)
<SanDisk' Cruzer Fit 1.00> at scbus8 target 0 lun 0 (da0,pass5)
<USB SanDisk 3.2Gen1 1.00> at scbus9 target 0 lun 0 (da1,pass6)
<WDC WD40 EFRX-68N32N0 0125> at scbus10 target 0 lun 0 (da2,pass7)
<WDC WD20 EZRX-00D8PB0 0125> at scbus10 target 0 lun 1 (da3,pass8)
<WDC WD40 EFRX-68N32N0 0125> at scbus10 target 0 lun 2 (da4,pass9)
<WDC WD20 EARX-00PASB0 0125> at scbus10 target 0 lun 3 (da5,pass10)

Before the addition of the extra drives I could see all my drives including both USB boot sticks.

Have tried IE, Chrome and FireFox browsers with no change. Seems like TrueNAS isn't showing all the USB drives in the GUI?

Any ideas?

Thanks.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,681
Welcome to the forums.

In general, these kinds of hardware problems are specific to your hardware, and without any insight into your NAS, it's hard to make educated statements. Please do consider providing more information about your hardware platform. The Forum Rules, conveniently linked at the top of every page in red, offers guidance as to how to compose a more useful problem statement.

If you have recycled these drives from some other purpose, it is possible that there is a partitioning scheme on them. In such cases, often FreeNAS/TrueNAS will not show them as disks available to be added to a pool.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,464
via a USB3 attached 4 drive enclosure
This is likely your problem. Often such devices don't pass through all the drive information, particularly serial numbers, which TrueNAS uses internally to identify disks.
 

malcolmwade

Cadet
Joined
Oct 23, 2021
Messages
5
My apologies; first time post. I have updated my signature with what I hope is relevant information.

TrueNAS-12.0-U6, HP MicroServer Gen 8, Intel(R) Celeron(R) CPU G1610T @ 2.30GHz, 10GB ECC RAM
2 x USB 32GB boot drives (mirrored vdev)
5 x 4TB WD WD40EFRX (Pool1, 2 x mirrored vdevs, 1 hot spare).
3 x 2TB WD WD20EARX (Pool2, 1 x mirrored vdev). 1 spare (unable to see)
Internal HP B120i RAID controller (JBOD)
External ICY-Box B120i RAID JBOD connected via USB3
Drives spread across internal and external drive enclosures

My point was; whilst camcontrol devlist shows each and every relevant device and, with the exception of da3, I have configured each and every device into a pool as a part of a mirror or a pool hot spare, the GUI only shows me 6 devices when in truth I have 10 devices of various types. In particular it is only showing 2 USB connected drives.

I can understand da3 being missing from a drop down option; yes it was an old previously used drive but I find it strange that in use and configured drives are not listed in the GUI.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,464
Let's try to either confirm or disprove my suspicion. Post the output of smartctl -i /dev/da2, smartctl -i /dev/da3, and smartctl -i /dev/da4.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,681
[USB] is likely your problem.

That's actually a good point, it was something I missed in the original post. In general it is not a good idea to use USB-attached disks, for this reason and others, including that loss of an external device due to cabling or power issues could potentially be a very damaging misadventure. It is much preferable for all NAS drives to be connected within and powered by a single chassis where that is possible, using SAS or SATA.

I'm also a little curious about the "HP B120i RAID controller". Normally this might get a redirect to the "No RAID controllers" post. However, a quick web search suggests this is one of those chintzy AHCI controllers that has "extra magic features"; the extra magic features are ABSOLUTELY incompatible, but the base AHCI controller itself may well be competent, given that it is HP. If you could identify from "dmesg" the controller driver that is being used, that would likely be helpful too.

These lines look like

da0 at mpt0 bus 0 scbus2 target 0 lun 0
da1 at mps0 bus 0 scbus3 target 9 lun 0
da3 at isci0 bus 0 scbus3 target 0 lun 0
ada0 at ahcich0 bus 0 scbus1 target 0 lun 0

which help identify the driver (bold) being used; this is a quick way to identify controllers such as

mpt0: <LSILogic SAS/SATA Adapter> port 0x4000-0x40ff mem 0xfd5ec000-0xfd5effff,0xfd5f0000-0xfd5fffff irq 18 at device 0.0 on pci3
mpt0: MPI Version=1.5.0.0

mps0: <Avago Technologies (LSI) SAS2008> port 0x5000-0x50ff mem 0xfd4f0000-0xfd4
fffff,0xfd480000-0xfd4bffff irq 19 at device 0.0 on pci7
mps0: Firmware: 20.00.07.00, Driver: 21.02.00.00-fbsd
mps0: IOCCapabilities: 1285c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,HostDisc>

isci0: <Intel(R) C600 Series Chipset SAS Controller (SATA mode)> port 0x6000-0x60ff mem 0xe7afc000-0xe7afffff,0xe7400000-0xe77fffff irq 16 at device 0.0 on pci10

ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0xc000-0xc007,0xb000-0x
b003,0xa000-0xa007,0x9000-0x9003,0x8000-0x800f mem 0xfe4ffc00-0xfe4fffff irq 19
at device 17.0 on pci0
ahci0: AHCI v1.20 with 4 3Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0

I'd actually be a bit interested to see the full controller info for your AHCI chip if you can cut and paste that, mostly just curious. Other people have used the Microservers in the past so this is not something I'd expect to be a problem.
 

malcolmwade

Cadet
Joined
Oct 23, 2021
Messages
5
Let's try to either confirm or disprove my suspicion. Post the output of smartctl -i /dev/da2, smartctl -i /dev/da3, and smartctl -i /dev/da4.

Info from the 4 drives in the external ICY-Box caddy. da2, 4 and 5 are the ones in use, da3 is spare but doesn't appear in drop downs for allocation (was going to add it as a hot spare to one of my pools).

Code:
root@freenas1:~ # smartctl -i /dev/da2
smartctl 7.2 2020-12-30 r5155 [FreeBSD 12.2-RELEASE-p10 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD40EFRX-68N32N0
Serial Number:    WD-WCC7K1DZSP45
LU WWN Device Id: 5 0014ee 265091c5d
Firmware Version: 82.00A82
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Oct 26 07:28:44 2021 AEDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

root@freenas1:~ # smartctl -i /dev/da3
smartctl 7.2 2020-12-30 r5155 [FreeBSD 12.2-RELEASE-p10 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Green
Device Model:     WDC WD20EZRX-00D8PB0
Serial Number:    WD-WCC4MHC1TCVP
LU WWN Device Id: 5 0014ee 2600bb048
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Oct 26 07:28:48 2021 AEDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

root@freenas1:~ # smartctl -i /dev/da4
smartctl 7.2 2020-12-30 r5155 [FreeBSD 12.2-RELEASE-p10 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD40EFRX-68N32N0
Serial Number:    WD-WCC7K5VUYL6T
LU WWN Device Id: 5 0014ee 2645bfd58
Firmware Version: 82.00A82
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Oct 26 07:28:50 2021 AEDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

root@freenas1:~ # smartctl -i /dev/da5
smartctl 7.2 2020-12-30 r5155 [FreeBSD 12.2-RELEASE-p10 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Green
Device Model:     WDC WD20EARX-00PASB0
Serial Number:    WD-WCAZAF740136
LU WWN Device Id: 5 0014ee 2b1dfcde9
Firmware Version: 51.0AB51
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Oct 26 07:31:22 2021 AEDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
 
Last edited by a moderator:

malcolmwade

Cadet
Joined
Oct 23, 2021
Messages
5
That's actually a good point, it was something I missed in the original post. In general it is not a good idea to use USB-attached disks, for this reason and others, including that loss of an external device due to cabling or power issues could potentially be a very damaging misadventure. It is much preferable for all NAS drives to be connected within and powered by a single chassis where that is possible, using SAS or SATA.

I'm also a little curious about the "HP B120i RAID controller". Normally this might get a redirect to the "No RAID controllers" post. However, a quick web search suggests this is one of those chintzy AHCI controllers that has "extra magic features"; the extra magic features are ABSOLUTELY incompatible, but the base AHCI controller itself may well be competent, given that it is HP. If you could identify from "dmesg" the controller driver that is being used, that would likely be helpful too.

These lines look like

da0 at mpt0 bus 0 scbus2 target 0 lun 0
da1 at mps0 bus 0 scbus3 target 9 lun 0
da3 at isci0 bus 0 scbus3 target 0 lun 0
ada0 at ahcich0 bus 0 scbus1 target 0 lun 0

which help identify the driver (bold) being used; this is a quick way to identify controllers such as

mpt0: <LSILogic SAS/SATA Adapter> port 0x4000-0x40ff mem 0xfd5ec000-0xfd5effff,0xfd5f0000-0xfd5fffff irq 18 at device 0.0 on pci3
mpt0: MPI Version=1.5.0.0

mps0: <Avago Technologies (LSI) SAS2008> port 0x5000-0x50ff mem 0xfd4f0000-0xfd4
fffff,0xfd480000-0xfd4bffff irq 19 at device 0.0 on pci7
mps0: Firmware: 20.00.07.00, Driver: 21.02.00.00-fbsd
mps0: IOCCapabilities: 1285c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,HostDisc>

isci0: <Intel(R) C600 Series Chipset SAS Controller (SATA mode)> port 0x6000-0x60ff mem 0xe7afc000-0xe7afffff,0xe7400000-0xe77fffff irq 16 at device 0.0 on pci10

ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0xc000-0xc007,0xb000-0x
b003,0xa000-0xa007,0x9000-0x9003,0x8000-0x800f mem 0xfe4ffc00-0xfe4fffff irq 19
at device 17.0 on pci0
ahci0: AHCI v1.20 with 4 3Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0

I'd actually be a bit interested to see the full controller info for your AHCI chip if you can cut and paste that, mostly just curious. Other people have used the Microservers in the past so this is not something I'd expect to be a problem.

Appreciate and very much understand your comments about external arrays etc etc. In my case, being for home use, I have a small UPS to power important devices like this so a power loss will trigger a clean shutdown (after a suitable delay) of my TrueNAS server so I'm not too worried about that. When TrueNAS shuts down, the ICY-Box external enclosure also then spins the drives down and goes into a standby mode.

I also spread each member of my mirrored vdevs across the main NAS box and the external chassis for redundancy too.

I believe this is the controller info you were after. You essentially configure it in JBOD mode and the entire setup has worked for me faultlessly for 3-4 year I believe.

ahci0: <Intel Cougar Point AHCI SATA controller> port 0x10c0-0x10c7,0x10c8-0x10cb,0x10d0-0x10d7,0x10d8-0x10db,0x10e0-0x10ff mem 0xfacd0000-0xfacd07ff irq 17 at device 31.2 on pci0​
ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier supported​
ahcich0: <AHCI channel> at channel 0 on ahci0​
ahcich1: <AHCI channel> at channel 1 on ahci0​
ahcich2: <AHCI channel> at channel 2 on ahci0​
ahcich3: <AHCI channel> at channel 3 on ahci0​
ahcich4: <AHCI channel> at channel 4 on ahci0​
ahcich5: <AHCI channel> at channel 5 on ahci0​
ahciem0: <AHCI enclosure management bridge> on ahci0​

I would have preferred to use an eSATA connection, the ICY-Box supports that too but on reading various posts I could not, immediately, locate a suitable low profile card to purchase so off the bat I went with the USB3 connection that the server already had. If this issues appears to be USB related I will dig around some more for a suitable card.

Thanks,
Malcolm
 

malcolmwade

Cadet
Joined
Oct 23, 2021
Messages
5
Seems it's a USB issue, or display of drives issue in the GUI. I shutdown my TrueNAS server and simply swapped the not visible 2TB USB presented drive with a 4TB SATA drive in the main chassis (hot spare anyway), rebooted and there it was. Now presented as ada1. This was also then available in the vdev drop down and and I simply added it to to my 2TB vdev as a hot spare.

No point in pursuing this any further. I acknowledge that adding a USB presented external shelf isn't really the best way to go but it is what it is. Works for me.
 
Top