{"id":428,"date":"2019-05-12T10:43:03","date_gmt":"2019-05-12T10:43:03","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/24x7serversupport-blog\/?p=428"},"modified":"2019-05-12T10:43:03","modified_gmt":"2019-05-12T10:43:03","slug":"how-to-install-megacli-on-centos7","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/","title":{"rendered":"How to install MegaCli on Centos7"},"content":{"rendered":"\n<p> MegaCli introduced by LSI is a command line administration of LSI MegaRaid controllers .<br \/>With megacli we can create physical raids, gather info about raids and monitor raids.<br \/>MegaCLI provided by LSI is the most cryptic command line utility in existence.<br \/>Dell PowerEdge servers uses the LSI MegaRAID controllers <\/p>\n\n\n\n<p><strong>Installation<\/strong><\/p>\n\n\n\n<p>Download and Install MegaCli and other supportive tools<br \/>Inside the zip file you\u2019ll find an RPM archive which contains the MegaCli and MegaCli64 binaries<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p> <br \/><a href=\"http:\/\/162.243.29.98\/MegaCli-8.07.14-1.noarch.rpm\">wget http:\/\/162.243.29.98\/MegaCli-8.07.14-1.noarch.rpm<\/a> <br \/>or <br \/><a href=\"http:\/\/162.243.29.98\/8-07-14_MegaCLI.zip\">http:\/\/162.243.29.98\/8-07-14_MegaCLI.zip<\/a> <\/p>\n\n\n\n<p>Command to install MegaCli using rpm<\/p>\n\n\n\n<p> rpm -ivh MegaCli-8.07.14-1.noarch.rpm <\/p>\n\n\n\n<p> Command location (will be installed to \/opt\/MegaRAID\/MegaCli) <\/p>\n\n\n\n<p> &nbsp; &nbsp;&nbsp;\/opt\/MegaRAID\/MegaCli\/MegaCli64<\/p>\n\n\n\n<p> <br \/>Make an alias for easier use<br \/>  <br \/>&nbsp; &nbsp;&nbsp;alias megacli=&#8217;\/opt\/MegaRAID\/MegaCli\/MegaCli64&#8242;<br \/> <\/p>\n\n\n\n<p>\n\nExtra tools<\/p>\n\n\n\n<p>MegaCli is not providing all the information we need like mapping to linux devices and raid level (readable), so we are going<br \/>to use some extra tools.<\/p>\n\n\n\n<p>\n\nyum install sg3_utils\n\n<\/p>\n\n\n\n<p><strong>Useful Commands for Megacli<\/strong><\/p>\n\n\n\n<p>Controller information<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpAllInfo -aALL<br \/>&nbsp; &nbsp; megacli -CfgDsply -aALL<br \/>&nbsp; &nbsp; megacli -AdpEventLog -GetEvents -f events.log -aALL &amp;&amp; cat events.log<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Enclosure information<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -EncInfo -aALL<\/p>\n\n\n\n<p>Virtual drive information<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -LDInfo -Lall -aALL<\/p>\n\n\n\n<p>Physical drive information<\/p>\n\n\n\n<p>&nbsp;&nbsp; &nbsp;megacli -PDList -aALL<br \/>&nbsp; &nbsp; megacli -PDInfo -PhysDrv [E:S] -aALL<\/p>\n\n\n\n<p>Battery backup information<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpBbuCmd -aALL<\/p>\n\n\n\n<p><strong>Controller management<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Silence active alarm<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; megacli -AdpSetProp AlarmSilence -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>&nbsp;Disable alarm<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; megacli -AdpSetProp AlarmDsbl -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Enable alarm<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; megacli -AdpSetProp AlarmEnbl -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To see information about the patrol read state and the delay between patrol read runs<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpPR -Info -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To find out the current patrol read rate<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpGetProp PatrolReadRate -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To reduce patrol read resource usage to 2% in order to minimize the performance impact<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpSetProp PatrolReadRate 2 -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To disable automatic patrol read<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpPR -Dsbl -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To start a manual patrol read scan<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; megacli -AdpPR -Start -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To stop a patrol read scan<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpPR -Stop -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If your system is not connected to a UPS, you should disable the physical disk cache in order to prevent data loss.<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -LDGetProp EnDskCache -LAll -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To enable it (only do this if you have a UPS and redundant power supplies)<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -LDGetProp DisDskCache -LAll -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Detail about disks<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -ShowSummary -aALL<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To Check patrol read warnings<\/p>\n\n\n\n<p>&nbsp; &nbsp;&nbsp;megacli -AdpEventLog -GetSinceReboot -warning -fatal -a0\n\n<\/p>\n\n\n\n<p>Command to check RAID type RAID0 or RAID1 or RAID10<\/p>\n\n\n<p>[root@testsrc]<\/p>\n\n\n\n<p># megacli -LDInfo -L0 -a0 |grep -i raid<br \/>\nName                :Raid10<br \/>\nRAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0<br \/><\/p>\n\n\n<p>[root@testsrc]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MegaCli introduced by LSI is a command line administration of LSI MegaRaid controllers .With megacli we can create physical raids, gather info about raids and monitor raids.MegaCLI provided by LSI is the most cryptic command line utility in existence.Dell PowerEdge servers uses the LSI MegaRAID controllers Installation Download and Install MegaCli and other supportive toolsInside [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[30],"tags":[74,75,76],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-centos","tag-centos7","tag-megacli","tag-raid"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install MegaCLI on centos7<\/title>\n<meta name=\"description\" content=\"How to install MegaCli on centos7, Command to install MegaCli command on CentOS 7, How to detect RAID status using MegaCli\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install MegaCLI on centos7\" \/>\n<meta property=\"og:description\" content=\"How to install MegaCli on centos7, Command to install MegaCli command on CentOS 7, How to detect RAID status using MegaCli\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-12T10:43:03+00:00\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/\",\"name\":\"How to install MegaCLI on centos7\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"datePublished\":\"2019-05-12T10:43:03+00:00\",\"dateModified\":\"2019-05-12T10:43:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"description\":\"How to install MegaCli on centos7, Command to install MegaCli command on CentOS 7, How to detect RAID status using MegaCli\",\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install MegaCli on Centos7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install MegaCLI on centos7","description":"How to install MegaCli on centos7, Command to install MegaCli command on CentOS 7, How to detect RAID status using MegaCli","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/","og_locale":"en_US","og_type":"article","og_title":"How to install MegaCLI on centos7","og_description":"How to install MegaCli on centos7, Command to install MegaCli command on CentOS 7, How to detect RAID status using MegaCli","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-05-12T10:43:03+00:00","author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/","name":"How to install MegaCLI on centos7","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"datePublished":"2019-05-12T10:43:03+00:00","dateModified":"2019-05-12T10:43:03+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"description":"How to install MegaCli on centos7, Command to install MegaCli command on CentOS 7, How to detect RAID status using MegaCli","breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-install-megacli-on-centos7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install MegaCli on Centos7"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":0,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}