Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
RAID
(edit)
Revision as of 18:08, 7 February 2019
539 bytes added
,
18:08, 7 February 2019
→Replace Failed Drive
Line 118:
Line 118:
== LVM and RAID Cheatsheet ==
== LVM and RAID Cheatsheet ==
https://gist.github.com/plepe/52ecc9f18efb32c68d18
https://gist.github.com/plepe/52ecc9f18efb32c68d18
+
== Add HOT SPARE drive ==
+
mdadm --add /dev/md0 /dev/sdh1
+
hdparm -S 180 /dev/[sh]d[a-z] # makes disks to stop spining after 15 mins of inactivity
+
Add this command to the end of the file /etc/rc.d/rc.local to ensure that it is executed every time the system is booted:
+
+
<nowiki>#!/bin/sh
+
#
+
# This script will be executed *after* all the other init scripts.
+
# You can put your own initialization stuff in here if you don't
+
# want to do the full Sys V style init stuff.
+
+
touch /var/lock/subsys/local
+
hdparm -S 180 /dev/[sh]d[a-z]</nowiki>
+
== Replace Failed Drive ==
== Replace Failed Drive ==
* Identify the failed drive with mdadm -D /dev/md0
* Identify the failed drive with mdadm -D /dev/md0
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version