NOTE: This thread is a continuation of a thread posted in the FreeNAS forums. As the issue is related to FreeBSD 10.x and not FreeNAS 9.10, I decided to ask you guys for additional help. Original thread
A few weeks ago we received two new Supermicro machines with LSI SAS9305-24i HBAs and 8 10TB disks preinstalled. We set up FreeNAS 9.10, 10.0.2 and 10.0.4 and tried to create volumes. We figured out that the GUI and the CLI do not show our HGST disks.
When running
We have tried to flash the newest firmware to the controller using
but this failed since the FreeNAS machine rebooted a few seconds after running the command, without actually doing anything. After downloading the sas3flash and sas3ircu binaries from the Broadcom website the flashing process succeeded but didn't change the behaviour of the system.
After searching in the FreeBSD and FreeNas forums and doing some research on Google we found out that using the command
We are able to spinup the disk 0. Repeating this for the other 7 disks spins them all up. But still, they don't show up in the GUI nor in the CLI. Doing a reboot (not shutdown) the disks are still up, recognized, mounted and are shown in the GUI/CLI. But when starting the machine after a shutdown the disks do not spin up anymore. Except when running the above commands again.
We had a look at the Mainboard-BIOS as well as the HBA-BIOS but were unable to find any setting that affects this behaviour. Whatever we try does not change the disk spinup.
When checking the dmesg log files we see the following error
In the /boot/loader.conf file we also tried to set the spinup wait time to 30 seconds, instead of 3.
To further debug the issue I installed CentOS 7 and without having to touch anything the disk are spinning up are attached to the system. Creating partitions and formating works just fine.
Looks like FreeNAS/FreeBSD does something differently during the boot.
When installing the latest FreeBSD 11 relase I can see this output of
This shows two additional SGPIO devices that do not show up with FreeNAS 9.10/FreeBSD 10.
Now the questions: What else should/can we try to have the disks spinning up at boot correctly?
Hardware:
- Intel Server Board S2600CWTR
- Supermicro 24 bay 3.5" chassis with 2 PSU SC846BA-R920B
- 128GB ECC RAM (4x32GB)
- Intel Xeon E5-2620v4
- 8x10TB HGST SAS 12G drives, hot-swappable (data)
- 2x Intel Enterprise SSD (OS)
A few weeks ago we received two new Supermicro machines with LSI SAS9305-24i HBAs and 8 10TB disks preinstalled. We set up FreeNAS 9.10, 10.0.2 and 10.0.4 and tried to create volumes. We figured out that the GUI and the CLI do not show our HGST disks.
When running
camcontrol devlist
it shows the 8 disks on scbus0.
Code:
<HGST HUH721010AL5200 A21D> at scbus0 target 0 lun 0 (pass0)
<HGST HUH721010AL5200 A21D> at scbus0 target 1 lun 0 (pass1)
<HGST HUH721010AL5200 A21D> at scbus0 target 2 lun 0 (pass2)
<HGST HUH721010AL5200 A21D> at scbus0 target 3 lun 0 (pass3)
<HGST HUH721010AL5200 A21D> at scbus0 target 4 lun 0 (pass4)
<HGST HUH721010AL5200 A21D> at scbus0 target 5 lun 0 (pass5)
<HGST HUH721010AL5200 A21D> at scbus0 target 6 lun 0 (pass6)
<HGST HUH721010AL5200 A21D> at scbus0 target 7 lun 0 (pass7)
<INTEL SSDSC2BB240G7 N2010101> at scbus9 target 0 lun 0 (pass8,ada0)
<INTEL SSDSC2BB240G7 N2010101> at scbus10 target 0 lun 0 (pass9,ada1)
We have tried to flash the newest firmware to the controller using
sas3flash -o -c 0 -f SAS9305_24i_IT_p.bin
but this failed since the FreeNAS machine rebooted a few seconds after running the command, without actually doing anything. After downloading the sas3flash and sas3ircu binaries from the Broadcom website the flashing process succeeded but didn't change the behaviour of the system.
sas3ircu 0 display
shows me that the controller has been recognized and the lists the 8 connected disks
Code:
Avago Technologies SAS3 IR Configuration Utility.
Version 15.00.00.00 (2016.11.21)
Copyright (c) 2009-2016 Avago Technologies. All rights reserved.
Read configuration has been initiated for controller 0
------------------------------------------------------------------------
Controller information
------------------------------------------------------------------------
Controller type : SAS3224
BIOS version : 8.33.00.00
Firmware version : 14.00.00.00
Channel description : 1 Serial Attached SCSI
Initiator ID : 0
Maximum physical devices : 1023
Concurrent commands supported : 5888
Slot : 61
Segment : 0
Bus : 3
Device : 0
Function : 0
RAID Support : No
------------------------------------------------------------------------
IR Volume information
------------------------------------------------------------------------
------------------------------------------------------------------------
Physical device information
------------------------------------------------------------------------
Initiator at ID #0
Device is a Hard disk
Enclosure # : 1
Slot # : 0
SAS Address : ******
State : Ready (RDY)
Size (in MB)/(in sectors) : 9537535/19532873727
Manufacturer : HGST
Model Number : HUH721010AL5200
Firmware Revision : A21D
Serial No : ******
Unit Serial No(VPD) : ******
GUID : N/A
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 1
Slot # : 1
SAS Address : ******
State : Available (AVL)
Manufacturer : HGST
Model Number : HUH721010AL5200
Firmware Revision : A21D
Serial No : ******
Unit Serial No(VPD) : ******
GUID : N/A
Protocol : SAS
Drive Type : SAS_HDD
(removed output for the other disks)
After searching in the FreeBSD and FreeNas forums and doing some research on Google we found out that using the command
camcontrol start pass0
We are able to spinup the disk 0. Repeating this for the other 7 disks spins them all up. But still, they don't show up in the GUI nor in the CLI. Doing a reboot (not shutdown) the disks are still up, recognized, mounted and are shown in the GUI/CLI. But when starting the machine after a shutdown the disks do not spin up anymore. Except when running the above commands again.
We had a look at the Mainboard-BIOS as well as the HBA-BIOS but were unable to find any setting that affects this behaviour. Whatever we try does not change the disk spinup.
When checking the dmesg log files we see the following error
Code:
(da7:mpr0:0:7:0): SERVICE ACTION IN(16). CDB: 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00
(da7:mpr0:0:7:0): SCSI sense: NOT READY asc:4,1c (Logical unit not ready, additional power use not yet granted)
(da7:mpr0:0:7:0):
(da7:mpr0:0:7:0): Field Replaceable Unit: 0
(da7:mpr0:0:7:0): Command Specific Info: 0
(da7:mpr0:0:7:0):
(da7:mpr0:0:7:0): Descriptor 0x80: f5 56
(da7:mpr0:0:7:0): Descriptor 0x81: 00 00 00 00 00 00
(da7:mpr0:0:7:0): fatal error, failed to attach to device
In the /boot/loader.conf file we also tried to set the spinup wait time to 30 seconds, instead of 3.
Code:
dev.mpr.0.spinup_wait_time: 30
To further debug the issue I installed CentOS 7 and without having to touch anything the disk are spinning up are attached to the system. Creating partitions and formating works just fine.
Looks like FreeNAS/FreeBSD does something differently during the boot.
When installing the latest FreeBSD 11 relase I can see this output of
camcontrol devlist
Code:
<HGST HUH721010AL5200 A21D> at scbus0 target 0 lun 0 (pass0)
<HGST HUH721010AL5200 A21D> at scbus0 target 1 lun 0 (pass1)
<HGST HUH721010AL5200 A21D> at scbus0 target 2 lun 0 (pass2)
<HGST HUH721010AL5200 A21D> at scbus0 target 3 lun 0 (pass3)
<HGST HUH721010AL5200 A21D> at scbus0 target 4 lun 0 (pass4)
<HGST HUH721010AL5200 A21D> at scbus0 target 5 lun 0 (pass5)
<HGST HUH721010AL5200 A21D> at scbus0 target 6 lun 0 (pass6)
<HGST HUH721010AL5200 A21D> at scbus0 target 7 lun 0 (pass7)
<AHCI SGPIO Enclosure 1.00 0001> at scbus5 target 0 lun 0 (ses0,pass8)
<INTEL SSDSC2BB240G7 N2010101> at scbus10 target 0 lun 0 (ada0,pass9)
<INTEL SSDSC2BB240G7 N2010101> at scbus11 target 0 lun 0 (ada1,pass10)
<AHCI SGPIO Enclosure 1.00 0001> at scbus12 target 0 lun 0 (ses1,pass11)
Now the questions: What else should/can we try to have the disks spinning up at boot correctly?
Hardware:
- Intel Server Board S2600CWTR
- Supermicro 24 bay 3.5" chassis with 2 PSU SC846BA-R920B
- 128GB ECC RAM (4x32GB)
- Intel Xeon E5-2620v4
- 8x10TB HGST SAS 12G drives, hot-swappable (data)
- 2x Intel Enterprise SSD (OS)