OMV Web GUI Timeout too Low or S.M.A.R.T. Issue

    • OMV 2.x
    • Resolved
    • OMV Web GUI Timeout too Low or S.M.A.R.T. Issue

      My current server apparently isn't a fan of some of the S.M.A.R.T. commands. It's on in the BIOS, but when OpenMediaVault tries to enumerate SMART devices in the GUI, the Kernel spews the following for each dive:

      Source Code

      1. [70311.776099] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
      2. [70311.781773] ata3.00: failed command: READ LOG EXT
      3. [70311.787396] ata3.00: cmd 2f/00:06:03:00:00/00:00:00:00:00/00 tag 14 pio 3072 in
      4. [70311.787397] res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
      5. [70311.798653] ata3.00: status: { DRDY }
      6. [70311.804263] ata3: hard resetting link
      7. [70312.128030] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
      8. [70312.141401] ata3.00: configured for UDMA/133
      9. [70312.146988] ata3: EH complete


      This occurs for every device in turn. If it gets through all of this, everything works fine but it looks like this takes 5-15 seconds for each device. I have 6 disks, so that means can take over a minute. It looks like OMV's GUI communications timeout is 60 seconds. This means I get a communication error before it can finish this process. Is there anywhere I can increase this? I've tried a few settings in the nginx config file and several php5-fpm config files, issuing service nginx restart && service php5-fpm restart each time but it looks like the timeout continues to be 60 seconds.

      Alternatively, does anyone know how to fix this SMART issue? The board is a SuperMicro X7QC3 with an Intel 7300 Chipset. Here's the output of lspci:

      Source Code

      1. 00:00.0 Host bridge: Intel Corporation 7300 Chipset Memory Controller Hub (rev 01)
      2. 00:01.0 PCI bridge: Intel Corporation 7300 Chipset PCI Express Port 1 (rev 01)
      3. 00:02.0 PCI bridge: Intel Corporation 7300 Chipset PCI Express Port 2 (rev 01)
      4. 00:04.0 PCI bridge: Intel Corporation 7300 Chipset PCI Express Port 4 (rev 01)
      5. 00:06.0 PCI bridge: Intel Corporation 7300 Chipset PCI Express Port 6 (rev 01)
      6. 00:08.0 System peripheral: Intel Corporation 7300 Chipset QuickData Technology Device (rev 01)
      7. 00:10.0 Host bridge: Intel Corporation 7300 Chipset FSB Registers (rev 01)
      8. 00:10.1 Host bridge: Intel Corporation 7300 Chipset FSB Registers (rev 01)
      9. 00:10.2 Host bridge: Intel Corporation 7300 Chipset FSB Registers (rev 01)
      10. 00:10.3 Host bridge: Intel Corporation 7300 Chipset FSB Registers (rev 01)
      11. 00:11.0 Host bridge: Intel Corporation 7300 Chipset Snoop Filter Registers (rev 01)
      12. 00:11.3 Host bridge: Intel Corporation 7300 Chipset Snoop Filter Registers (rev 01)
      13. 00:13.0 Host bridge: Intel Corporation 7300 Chipset Debug and Miscellaneous Registers (rev 01)
      14. 00:15.0 Host bridge: Intel Corporation 7300 Chipset FBD Branch 0 Registers (rev 01)
      15. 00:16.0 Host bridge: Intel Corporation 7300 Chipset FBD Branch 1 Registers (rev 01)
      16. 00:1d.0 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
      17. 00:1d.1 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
      18. 00:1d.2 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
      19. 00:1d.7 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
      20. 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
      21. 00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
      22. 00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
      23. 00:1f.2 SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller (rev 09)
      24. 00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller (rev 09)
      25. 01:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI ES1000 (rev 02)
      26. 02:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
      27. 04:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
      28. 04:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
      29. 06:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
      30. 08:00.0 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connection (rev 02)
      31. 08:00.1 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connection (rev 02)
      Display All


      And "for EACH in /dev/sd?; do echo ===== ${EACH} =====; smartctl -i ${EACH}; done":

      Note that sda-sdf are SATA, the rest are USB.

      Source Code

      1. ===== /dev/sda =====
      2. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      3. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      4. === START OF INFORMATION SECTION ===
      5. Model Family: Western Digital AV-GP (AF)
      6. Device Model: WDC WD20EURS-63S48Y0
      7. Serial Number: WD-WCAZA8792325
      8. LU WWN Device Id: 5 0014ee 2b0c95915
      9. Firmware Version: 51.0AB51
      10. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      11. Sector Sizes: 512 bytes logical, 4096 bytes physical
      12. Device is: In smartctl database [for details use: -P show]
      13. ATA Version is: 8
      14. ATA Standard is: Exact ATA specification draft version not indicated
      15. Local Time is: Sun Sep 20 21:27:51 2015 EDT
      16. SMART support is: Available - device has SMART capability.
      17. SMART support is: Enabled
      18. ===== /dev/sdb =====
      19. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      20. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      21. === START OF INFORMATION SECTION ===
      22. Model Family: Western Digital RE4 (SATA 6Gb/s)
      23. Device Model: WDC WD2000FYYZ-01UL1B2
      24. Serial Number: WD-WCC1P6Z4PEYD
      25. LU WWN Device Id: 5 0014ee 0aeb26203
      26. Firmware Version: 01.01K03
      27. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      28. Sector Size: 512 bytes logical/physical
      29. Device is: In smartctl database [for details use: -P show]
      30. ATA Version is: 8
      31. ATA Standard is: Exact ATA specification draft version not indicated
      32. Local Time is: Sun Sep 20 21:27:51 2015 EDT
      33. SMART support is: Available - device has SMART capability.
      34. SMART support is: Enabled
      35. ===== /dev/sdc =====
      36. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      37. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      38. === START OF INFORMATION SECTION ===
      39. Model Family: Western Digital AV-GP (AF)
      40. Device Model: WDC WD20EURS-63S48Y0
      41. Serial Number: WD-WCAZA6413637
      42. LU WWN Device Id: 5 0014ee 205bdde0e
      43. Firmware Version: 51.0AB51
      44. User Capacity: 2,000,397,852,160 bytes [2.00 TB]
      45. Sector Sizes: 512 bytes logical, 4096 bytes physical
      46. Device is: In smartctl database [for details use: -P show]
      47. ATA Version is: 8
      48. ATA Standard is: Exact ATA specification draft version not indicated
      49. Local Time is: Sun Sep 20 21:27:51 2015 EDT
      50. SMART support is: Available - device has SMART capability.
      51. SMART support is: Enabled
      52. ===== /dev/sdd =====
      53. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      54. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      55. === START OF INFORMATION SECTION ===
      56. Model Family: Western Digital RE4 (SATA 6Gb/s)
      57. Device Model: WDC WD2000FYYZ-01UL1B2
      58. Serial Number: WD-WMC1P0F46DEA
      59. LU WWN Device Id: 5 0014ee 0040d7729
      60. Firmware Version: 01.01K03
      61. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      62. Sector Size: 512 bytes logical/physical
      63. Device is: In smartctl database [for details use: -P show]
      64. ATA Version is: 8
      65. ATA Standard is: Exact ATA specification draft version not indicated
      66. Local Time is: Sun Sep 20 21:27:51 2015 EDT
      67. SMART support is: Available - device has SMART capability.
      68. SMART support is: Enabled
      69. ===== /dev/sde =====
      70. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      71. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      72. === START OF INFORMATION SECTION ===
      73. Model Family: Western Digital Red
      74. Device Model: WDC WD20EFRX-68EUZN0
      75. Serial Number: WD-WCC4M6FFHTJZ
      76. LU WWN Device Id: 5 0014ee 260ea2cb4
      77. Firmware Version: 82.00A82
      78. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      79. Sector Sizes: 512 bytes logical, 4096 bytes physical
      80. Device is: In smartctl database [for details use: -P show]
      81. ATA Version is: 9
      82. ATA Standard is: Exact ATA specification draft version not indicated
      83. Local Time is: Sun Sep 20 21:27:51 2015 EDT
      84. SMART support is: Available - device has SMART capability.
      85. SMART support is: Enabled
      86. ===== /dev/sdf =====
      87. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      88. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      89. === START OF INFORMATION SECTION ===
      90. Model Family: Western Digital AV-GP (AF)
      91. Device Model: WDC WD20EURX-63T0FY0
      92. Serial Number: WD-WCC4MH5TJC57
      93. LU WWN Device Id: 5 0014ee 2b551cbbe
      94. Firmware Version: 80.00A80
      95. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      96. Sector Sizes: 512 bytes logical, 4096 bytes physical
      97. Device is: In smartctl database [for details use: -P show]
      98. ATA Version is: 9
      99. ATA Standard is: Exact ATA specification draft version not indicated
      100. Local Time is: Sun Sep 20 21:27:51 2015 EDT
      101. SMART support is: Available - device has SMART capability.
      102. SMART support is: Enabled
      103. ===== /dev/sdg =====
      104. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      105. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      106. /dev/sdg: Unknown USB bridge [0x0781:0x5583 (0x100)]
      107. Smartctl: please specify device type with the -d option.
      108. Use smartctl -h to get a usage summary
      109. ===== /dev/sdh =====
      110. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      111. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      112. === START OF INFORMATION SECTION ===
      113. Model Family: Western Digital AV-GP (AF)
      114. Device Model: WDC WD20EURS-73S48Y0
      115. Serial Number: WD-WCAZA6504547
      116. LU WWN Device Id: 5 0014ee 205c13c79
      117. Firmware Version: 51.0AB51
      118. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      119. Sector Sizes: 512 bytes logical, 4096 bytes physical
      120. Device is: In smartctl database [for details use: -P show]
      121. ATA Version is: 8
      122. ATA Standard is: Exact ATA specification draft version not indicated
      123. Local Time is: Sun Sep 20 21:27:52 2015 EDT
      124. SMART support is: Available - device has SMART capability.
      125. SMART support is: Enabled
      126. ===== /dev/sdi =====
      127. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      128. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      129. === START OF INFORMATION SECTION ===
      130. Model Family: Western Digital AV-GP (AF)
      131. Device Model: WDC WD20EURX-63T0FY0
      132. Serial Number: WD-WCC4MKCN9Y7Y
      133. LU WWN Device Id: 5 0014ee 20adf0cfe
      134. Firmware Version: 80.00A80
      135. User Capacity: 2,000,398,934,016 bytes [2.00 TB]
      136. Sector Sizes: 512 bytes logical, 4096 bytes physical
      137. Device is: In smartctl database [for details use: -P show]
      138. ATA Version is: 9
      139. ATA Standard is: Exact ATA specification draft version not indicated
      140. Local Time is: Sun Sep 20 21:27:52 2015 EDT
      141. SMART support is: Available - device has SMART capability.
      142. SMART support is: Enabled
      143. ===== /dev/sdj =====
      144. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      145. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      146. === START OF INFORMATION SECTION ===
      147. Model Family: Western Digital RE2-GP
      148. Device Model: WDC WD5000ABPS-01ZZB0
      149. Serial Number: WD-WCASU1575241
      150. LU WWN Device Id: 5 0014ee 2abb27a47
      151. Firmware Version: 02.01B01
      152. User Capacity: 500,106,780,160 bytes [500 GB]
      153. Sector Size: 512 bytes logical/physical
      154. Device is: In smartctl database [for details use: -P show]
      155. ATA Version is: 8
      156. ATA Standard is: Exact ATA specification draft version not indicated
      157. Local Time is: Sun Sep 20 21:27:52 2015 EDT
      158. SMART support is: Available - device has SMART capability.
      159. SMART support is: Enabled
      160. ===== /dev/sdk =====
      161. smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
      162. Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
      163. === START OF INFORMATION SECTION ===
      164. Model Family: Western Digital Caviar Green
      165. Device Model: WDC WD5000AADS-00M2B0
      166. Serial Number: WD-WCAV5V325292
      167. LU WWN Device Id: 5 0014ee 2b0dead93
      168. Firmware Version: 01.00A01
      169. User Capacity: 500,107,862,016 bytes [500 GB]
      170. Sector Size: 512 bytes logical/physical
      171. Device is: In smartctl database [for details use: -P show]
      172. ATA Version is: 8
      173. ATA Standard is: Exact ATA specification draft version not indicated
      174. Local Time is: Sun Sep 20 21:27:52 2015 EDT
      175. SMART support is: Available - device has SMART capability.
      176. SMART support is: Enabled
      Display All
    • Hokay, I think I figured it out. All numbers are in seconds (hence the multiplication lower down).

      The things that need to change (all of these) are:

      /etc/openmediavault/php.ini:
      max_execution_time = #

      /etc/php5/fpm/pool.d/openmediavault-webgui.conf:
      php_value[max_execution_time] = #

      /etc/nginx/sites-enabled/openmediavault-webgui:
      fastcgi_read_timeout #s;

      /etc/default/openmediavault:
      OMV_HTTPREQUEST_TIMEOUT="#*1000"

      After these changes:
      service openmediavault-engined restart && service php5-fpm restart && service nginx restart

      The last one did not exist, but was referenced in rpcproxy.inc and was the one I was missing. Afterwards, I went through and tried to increase one at a time until the time it took before failure went up.It took just over 2 minutes to enumerate my SMART devices. Yay.
    • Anybody know how to do this in OMV4? I did change the PHP timeout to 600 seconds in the settings (also applied) but it still kicks the timeout after 30 seconds.

      I also set the OMV_HTTPREQUEST_TIMEOUT variable to 600000 (600 sec) but it looks like it doesn't apply these changes... Also the default value of OMV_HTTPREQUEST_TIMEOUT is 60000 (60 sec) but it already timeout at 30 sec...
      OMV 4 - Ryzen 7 1700 (8 Cores / 16 Threads 65W TDP) - 32 GB DDR4 ECC
      128 GB OS SSD - 256 GB Plex SSD - 32 TB RAIDZ2 (6x8TB HGST NAS)