Discussion:
[smartmontools-support] Testing In RAID Array (MegaRaid)
Chuck Charleston
9 years ago
Permalink
Hi All,

Just started researching about Raid / disk monitoring and I seem to be
finding a mix of conflicting and outdated data for my setup.

Server is running 4 x Intel SSD behind a MegaRaid Controller. I am trying
to configure smartd to to run daily short tests and once a week on Sunday
at midnight a long test on each drive.

I see this example:

#/dev/sdc -d 3ware,0 -a -s L/../../7/01
#/dev/sdc -d 3ware,1 -a -s L/../../7/02
#/dev/sdc -d 3ware,2 -a -s L/../../7/03
#/dev/sdc -d 3ware,3 -a -s L/../../7/04

Which would be suitable so something like

#/dev/twa -d sat+megaraid,4 -a -s L/../../7/01 -m ***@example.com
#/dev/twa -d sat+megaraid,5 -a -s L/../../7/02
#/dev/twa -d sat+megaraid,6 -a -s L/../../7/03
#/dev/twa -d sat+megaraid,7 -a -s L/../../7/04


Does that look somewhat correct? I am still researching the other flags so
I know what to add for when it should send me an e-mail.

Here are some outputs from my server:


***@s1 [~]# MegaCli -PDList -aAll | egrep 'Slot\ Number|Device\
Id|Inquiry\ Data|Raw|Firmware\ state' | sed 's/Slot/\nSlot/g'

Slot Number: 0
Device Id: 6
Raw Size: 745.211 GB [0x5d26ceb0 Sectors]
Firmware state: Online
Inquiry Data: BTWH509503MB800CGN INTEL SSDSC2BB800H4
D2010380

Slot Number: 1
Device Id: 7
Raw Size: 745.211 GB [0x5d26ceb0 Sectors]
Firmware state: Online
Inquiry Data: BTWH509602D3800CGN INTEL SSDSC2BB800H4
D2010380

Slot Number: 2
Device Id: 5
Raw Size: 745.211 GB [0x5d26ceb0 Sectors]
Firmware state: Online
Inquiry Data: BTWH5096026M800CGN INTEL SSDSC2BB800H4
D2010380

Slot Number: 3
Device Id: 4
Raw Size: 745.211 GB [0x5d26ceb0 Sectors]
Firmware state: Online
Inquiry Data: BTWH509504CR800CGN INTEL SSDSC2BB800H4
D2010380


***@s1 [~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.5T 0 disk
├─sda1 8:1 0 1004.5K 0 part
├─sda2 8:2 0 39.1G 0 part /
├─sda3 8:3 0 1.4T 0 part /home
└─sda4 8:4 0 8G 0 part [SWAP]
loop0 7:0 0 3G 0 loop /tmp


Regards,
Chuck
G McAlister
9 years ago
Permalink
My set up is similar to yours except that I have a 3ware 9690SA RAID card.



I found that the port numbers were NOT persistent across reboots (WTF?), so I had to write a script (available on request) to re-generate smartd.conf on boot (smartctl –scan doesn’t get you the port numbers).



My smartd.conf entries look like this:

/dev/twa0 -d 3ware,12 -H -l selftest -l error -s (O/../.././(00|06|12|18)|S/../.././01|L../../5/01) -m ***@bar.com

/dev/twa0 -d 3ware,13 -H -l selftest -l error -s (O/../.././(00|06|12|18)|S/../.././01|L../../5/01) -m ***@bar.com

/dev/twa0 -d 3ware,15 -H -l selftest -l error -s (O/../.././(00|06|12|18)|S/../.././01|L../../5/01) -m ***@bar.com <mailto:***@bar.com>



Good luck,

Graham.



From: Chuck Charleston [mailto:***@gmail.com]
Sent: 16 February 2016 16:15
To: smartmontools-***@lists.sourceforge.net
Subject: [smartmontools-support] Testing In RAID Array (MegaRaid)



Hi All,



Just started researching about Raid / disk monitoring and I seem to be finding a mix of conflicting and outdated data for my setup.



Server is running 4 x Intel SSD behind a MegaRaid Controller. I am trying to configure smartd to to run daily short tests and once a week on Sunday at midnight a long test on each drive.



I see this example:



#/dev/sdc -d 3ware,0 -a -s L/../../7/01

#/dev/sdc -d 3ware,1 -a -s L/../../7/02

#/dev/sdc -d 3ware,2 -a -s L/../../7/03

#/dev/sdc -d 3ware,3 -a -s L/../../7/04



Which would be suitable so something like



#/dev/twa -d sat+megaraid,4 -a -s L/../../7/01 -m ***@example.com <mailto:***@example.com>

#/dev/twa -d sat+megaraid,5 -a -s L/../../7/02

#/dev/twa -d sat+megaraid,6 -a -s L/../../7/03

#/dev/twa -d sat+megaraid,7 -a -s L/../../7/04





Does that look somewhat correct? I am still researching the other flags so I know what to add for when it should send me an e-mail.



Here are some outputs from my server:





***@s1 [~]# MegaCli -PDList -aAll | egrep 'Slot\ Number|Device\ Id|Inquiry\ Data|Raw|Firmware\ state' | sed 's/Slot/\nSlot/g'



Slot Number: 0

Device Id: 6

Raw Size: 745.211 GB [0x5d26ceb0 Sectors]

Firmware state: Online

Inquiry Data: BTWH509503MB800CGN INTEL SSDSC2BB800H4 D2010380



Slot Number: 1

Device Id: 7

Raw Size: 745.211 GB [0x5d26ceb0 Sectors]

Firmware state: Online

Inquiry Data: BTWH509602D3800CGN INTEL SSDSC2BB800H4 D2010380



Slot Number: 2

Device Id: 5

Raw Size: 745.211 GB [0x5d26ceb0 Sectors]

Firmware state: Online

Inquiry Data: BTWH5096026M800CGN INTEL SSDSC2BB800H4 D2010380



Slot Number: 3

Device Id: 4

Raw Size: 745.211 GB [0x5d26ceb0 Sectors]

Firmware state: Online

Inquiry Data: BTWH509504CR800CGN INTEL SSDSC2BB800H4 D2010380





***@s1 [~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 1.5T 0 disk

├─sda1 8:1 0 1004.5K 0 part

├─sda2 8:2 0 39.1G 0 part /

├─sda3 8:3 0 1.4T 0 part /home

└─sda4 8:4 0 8G 0 part [SWAP]

loop0 7:0 0 3G 0 loop /tmp





Regards,

Chuck

Loading...