{"id":131,"date":"2018-11-26T13:01:32","date_gmt":"2018-11-26T11:01:32","guid":{"rendered":"https:\/\/mattyb.co.za\/?p=131"},"modified":"2018-11-26T13:01:32","modified_gmt":"2018-11-26T11:01:32","slug":"linux-raid-mdadm-lockout","status":"publish","type":"post","link":"https:\/\/mattyb.co.za\/index.php\/2018\/11\/26\/linux-raid-mdadm-lockout\/","title":{"rendered":"Linux Raid Mdadm lockout."},"content":{"rendered":"<p>MDADM &#8211; Meta Device Admin. Apparently.<\/p>\n<p>Sometimes, you wanna trash your RAID. But Linux starts it up while you&#8217;re not looking, and locks your block devices.<\/p>\n<p>In a terminal, lets break it.<br \/>\nsudo -i<br \/>\nHere we become root, not user.<\/p>\n<p>cat \/proc\/mdstat<br \/>\nHere, we can see our RAID devices that are started. eg, md126 md127 etc.<\/p>\n<p>mdadm &#8211;manage &#8211;stop \/dev\/md127<br \/>\nHere, we manage the device, and use the stop flag, telling MDADM to stop the raid device. With this done, now we can work on the underlying disks. You&#8217;ll need to do this for each raid device.<\/p>\n<p>Have fun.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MDADM &#8211; Meta Device Admin. Apparently. Sometimes, you wanna trash your RAID. But Linux starts it up while you&#8217;re not looking, and locks your block devices. In a terminal, lets break it. sudo -i Here we become root, not user. cat \/proc\/mdstat Here, we can see our RAID devices that are started. eg, md126 md127 &hellip; <a href=\"https:\/\/mattyb.co.za\/index.php\/2018\/11\/26\/linux-raid-mdadm-lockout\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Linux Raid Mdadm lockout.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p71fL2-27","jetpack-related-posts":[{"id":137,"url":"https:\/\/mattyb.co.za\/index.php\/2019\/05\/30\/fakeraid-linux-and-r1soft\/","url_meta":{"origin":131,"position":0},"title":"FakeRAID, Linux, and R1Soft","author":"admin","date":"May 30, 2019","format":false,"excerpt":"FakeRAID and Linux aren't really friends. What is fakeRAID? In the last few years, a number of hardware products have come onto the market claiming to be IDE or SATA RAID controllers. These have shown up in a number of desktop\/workstation motherboards and lower-end servers. Virtually none of these are\u2026","rel":"","context":"In \"backups\"","block_context":{"text":"backups","link":"https:\/\/mattyb.co.za\/index.php\/tag\/backups\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2019\/05\/Screenshot-2019-05-30-at-16.34.22.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":19,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/10\/05\/rage-2015-post-4\/","url_meta":{"origin":131,"position":1},"title":"rAge 2015 Post 4","author":"admin","date":"October 5, 2015","format":false,"excerpt":"So, it is in motion! The event is slowly being built up, and its quite impressive to see. From the LAN side, we have put out the 12KM odd of LAN cable, and the associated power cables. Nothing is live quite yet, and we await the networking equipment, but this\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":147,"url":"https:\/\/mattyb.co.za\/index.php\/2020\/08\/12\/routers-are-secure-right-asus-lyra-hacked\/","url_meta":{"origin":131,"position":2},"title":"Routers are secure, right? Asus Lyra hacked.","author":"admin","date":"August 12, 2020","format":false,"excerpt":"We take the small things for granted in life. Like, say breathing. Or, the security on our embedded network devices... As our devices become more and more complicated and sophisticated, we use them in the hope that so are their security features become more advanced at the same time. Sure,\u2026","rel":"","context":"In \"asus\"","block_context":{"text":"asus","link":"https:\/\/mattyb.co.za\/index.php\/tag\/asus\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2020\/08\/image.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2020\/08\/image.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mattyb.co.za\/wp-content\/uploads\/2020\/08\/image.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6,"url":"https:\/\/mattyb.co.za\/index.php\/2015\/09\/26\/rage-lan-2015\/","url_meta":{"origin":131,"position":3},"title":"rAge LAN 2015 Post 1","author":"admin","date":"September 26, 2015","format":false,"excerpt":"So I am a part of building the NAG LAN at the biggest Gaming Expo in South Africa. rAge My main purpose at the event will be to set-up the the LAN cache, as done here by Multiplay. I have 2 x the below to work with: 2 x Intel\u2026","rel":"","context":"In &quot;rAge 2015&quot;","block_context":{"text":"rAge 2015","link":"https:\/\/mattyb.co.za\/index.php\/category\/rage-2015\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/mattyb.co.za\/index.php\/2018\/01\/20\/cpanel-nginx-hack-mirror-sometimes-breaks\/","url_meta":{"origin":131,"position":4},"title":"CPanel NGINX hack-mirror, sometimes breaks","author":"admin","date":"January 20, 2018","format":false,"excerpt":"We had a few clients complaining about corrupted downloads from our mirror when trying to run upcp CPanel update, so I checked it out. It looks like the NGINX Proxy Cache had corruption, and it had a file \"http:\/\/cpproxy.afrixx.com\/cpanelsync\/11.68.0.26\/binaries\/linux-c7-x86_64\/bin\/setsiteip.xz\" that was invalid, and corrupted based on the expected checksum. I've\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":2,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattyb.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}