{"id":2277,"date":"2023-03-25T07:56:22","date_gmt":"2023-03-25T07:56:22","guid":{"rendered":"https:\/\/cdblog.cdstealer.com\/?p=2277"},"modified":"2023-04-07T07:33:49","modified_gmt":"2023-04-07T06:33:49","slug":"storcli-basics","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=2277","title":{"rendered":"Storcli Basics"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure id=\"id1\">\n<table style=\"width: 40%;\">\n<thead>\n<tr>\n<th>Description<\/th>\n<th>Command<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Show all adaptors<\/td>\n<td><code>storcli&nbsp;\/call&nbsp;show<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show all virtual drives<\/td>\n<td><code>storcli&nbsp;\/call\/vall&nbsp;show<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show all physical drives<\/td>\n<td><code>storcli&nbsp;\/call\/dall&nbsp;show&nbsp;all<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show all enclosures<\/td>\n<td><code>storcli&nbsp;\/call\/eall&nbsp;show<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show all BBU<\/td>\n<td><code>storcli&nbsp;\/call\/bbu&nbsp;show<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show all CacheVault<\/td>\n<td><code>storcli&nbsp;\/call\/cv&nbsp;show<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show all foreign configuration<\/td>\n<td><code>storcli&nbsp;\/call\/fall&nbsp;show<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show Rebuild state<\/td>\n<td><code>storcli&nbsp;\/c0\/e8\/s0&nbsp;show&nbsp;rebuild<\/code><\/td>\n<\/tr>\n<tr>\n<td>Show Boot Drive<\/td>\n<td><code>storcli&nbsp;\/c0&nbsp;show&nbsp;bootdrive<\/code><\/td>\n<\/tr>\n<tr>\n<td>Delete all foreign configuration<\/td>\n<td><code>storcli&nbsp;\/call\/fall&nbsp;delete<\/code><\/td>\n<\/tr>\n<tr>\n<td>Delete all virtual drives from controller #0<\/td>\n<td><code>storcli&nbsp;\/c0\/vall&nbsp;delete<\/code><\/td>\n<\/tr>\n<tr>\n<td>Delete all virtual drives from all controllers<\/td>\n<td><code>storcli&nbsp;\/call\/vall&nbsp;delete<\/code><\/td>\n<\/tr>\n<tr>\n<td>Locate physical disk<\/td>\n<td><code>storcli&nbsp;\/c0\/e8\/s2&nbsp;start&nbsp;locate<\/code><\/td>\n<\/tr>\n<tr>\n<td>Set Controller0 to JBOD mode<\/td>\n<td><code>storcli&nbsp;\/c0&nbsp;set&nbsp;jbod=on<\/code><\/td>\n<\/tr>\n<tr>\n<td>Set Boot Drive<\/td>\n<td><code>storcli&nbsp;\/c0\/e252\/s0&nbsp;set&nbsp;bootdrive=on<\/code><\/td>\n<\/tr>\n<tr>\n<td>Add disk to array<\/td>\n<td><code>storcli&nbsp;\/c0\/e32\/s12&nbsp;insert&nbsp;dg=0&nbsp;array=0&nbsp;row=0<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<\/div><\/div>\n\n\n\n<H2>Replace disk in the RAID<\/H2><p>If a disk has failed but the RAID is still up, you can replace the failed disk. This example adds the disk in enclosure 8 slot 0 to DriveGroup 0 array 0 row 0 where the failed disk was before. The failed disk has to be in a Missing state before it can be replaced:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">storcli \/c0\/e8\/s0 insert dg=0 array=0 row=0<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Locate Dying Disks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>storcli \/c0\/eALL\/sALL show all | grep -e 'State :' -e \"Predictive Failure Count\"<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description Command Show all adaptors storcli&nbsp;\/call&nbsp;show Show all virtual drives storcli&nbsp;\/call\/vall&nbsp;show Show all physical drives storcli&nbsp;\/call\/dall&nbsp;show&nbsp;all Show all enclosures storcli&nbsp;\/call\/eall&nbsp;show Show all BBU storcli&nbsp;\/call\/bbu&nbsp;show Show all CacheVault storcli&nbsp;\/call\/cv&nbsp;show Show all foreign configuration storcli&nbsp;\/call\/fall&nbsp;show Show Rebuild state storcli&nbsp;\/c0\/e8\/s0&nbsp;show&nbsp;rebuild Show Boot Drive storcli&nbsp;\/c0&nbsp;show&nbsp;bootdrive Delete all foreign configuration storcli&nbsp;\/call\/fall&nbsp;delete Delete all virtual drives from controller #0 storcli&nbsp;\/c0\/vall&nbsp;delete Delete &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=2277\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Storcli Basics<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[327,88,326],"class_list":["post-2277","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-megaraid","tag-raid","tag-storcli"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2277"}],"version-history":[{"count":17,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2277\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/2277\/revisions\/2313"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}