Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Categories
Random page
Top Contributors
Recent changes
Contribute
Create a page
How to help
Wiki policy
Adapt videos to articles
Articles in need of work
Help
Frequently asked questions
Join the discord!
Help about MediaWiki
Consumer_Action_Taskforce
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Futotemporarywikipage
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
Purge cache
General
What links here
Related changes
Special pages
Page information
Cargo data
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 5.3 Testing the setup - software run first. ==== Letβs simulate a fault condition on <code>/dev/md126</code> which is what I set up as the RAID1 array for the operating system installation; this is where we created the logical volume for <code>/</code> # Check the status of it as it is now: <pre>sudo mdadm --detail /dev/md126</pre> <ol start="2" style="list-style-type: decimal;"> <li>If it shows up as healthy, run the script to make sure we do not have false positives.</li></ol> <pre>sudo -u root /root/mdadm_alert.sh</pre> <ol start="3" style="list-style-type: decimal;"> <li>If no false positives, simulate fault condition:</li></ol> <pre>sudo mdadm /dev/md126 --fail /dev/sdb3</pre> <code>/dev/sdb3</code> was the drive & partition that was used in my RAID array. Yours may differ, refer to the output of <code>mdadm --detail</code> to see how your RAID array is comprised, and then fail one of the two devices. <ol start="4" style="list-style-type: decimal;"> <li>Run the monitoring script to test again.</li></ol> <pre>sudo -u root /root/mdadm_alert.sh</pre> You should receive an email. Check spam. <ol start="5" style="list-style-type: decimal;"> <li>Undo what you did, un-fail the drive.</li></ol> <pre>sudo mdadm /dev/md126 --remove /dev/sdb3 sudo mdadm /dev/md126 --add /dev/sdb3</pre> <ol start="6" style="list-style-type: decimal;"> <li>Watch it re-sync. Donβt mess with anything until it is fully resynced.</li></ol> <pre>watch cat /proc/mdstat</pre> <span id="testing-the-setup-for-real---hardware-fault."></span>
Summary:
Please note that all contributions to Consumer_Action_Taskforce are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (see
Consumer Action Taskforce:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)