{"id":3711,"date":"2020-12-10T16:50:29","date_gmt":"2020-12-10T22:50:29","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3711"},"modified":"2020-12-10T16:53:00","modified_gmt":"2020-12-10T22:53:00","slug":"where-is-my-software-raid-raid-information-on-fedora","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/where-is-my-software-raid-raid-information-on-fedora\/","title":{"rendered":"Where is my software RAID?!"},"content":{"rendered":"\n<p>There are a few different ways to view RAID information on Fedora.  Here are two commands that can help.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Print Mdadm config<\/h2>\n\n\n\n<p>You can copy and past the following command to print the mdadm configuration.<\/p>\n\n\n\n<pre id=\"block-d91f37cc-51eb-4b6f-8c41-5f48471b7f3c\" class=\"wp-block-preformatted\">cat \/etc\/mdadm.conf<\/pre>\n\n\n\n<p>It should return something similar to the following.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cat \/etc\/mdadm.conf\n# mdadm.conf written out by anacondaMAILADDR root\nAUTO +imsm +1.x -all\nARRAY \/dev\/md\/Boot level=raid0 num-devices=6 UUID=21ce258a:015d0dd4:90d5b80e:ab04b7f7\nARRAY \/dev\/md\/Root level=raid0 num-devices=6 UUID=4be32ad0:f3aa77bd:139d749d:4a6aab60 <\/pre>\n\n\n\n<p>We see from the above output that we have two raid arrays.  Both RAID 0 over 6 drives. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Print mdstats<\/h2>\n\n\n\n<p>You can show the mdstats by running<\/p>\n\n\n\n<pre id=\"block-2b853a2b-a5db-457a-96dd-98c1fb64b326\" class=\"wp-block-preformatted\">cat \/proc\/mdstat<\/pre>\n\n\n\n<p>Should get output similar to the following.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cat \/proc\/mdstat\n Personalities : [raid0]\n md126 : active raid0 sdc2[0] sdf2[5] sde2[4] sdd2[1] sda2[2] sdb2[3]\n       5856552960 blocks super 1.2 512k chunks\n md127 : active raid0 sdc1[0] sdf1[5] sde1[4] sdd1[1] sdb1[3] sda1[2]\n       3133440 blocks super 1.2 512k chunks\n unused devices: <\/pre>\n\n\n\n<p>This shows us the RAID size.  About 5TB on one and 3GB on the other.  The 3GB is used for the boot partition.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Notes<\/h2>\n\n\n\n<p>Apparently there is a difference between &#8220;mdadm&#8221; and &#8220;dm-raid&#8221;<br>Mdadm is for managing and creating software raids, while dm-raid interacts if a device like a laptop has a &#8220;fake RAID&#8221;<\/p>\n\n\n\n<p><a href=\"https:\/\/superuser.com\/questions\/721795\/how-fake-raid-communicates-with-operating-systemlinux\/721796#721796\">https:\/\/superuser.com\/questions\/721795\/how-fake-raid-communicates-with-operating-systemlinux\/721796#721796<\/a><br><a href=\"https:\/\/stackoverflow.com\/questions\/23164384\/what-is-the-difference-between-dm-and-md-in-linux-kernel\">https:\/\/stackoverflow.com\/questions\/23164384\/what-is-the-difference-between-dm-and-md-in-linux-kernel<\/a><\/p>\n\n\n\n<p>For more information on managing RAID with Mdadm, you can refer here.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-fedora-magazine wp-block-embed-fedora-magazine\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"0XYqffqCFF\"><a href=\"https:\/\/fedoramagazine.org\/managing-raid-arrays-with-mdadm\/\">Managing RAID arrays with mdadm<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Managing RAID arrays with mdadm&#8221; &#8212; Fedora Magazine\" src=\"https:\/\/fedoramagazine.org\/managing-raid-arrays-with-mdadm\/embed\/#?secret=Bs8QrsV5MY#?secret=0XYqffqCFF\" data-secret=\"0XYqffqCFF\" width=\"584\" height=\"329\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a few different ways to view RAID information on Fedora. Here are two commands that can help. 1. Print Mdadm config You can copy and past the following command to print the mdadm configuration. cat \/etc\/mdadm.conf It should &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/where-is-my-software-raid-raid-information-on-fedora\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,3],"tags":[1131,1132,19,7,1133,1135,488,1134],"class_list":["post-3711","post","type-post","status-publish","format-standard","hentry","category-fedora-2","category-linux","tag-dm-raid","tag-dmraid","tag-fedora","tag-linux-2","tag-mdadm","tag-mdstat","tag-raid","tag-software-raid"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3711"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3711\/revisions"}],"predecessor-version":[{"id":3727,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3711\/revisions\/3727"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}