Changes

Jump to navigation Jump to search
539 bytes added ,  18:08, 7 February 2019
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

Navigation menu