Is there any way to get a drive temperature using MegaCLI or any other utility? Like "tw_cli /cx/px show temperature" in 3ware.

OS: Solaris x86.

link|improve this question

54% accept rate
feedback

3 Answers

You could try accessing the SMART data with smartmontools. According to their docs, LSI is supported.

link|improve this answer
Unfortunately not in Solaris – disserman Oct 10 '09 at 15:45
smartmontools in Solaris, or LSI Megaraid support in Solaris? – Xorlev Oct 16 '09 at 22:18
smartmontools. and LSI megaraid. according of the response from the LSI support, standard megaraid utilites are unable to get temperatures yet. In Linux it's possible with smartmontools (told by the author, but in practice neither -d 3ware,N with 3ware nor -d megaraid,N with LSI cards work properly) – disserman Oct 17 '09 at 11:45
disserman: I have a 3ware controller with SLES 11, and it's working fine here. – SvenW Oct 17 '09 at 20:23
Partly commenting in case I need to find this later :) On Linux, Smartmontools doesn't seem to work with newer SAS LSI raid controllers, but a small kernel hack exposes the drives so that you can run smartmontools. Possibly dangerous. Don't do it ;) in drivers/scsi/megaraid/megaraid_sas.c: Change megasas_slave_configure so that "if (sdev->channel < MEGASAS_MAX_PD_CHANNELS && sdev->type == TYPE_DISK)" performs "sdev->no_uld_attach = 1; sdev->writeable = 0;" instead of "return -ENXIO;" Then run smartctl -a /dev/sgX on the new sg devices. – Casey Dec 16 '09 at 23:56
feedback

I found some documentation on the MegaRaidCLI, check out page 176. Does running MegaCli –PDInfo -PhysDrv[E0:S0,E1:S1....] -aN|-a0,1,2|-aALL (with proper parameters) return the temperature? I really couldn't find much else.

e.g., MegaCli -PhysDrv[E0:S0] -aALL?

link|improve this answer
Nope. -pdinfo includes only some very elementary SMART data. – Insyte Oct 16 '09 at 23:14
feedback

With megacli 8.02.16 (and maybe older versions, who knows), I found this info per-drive with:

megacli -PDInfo -aALL

Each drive has a line like:

Drive Temperature :26C (78.80 F)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.