Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
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.4 Testing the setup for real - hardware fault. ==== Now, let’s test this setup. Unplug one of the drives and see if you get a failure alert. Obviously, don’t do this after you start storing anything important on here. We do this in the build phase of our system to make sure it works, BEFORE trusting this system with anything important. # 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, unplug the drive from the running system.</li></ol> <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 after plugging it back in..</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="step-6-backup-strategy"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
FUTO:Copyrights
for details).
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)