
{"id":4479,"date":"2018-03-07T12:15:07","date_gmt":"2018-03-07T10:15:07","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=4479"},"modified":"2023-10-25T18:03:31","modified_gmt":"2023-10-25T16:03:31","slug":"manage-raid-controller-linux","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/manage-raid-controller-linux\/","title":{"rendered":"How to manage your RAID controller in Linux"},"content":{"rendered":"\n<p>Please note: This tutorial focusses on Linux OS. Should you be a Windows user instead, please confer our respective tutorial on how to <a href=\"https:\/\/contabo.com\/blog\/en\/manage-raid-controller-windows\">manage your RAID controller in Windows.<\/a><\/p>\n\n\n\n<p><strong>Monitoring a RAID array<\/strong><\/p>\n\n\n\n<p>A hardware RAID has certain advantages, but also a hardware RAID has to be monitored. We always rely on tried and tested hardware to minimize the risk of a hardware failure, but there is always the risk that hardware fails, therefore monitoring the hardware is even more important to guarantee that the server will keep running properly.<\/p>\n\n\n\n<p>In the case of a software RAID, the operating system generates messages about the RAID; with a hardware RAID, the controller does it itself &#8211; but you need a special software to read these messages.<\/p>\n\n\n\n<p>This blog entry shows the installation and use of the Adaptec and LSI software on Linux operating systems.<br>There are also graphical interfaces available for managing raidcontrollers, such as a web interface.<\/p>\n\n\n\n<p><strong>Please contact our <a href=\"https:\/\/contabo.com\/en\/support\" target=\"_blank\" rel=\"noreferrer noopener\">support department<\/a> in case you are not sure which controller was added to your server.<\/strong><\/p>\n\n\n\n<p>Please note: Updating the controller&#8217;s firmware or the operating system&#8217;s driver may lead to a <strong>complete loss of all data stored on that RAID!<\/strong><\/p>\n\n\n\n<p>For this tutorial some additional software is needed, for Ubuntu 17.10 it can be installed using the following command &#8220;apt install zip unzip net-tools&#8221;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Linux1\"><strong>1. Adaptec<\/strong><\/h3>\n\n\n\n<p>An overview of available software for your Adaptec controller can be found here: <a href=\"https:\/\/storage.microsemi.com\/en-us\/support\/series6\/index.php\" rel=\"nofollow\">https:\/\/storage.microsemi.com\/en-us\/support\/series6\/index.php<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Linux11\">1.1 Installation of the arcconf binary<\/h4>\n\n\n\n<p>Installing the binary with the Linux commandline is very easy, you can manage the controller using that binary afterwards.<\/p>\n\n\n\n<p>If you\u2019re not sure about your admin rights, always enter the command sudo -i at the beginning of every session:<\/p>\n\n\n\n<p><code>sudo -i<\/code><\/p>\n\n\n\n<p>This command will grant you the rights of a power user, so you don\u2019t have to write the command sudo at the beginning of every command line.<\/p>\n\n\n\n<p>A download link for the latest available binary can be found on the above mentioned website by clicking on the &#8220;Storage Manager Downloads&#8221; link.<br>The &#8220;arcconf&#8221; binary can be used for various Adaptec products, usually there is no need for additional software.<br>In this tutorial we are going to download the following binary: <a href=\"https:\/\/storage.microsemi.com\/en-us\/speed\/raid\/storage_manager\/arcconf_v2_03_22476_zip.php\" rel=\"nofollow\">https:\/\/storage.microsemi.com\/en-us\/speed\/raid\/storage_manager\/arcconf_v2_03_22476_zip.php<\/a><\/p>\n\n\n\n<p>On your commandline just type:<\/p>\n\n\n\n<p><code>wget http:\/\/download.adaptec.com\/raid\/storage_manager\/arcconf_v2_03_22476.zip &amp;&amp; unzip arcconf_v2_03_22476.zip<\/code><\/p>\n\n\n\n<p>Now move the binary to your binary folder and make it executable:<\/p>\n\n\n\n<p><code>mv linux_x64\/cmdline\/arcconf \/usr\/sbin\/ &amp;&amp; chmod +x \/usr\/sbin\/arcconf<\/code><\/p>\n\n\n\n<p>The &#8220;arcconf&#8221; command should be available now.<\/p>\n\n\n\n<p><code>root@contabo:~# arcconf<br>Controllers found: 1<br>| UCLI | Adaptec by PMC uniform command line interface<br>| UCLI | Version 2.03 (B22476)<br>| UCLI | (C) Adaptec by PMCS 2003-2016<br>| UCLI | All Rights Reserved<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Linux12\">1.2 Monitoring the raidcontroller<\/h4>\n\n\n\n<p>Usually the RAID should have an &#8220;OPTIMAL&#8221; value, in case one HDD fails the controller will start to send an audible alarm signal. That signal will be recognized by our technicians working in the datacenter, in this case we will contact you and inform you about a possible hardware failure.<\/p>\n\n\n\n<p>With the parameter &#8220;arcconf GETCONFIG 1&#8221; you will get all information regarding the 1st controller installed to your system. In case you have installed more than one controller you could display the information of the 2nd controller by typing &#8220;arcconf GETCONFIG 2&#8221;.<\/p>\n\n\n\n<p>A list of available options can be displayed by typing &#8220;arcconf getconfig&#8221;.<\/p>\n\n\n\n<p>The most important status can be filtered out by typing &#8220;arcconf getconfig 1 | grep Status&#8221; into the commandline.<\/p>\n\n\n\n<p><code>root@contabo:~# arcconf getconfig 1 | grep Status<br>Controller Status : Optimal<br>Status : ZMM not installed<br>Status of Logical Device : <strong>Optimal<\/strong><\/code><\/p>\n\n\n\n<p>&#8220;ZMM not installed&#8221; shows that this controller currently has no BBU (batterie backup unit) installed, a BBU can be installed at any time as an upgrade.<\/p>\n\n\n\n<p>A &#8220;Degraded&#8221; status on a LD (Logical Device) indicates that there must be an issue.<br><code><br>root@contabo:~# arcconf getconfig 1 | grep Status<br>Controller Status : Optimal<br>Status : ZMM not installed<br>Status of Logical Device : <strong>Degraded<\/strong><\/code><\/p>\n\n\n\n<p>To check if there is any failed drive (in this scenario the SSD failed), type in the following command and you will see the &#8220;State : Failed&#8221; information:<\/p>\n\n\n\n<p><code>root@contabo:~# arcconf getconfig 1 PD<br>Controllers found: 1<br>----------------------------------------------------------------------<br>Physical Device information<br>----------------------------------------------------------------------<br>Device #0<br>Device is a Hard drive<br><strong>State : Failed<\/strong><br>Block Size : 512 Bytes<br>Failed logical device segments : True<br>Supported : Yes<br>Transfer Speed : Failed<br>Reported Channel,Device(T:L) : 0,0(0:0)<br>Reported Location : Connector 0, Device 0<br>Vendor :<br>Model : Crucial_CT275MX3<br>Firmware : M0CR040<br>Serial number : 11111111111111<br>World-wide name : 500A075116639956<br>Total Size : 262321 MB<br>Write Cache : Enabled (write-back)<br>FRU : None<br>S.M.A.R.T. : No<br>S.M.A.R.T. warnings : 0<br>Power State : Full rpm<br>Supported Power States : Full power,Powered off,Standby<br>SSD : Yes<br>Temperature : Not Supported<br>NCQ status : Enabled<\/code><\/p>\n\n\n\n<p>To replace a failed drive just contact us, we will immediately take care of it. To speed up the process you should provide us with the above output. It shows the S\/N and the port that drive is attached to. In this case the S\/N is &#8220;<code>11111111111111<\/code>&#8221; and the attached Port is &#8220;0&#8221;.<\/p>\n\n\n\n<p>As soon as the drive got replaced the rebuild should start automatically:<\/p>\n\n\n\n<p><code>root@contabo:~# arcconf getconfig 1 | grep Status<br>Controller Status : Optimal<br>Status : ZMM not installed<br>Status of Logical Device : <strong>Degraded, Rebuilding ( Rebuild : 1 % )<\/strong><\/code><\/p>\n\n\n\n<p>Depending on your RAID setup this will probably take several hours.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Linux13\">1.3 Installing an available Webinterface<\/h4>\n\n\n\n<p>For Adaptec there is the &#8220;MaxView Storage Manager&#8221; available, it can be downloaded here: <a href=\"https:\/\/storage.microsemi.com\/de-de\/speed\/raid\/storage_manager\/msm_linux_x64_v2_03_22476_tgz.php\" rel=\"nofollow\">https:\/\/storage.microsemi.com\/de-de\/speed\/raid\/storage_manager\/msm_linux_x64_v2_03_22476_tgz.php<\/a><\/p>\n\n\n\n<p>You could also just download it via commandline:<\/p>\n\n\n\n<p><code>wget http:\/\/download.adaptec.com\/raid\/storage_manager\/msm_linux_x64_v2_03_22476.tgz &amp;&amp; tar -xzf msm_linux_x64_v2_03_22476.tgz<\/code><\/p>\n\n\n\n<p>The installer is located within the directory called &#8220;manager&#8221; &#8211; that directory will be created when unpacking the downloaded archive.<br>For our system (Ubuntu 17.04) we will install the package using the following command:<\/p>\n\n\n\n<p><code>dpkg -i manager\/StorMan-2.03-22476_amd64.deb<\/code><\/p>\n\n\n\n<p>Afterwards you should be able to reach the webinterface at <strong>https:\/\/&lt;SERVERIP&gt;:8443<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Linux2\"><strong>2. LSI<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Linux21\">2.1 Installation of the StorCLI binary<\/h4>\n\n\n\n<p><a href=\"https:\/\/docs.broadcom.com\/docs\/12351351\" rel=\"nofollow\">Download of the commandline Binary<\/a> :<\/p>\n\n\n\n<p><code>wget https:\/\/docs.broadcom.com\/docs-and-downloads\/raid-controllers\/raid-controllers-common-files\/1.21.16_StorCLI.zip --no-check-certificate &amp;&amp; unzip 1.21.16_StorCLI.zip &amp;&amp; cd versionChangeSet\/univ_viva_cli_rel\/ &amp;&amp; unzip storcli_All_OS.zip<\/code><\/p>\n\n\n\n<p>For our system we will install the Ubuntu package by typing:<br><code>dpkg -i storcli_All_OS\/Ubuntu\/storcli_1.21.06_all.deb<br><\/code><br>Create a link to make the &#8220;storcli&#8221; command available to your shell.<code><br>ln -s \/opt\/MegaRAID\/storcli\/storcli64 \/usr\/sbin\/storcli<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Linux12\">2.2 Monitoring the raidcontroller<\/h4>\n\n\n\n<p>You can display the current status of the raidcontroller by typing:<\/p>\n\n\n\n<p><code>root@contabo:~#storcli \/c0 show<\/code><\/p>\n\n\n\n<p><code>TOPOLOGY :<br>========<br>-----------------------------------------------------------------------------<br>DG Arr Row EID:Slot DID Type&nbsp; State BT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size PDC&nbsp; PI SED DS3&nbsp; FSpace<br>-----------------------------------------------------------------------------<br>0 -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; RAID1 <strong>Optl&nbsp; <\/strong>N&nbsp; 255.656 GB dflt N&nbsp; N&nbsp;&nbsp; dflt N<br>0 0&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; RAID1 <strong>Optl&nbsp; <\/strong>N&nbsp; 255.656 GB dflt N&nbsp; N&nbsp;&nbsp; dflt N<br>0 0&nbsp;&nbsp; 0&nbsp;&nbsp; 64:4&nbsp;&nbsp;&nbsp;&nbsp; 12&nbsp; DRIVE <strong>Onln&nbsp; <\/strong>N&nbsp; 255.656 GB dflt N&nbsp; N&nbsp;&nbsp; dflt -<br>0 0&nbsp;&nbsp; 1&nbsp;&nbsp; 64:5&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; DRIVE <strong>Onln&nbsp; <\/strong>N&nbsp; 255.656 GB dflt N&nbsp; N&nbsp;&nbsp; dflt -<br>----------------------------------------------------------------------------<\/code><\/p>\n\n\n\n<p>Example of a failed HDD:<\/p>\n\n\n\n<p><code>TOPOLOGY :<br>========<br>----------------------------------------------------------------------<br>DG Arr Row EID:Slot DID Type&nbsp; State BT Size PDC&nbsp; PI SED DS3&nbsp; FSpace<br>----------------------------------------------------------------------<br>0 -&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; RAID1 <strong>Dgrd&nbsp; <\/strong>N&nbsp; 255 GB dflt N&nbsp; N&nbsp;&nbsp; dflt N<br>0 0&nbsp;&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; RAID1 <strong>Dgrd&nbsp; <\/strong>N&nbsp; 255 GB dflt N&nbsp; N&nbsp;&nbsp; dflt N<br>0 0&nbsp;&nbsp; 0&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; DRIVE <strong>Msng&nbsp;<\/strong> -&nbsp; 255 GB -&nbsp;&nbsp;&nbsp; -&nbsp; -&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp; -<br>0 0&nbsp;&nbsp; 1&nbsp;&nbsp; 64:5&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; DRIVE Onln&nbsp; N&nbsp; 255 GB dflt N&nbsp; N&nbsp;&nbsp; dflt -<br>---------------------------------------------------------------------<br><\/code><\/p>\n\n\n\n<p><code>root@contabo:~#storcli \/c0 \/sall show<\/code><\/p>\n\n\n\n<p><code><br>Controller = 0<br>Status = <strong>Failure<\/strong><br>Description = No drive found!<br>Detailed Status :<br>===============<br>----------------------------------------<br>Drive&nbsp;&nbsp;&nbsp; Status&nbsp; ErrCd ErrMsg<br>----------------------------------------<br>\/c0\/sALL Failure&nbsp;&nbsp; 255 Drives not found<br>----------------------------------------<\/code><\/p>\n\n\n\n<p>To display the current status of the rebuild you can run:<\/p>\n\n\n\n<p><code>root@contabo:~#storcli \/c0 \/eall \/sall show rebuild<\/code><\/p>\n\n\n\n<p><code>Controller = 0<br>Status = Success<br>Description = Show Drive Rebuild Status Succeeded.<br>---------------------------------------------------------<br>Drive-ID&nbsp;&nbsp; Progress% Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Estimated Time Left<br>---------------------------------------------------------<br>\/c0\/e64\/s4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 In progress&nbsp;&nbsp;&nbsp;&nbsp; -<br>\/c0\/e64\/s5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Not in progress -<br>---------------------------------------------------------<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Linux23\">2.3 Installing an available webinterface<\/h4>\n\n\n\n<p>Unfortunately, there is currently no webinterface available for Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please note: This tutorial focusses on Linux OS. Should you be a Windows user instead, please confer our respective tutorial on how to manage your RAID controller in Windows. Monitoring a RAID array A hardware RAID has certain advantages, but also a hardware RAID has to be monitored. We always rely on tried and tested [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[51,56,181,510,522,677],"ppma_author":[1493],"class_list":["post-4479","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-adaptec","tag-administration","tag-contabo","tag-linux","tag-lsi","tag-raid"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Gianni-Donato","author_link":"https:\/\/contabo.com\/blog\/author\/gianni-donato\/"},"uagb_comment_info":0,"uagb_excerpt":"Please note: This tutorial focusses on Linux OS. Should you be a Windows user instead, please confer our respective tutorial on how to manage your RAID controller in Windows. Monitoring a RAID array A hardware RAID has certain advantages, but also a hardware RAID has to be monitored. We always rely on tried and tested&hellip;","authors":[{"term_id":1493,"user_id":17,"is_guest":0,"slug":"gianni-donato","display_name":"Gianni-Donato","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/4457fc8553ead9a4e1e3d5b4a940590df9bad9d9132e58e40df3894b99bbe5d0?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/4479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=4479"}],"version-history":[{"count":2,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/4479\/revisions"}],"predecessor-version":[{"id":20701,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/4479\/revisions\/20701"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=4479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=4479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=4479"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=4479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}