0837.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Flashing H310/H710 RAID Controllers to LSI IT Mode</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Home Lab,Home Lab Ideas,Install Guide,LSI,RAID Controller,H310,H710,RAID,Custom,Firmware,Custom Firmware,IT Mode,TrueNAS,Proxmox,VM,Linux,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Flashing H310/H710 RAID Controllers to LSI IT Mode">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="10/28/2023 01:16:46 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Flashing H310/H710 RAID Controllers to LSI IT Mode</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Background</h2>
  26. <p>I recently purchased a Dell Poweredge server with a H310 RAID controller. One of the purposes of the new server is to run TrueNAS Scale as a VM inside Proxmox. To get the best performance out of TrueNAS and ZFS, the H310 needs to be flashed to LSI IT mode so ZFS can have direct access to the drives. IT mode also improves the disk drive IOPS (Input/output operations per second) performance.</p>
  27. <h2>What is LSI IT Mode?</h2>
  28. <p>IT (Initiator Target) mode essentially disables the hardware RAID capabilities of the controller, allowing the operating system to see and interact with each disk drive directly.</p>
  29. <h2>Disclaimer</h2>
  30. <p>This process will overwrite the firmware on the RAID controller. If not done correctly, the process can damage and brick the RAID controller.</p>
  31. <h2>Things You Will Need</h2>
  32. <ul>
  33. <li>A USB flash drive, at least 4 GB <a href="https://amzn.to/3wkR5ju" target="_blank">https://amzn.to/3wkR5ju</a> | <a href="https://amzn.to/3qkrJ1p" target="_blank">https://amzn.to/3qkrJ1p</a> | <a href="https://amzn.to/3Nhu9b9" target="_blank">https://amzn.to/3Nhu9b9</a></li>
  34. <li>One of the following hardware RAID controllers
  35. <ul>
  36. <li class="noCheckbox">H310 Mini Mono (⇦ used in this tutorial)</li>
  37. <li class="noCheckbox">H310 Full Size</li>
  38. <li class="noCheckbox">H710 Mini Mono</li>
  39. <li class="noCheckbox">H710P Mini Mono</li>
  40. <li class="noCheckbox">H710 Full Size</li>
  41. <li class="noCheckbox">H710P Full Size</li>
  42. <li class="noCheckbox">H810 Full Size</li>
  43. </ul>
  44. </li>
  45. </ul>
  46. <h2>Before You Begin</h2>
  47. <ol>
  48. <li>Remove the battery from the RAID controller</li>
  49. <li>Disable the following technologies in the BIOS
  50. <ul>
  51. <li>Virtualization</li>
  52. <li>SR-IOV</li>
  53. <li>IOMMU</li>
  54. </ul>
  55. </li>
  56. <li>Set the Boot Mode to BIOS/Legacy (not UEFI)</li>
  57. </ol>
  58. <h2>Preparing the Flash Utilities</h2>
  59. <p>Huge thanks to <a href="http://fohdeesha.com" target="_blank">fohdeesha.com</a> for compiling the software and steps to complete the flashing process into an easy to follow procedure.</p>
  60. <ol>
  61. <li>Download the PERC flashing utilities <a href="https://fohdeesha.com/docs/store/perc/perc-crossflash-v2.2.zip" target="_blank">Download</a></li>
  62. <li>Download the Ventoy installer <a href="https://www.ventoy.net/en/download.html" target="_blank">Download</a></li>
  63. <li>Extract the downloaded perc-crossflash .zip file</li>
  64. <li>Extract the downloaded Ventoy .zip file</li>
  65. <li>Run Ventoy2Disk.exe</li>
  66. <li>Plug in a USB flash drive at least 4 GB in size</li>
  67. <li>Click the refresh icon</li>
  68. <li>Select the flash drive from the device dropdown</li>
  69. <li>Click the Install button</li>
  70. <li>After the installation completes, copy the Linux and FreeDOS .iso files from the extracted perc-crossflash folder to the Ventoy partition</li>
  71. <li>Safely remove the USB flash drive</li>
  72. <li>Plug the flash drive into the target server</li>
  73. </ol>
  74. <h2>Collecting RAID Controller Information</h2>
  75. <ol>
  76. <li>Power on the server hardware &gt; Boot to the flash drive</li>
  77. <li>Select the FreeDOS .iso from the Ventoy menu</li>
  78. <li>Once FreeDOS has booted, run the following command
  79. <div class="codeBlock CMD">info</div>
  80. </li>
  81. <li>Take a photo of and/or carefully write down the SAS address from the output</li>
  82. <li>Compare the output Product Name and ChipRevision (H310 Mini in this example) to the listing on https://fohdeesha.com/docs/perc.html#finding-your-card-revision; If there isn&#39;t an <em>EXACT MATCH </em>stop</li>
  83. <li>Shutdown or reboot the server</li>
  84. </ol>
  85. <h2>Flashing to IT Mode</h2>
  86. <p><em>The steps below are specific to the H310 Mini RAID controller in my device (https://fohdeesha.com/docs/H310.html). Make sure to follow the steps for your target RAID controller model.</em></p>
  87. <ol>
  88. <li>Power on the server hardware &gt; Boot to the flash drive</li>
  89. <li>Select the Linux .iso from the Ventoy menu</li>
  90. <li>Log into Linux using the username user and password live</li>
  91. <li>If you plan to SSH into the device, run the following command to output the IP address and connect via SSH
  92. <div class="codeBlock CMD">ipinfo</div>
  93. </li>
  94. <li>Continue with the following commands in Linux on the target server device
  95. <div class="codeBlock CMD"># elevate to root shell<br />
  96. sudo su -<br />
  97. # output the SAS address<br />
  98. # take a photo of and/or carefully write down the SAS address from the output<br />
  99. # it will be required after the flashing process<br />
  100. sas-mega<br />
  101. # flash the raid controller firmware<br />
  102. H310-Mini<br />
  103. # once the flash completes without errors, reboot the server<br />
  104. reboot now</div>
  105. </li>
  106. <li>Boot to the flash drive</li>
  107. <li>Select the Linux .iso from the Ventoy menu
  108. <p>NOTE: If you see kernel panic errors during startup, shutdown the server hardware and power it back on and boot back into Linux from Ventoy</p>
  109. </li>
  110. <li>Log back into Linux using the username user and password live</li>
  111. <li>Continue with the following commands
  112. <div class="codeBlock CMD"># elevate to root shell<br />
  113. sudo su -<br />
  114. # set the sas address<br />
  115. setsas &lt;%sas address from output earlier%&gt;<br />
  116. # output info about the new state of the controller<br />
  117. info</div>
  118. </li>
  119. <li>If you&#39;ll be booting from drives attached to the RAID controller, continue with the following steps to flash the boot ROM images
  120. <div class="codeBlock CMD"># flash bios/legacy boot rom<br />
  121. flashboot /root/Bootloaders/mptsas2.rom<br />
  122. # flash uefi boot rom<br />
  123. flashboot /root/Bootloaders/x64sas2.rom<br />
  124. # shutdown the system<br />
  125. shutdown now</div>
  126. </li>
  127. <li>Re-enable any BIOS settings that were changed prior to completing the flashing process</li>
  128. </ol>
  129. <p>Source: <a href="https://fohdeesha.com/docs/perc.html" target="_blank">https://fohdeesha.com/docs/perc.html</a></p> </div>
  130. </div>
  131. </body>
  132. </html>