Created
May 10, 2017 21:21
-
-
Save Voronenko/878fdbc1744e9ffdc12da05600008683 to your computer and use it in GitHub Desktop.
Prepare dell raid for smartctl inspection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Detect Raid info: | |
`lspci` | |
```03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS-3 3108 [Invader] (rev 02)``` | |
RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 05) | |
Note: on some servers - starts from 0, on some from 1 | |
MegaRAID: | |
===================================== | |
/etc/smartd.conf | |
/dev/sda -d megaraid,0 -a -s S/../.././01 | |
/dev/sda -d megaraid,1 -a -s S/../.././02 | |
/dev/sda -d megaraid,2 -a -s S/../.././03 | |
/dev/sda -d megaraid,4 -a -s S/../.././04 | |
sudo service smartmontools restart | |
======================================== | |
/etc/munin/plugin-conf.d/smart_ | |
[smart_*] | |
user root | |
group disk | |
[smart_sda-0] | |
env.smartargs -d megaraid,0 -a | |
[smart_sda-1] | |
env.smartargs -d megaraid,1 -a | |
[smart_sda-2] | |
env.smartargs -d megaraid,2 -a | |
[smart_sda-3] | |
env.smartargs -d megaraid,3 -a | |
======================================== | |
Create symlinks in /etc/munin/plugins | |
smart_sda-0 -> /usr/share/munin/plugins/smart_ | |
smart_sda-1 -> /usr/share/munin/plugins/smart_ | |
smart_sda-2 -> /usr/share/munin/plugins/smart_ | |
smart_sda-3 -> /usr/share/munin/plugins/smart_ | |
ln -s /usr/share/munin/plugins/smart_ smart_sda-0 | |
ln -s /usr/share/munin/plugins/smart_ smart_sda-1 | |
ln -s /usr/share/munin/plugins/smart_ smart_sda-2 | |
ln -s /usr/share/munin/plugins/smart_ smart_sda-3 | |
======================================== | |
Validate on host itself | |
raw disk check | |
smartctl -d megaraid,0 -a /dev/sda (1,2,3) | |
munin-run smart_sda-0 (1,2,3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment