Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

4 Answers 4

On a newer version of MegaCLI (get it from http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=migr-5082327) you will get drive temp, with -PDList, tested on my servers. The additional problem would be the fact that for controller temp (also important) you need to have a temp sensor in place (it seems it does not come with one, at least AdpAllInfo says that)

share|improve this answer

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

share|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. –  SvW 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

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)

share|improve this answer

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?

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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