General Hard Disk Information
Drive Group Information, Disk behind RAID card
http://www.lsi.com/channel/products/storagecomponents/Pages/6GBSATA_SASRAIDCards.aspx
http://store.lsi.com/store.cfm/MegaRAID_Controllers/9260_Controllers/LSI00201/
http://www.lsi.com/channel/products/storagecomponents/Pages/MegaRAIDSAS9260-4i.aspx
根據 smartctl 的說明, 應該用 3ware or megaraid 這兩個參數就可以看到後面的硬碟才對.. 不過還沒試成功
最後用了 LSI 官網的工具 MegaCli
http://lzj0470.iteye.com/blog/1399221
http://www.osslab.com.tw/index.php?title=Storage/Enterprise/SAS%E8%88%87RAID/LSI
http://www.osslab.com.tw/Storage/Enterprise/SAS%E8%88%87RAID/LSI/MegaRAID_CLI%E7%B0%A1%E4%BB%8B
http://www.weithenn.org/cgi-bin/wiki.pl?MegaCLI-%E6%9F%A5%E7%9C%8B_PERC_5i_RAID_Controller_%E7%8B%80%E6%85%8B#Heading10
不過要注意的是這個工具不支援 3.0 以後的 Kernel, 但我在 Ubuntu 官網找到暫解
http://askubuntu.com/questions/112455/megaraid-sas-raid-controller
指令集
http://kb.lsi.com/KnowledgebaseArticle16516.aspx
Reference:
http://www.cyberciti.biz/faq/find-hard-disk-hardware-specs-on-linux/
http://www.cyberciti.biz/tips/sdparm-linux-scsi-device-attribute.html
http://unix.stackexchange.com/questions/5085/how-to-see-disk-details-like-manufacturer-in-linux
http://freejabber.com/2012/01/30/monitoring-your-raid-array-drives-and-standalone-drives-in-ubuntu-linux-using-smartmontools/
http://www.cyberciti.biz/faq/unix-linux-freebsd-3w-9xxx-smartctl-check-hard-disk-command/
- lshw
root@ubuntu:~$ lshw | less | grep *- *-core *-firmware *-cpu:0 *-cache:0 *-cache:1 *-cache:2 *-memory:0 *-bank:0 *-bank:1 *-bank:2 *-bank:3 *-bank:4 *-bank:5 *-pci:0 *-pci:0 *-network:0 *-network:1 DISABLED *-pci:1 *-network:0 DISABLED *-network:1 DISABLED *-pci:2 *-pci:3 *-storage *-enclosure UNCLAIMED *-disk:0 *-disk:1 *-disk:2 *-disk:3 *-disk:4 *-disk:5 *-disk:6 *-disk:7 root@ubuntu:~$ lshw -class disk *-disk description: ATA Disk product: ST9250610NS vendor: Seagate physical id: 0.0.0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: SN01 serial: 9XE00BTT size: 232GiB (250GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 signature=0003cad9 root@ubuntu:~$ lshw -short -C disk H/W path Device Class Description ======================================================== /0/100/5/0/2.0.0 /dev/sdb disk 999GB MR9260-4i /0/100/5/0/2.1.0 /dev/sdc disk 1999GB MR9260-4i /0/100/5/0/2.2.0 /dev/sdd disk 999GB MR9260-4i /0/100/5/0/2.3.0 /dev/sde disk 1999GB MR9260-4i /0/100/5/0/2.4.0 /dev/sdf disk 299GB MR9260-4i /0/100/5/0/2.5.0 /dev/sdg disk 239GB MR9260-4i /0/100/5/0/2.6.0 /dev/sdh disk 299GB MR9260-4i /0/100/5/0/2.7.0 /dev/sdi disk 119GB MR9260-4i /0/100/1f.2/0.0.0 /dev/sda disk 250GB ST9250610NS
- hdparm
root@ubuntu:~$ hdparm -I /dev/sda /dev/sda: ATA device, with non-removable media Model Number: ST9250610NS Serial Number: 9XE00BTT Firmware Revision: SN01 Transport: Serial, SATA Rev 3.0 Standards: Used: unknown (minor revision code 0x0029) Supported: 8 7 6 5 Likely used: 8 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 488397168 Logical/Physical Sector size: 512 bytes device size with M = 1024*1024: 238475 MBytes device size with M = 1000*1000: 250059 MBytes (250 GB) cache/buffer size = unknown Nominal Media Rotation Rate: 7200 Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, no device specific minimum R/W multiple sector transfer: Max = 16 Current = ? Recommended acoustic management value: 254, current value: 0 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * Host Protected Area feature set * WRITE_BUFFER command * READ_BUFFER command * DOWNLOAD_MICROCODE SET_MAX security extension * 48-bit Address feature set * Device Configuration Overlay feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name Write-Read-Verify feature set * WRITE_UNCORRECTABLE_EXT command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE * unknown 119[7] * Gen1 signaling speed (1.5Gb/s) * Gen2 signaling speed (3.0Gb/s) * Gen3 signaling speed (6.0Gb/s) * Native Command Queueing (NCQ) * Phy event counters * unknown 76[15] Device-initiated interface power management * Software settings preservation * SMART Command Transport (SCT) feature set * SCT LBA Segment Access (AC2) * SCT Error Recovery Control (AC3) * SCT Features Control (AC4) * SCT Data Tables (AC5) unknown 206[7] unknown 206[12] (vendor specific) Security: Master password revision code = 65534 supported not enabled not locked not frozen not expired: security count supported: enhanced erase 48min for SECURITY ERASE UNIT. 48min for ENHANCED SECURITY ERASE UNIT. Logical Unit WWN Device Identifier: 5000c50035319eee NAA : 5 IEEE OUI : 000c50 Unique ID : 035319eee Checksum: correct
- dmesg
root@ubuntu:~$ dmesg | grep scsi [ 3.735457] scsi0 : ahci [ 3.735609] scsi1 : ahci [ 3.735747] scsi2 : ahci [ 3.735885] scsi3 : ahci [ 3.736024] scsi4 : ahci [ 3.736164] scsi5 : ahci [ 4.178643] scsi 0:0:0:0: Direct-Access ATA ST9250610NS SN01 PQ: 0 ANSI: 5 [ 4.178960] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 5.950530] scsi6 : LSI SAS based MegaRAID driver [ 5.953670] scsi 6:0:4:0: Direct-Access ATA INTEL SSDSA2BW30 0362 PQ: 0 ANSI: 5 [ 5.965343] scsi 6:0:5:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 5.977082] scsi 6:0:6:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 5.988839] scsi 6:0:7:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 6.000583] scsi 6:0:8:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 6.012259] scsi 6:0:9:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 6.013360] scsi 6:0:10:0: Direct-Access ATA INTEL SSDSA2BZ30 0362 PQ: 0 ANSI: 5 [ 6.034102] scsi 6:0:11:0: Direct-Access ATA INTEL SSDSC2BW24 400i PQ: 0 ANSI: 5 [ 6.034771] scsi 6:0:12:0: Enclosure Wistron LSI2x20 0900 PQ: 0 ANSI: 5 [ 6.046667] scsi 6:0:13:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 6.058300] scsi 6:0:14:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 6.070055] scsi 6:0:15:0: Direct-Access ATA SAMSUNG HE103SJ 0001 PQ: 0 ANSI: 5 [ 6.091376] scsi 6:0:16:0: Direct-Access ATA D2CSTK251M11-012 2.15 PQ: 0 ANSI: 5 [ 6.107324] scsi 6:2:0:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.107554] scsi 6:2:1:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.107775] scsi 6:2:2:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.107981] scsi 6:2:3:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.108194] scsi 6:2:4:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.108406] scsi 6:2:5:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.108635] scsi 6:2:6:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.108864] scsi 6:2:7:0: Direct-Access LSI MR9260-4i 2.70 PQ: 0 ANSI: 5 [ 6.124449] scsi 6:0:12:0: Attached scsi generic sg1 type 13 [ 6.124992] sd 6:2:0:0: Attached scsi generic sg2 type 0 [ 6.125425] sd 6:2:1:0: Attached scsi generic sg3 type 0 [ 6.125765] sd 6:2:2:0: Attached scsi generic sg4 type 0 [ 6.126186] sd 6:2:3:0: Attached scsi generic sg5 type 0 [ 6.126550] sd 6:2:4:0: Attached scsi generic sg6 type 0 [ 6.126999] sd 6:2:5:0: Attached scsi generic sg7 type 0 [ 6.127455] sd 6:2:6:0: Attached scsi generic sg8 type 0 [ 6.127962] sd 6:2:7:0: Attached scsi generic sg9 type 0
- smartctl
root@ubuntu:~$ smartctl -d ata -a -i /dev/sda smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-23-generic] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Device Model: ST9250610NS Serial Number: 9XE00BTT LU WWN Device Id: 5 000c50 035319eee Firmware Version: SN01 User Capacity: 250,059,350,016 bytes [250 GB] Sector Size: 512 bytes logical/physical Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 4 Local Time is: Mon Apr 30 11:38:24 2012 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED See vendor-specific Attribute list for marginal Attributes. General SMART Values: Offline data collection status: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: ( 634) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 1) minutes. Extended self-test routine recommended polling time: ( 49) minutes. Conveyance self-test routine recommended polling time: ( 2) minutes. SCT capabilities: (0x10bd) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 081 066 044 Pre-fail Always - 120497634 3 Spin_Up_Time 0x0003 097 096 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 134 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 060 059 030 Pre-fail Always - 12888092699 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 1924 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 133 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 188 Command_Timeout 0x0032 100 095 000 Old_age Always - 73015558161 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 071 041 045 Old_age Always In_the_past 29 (0 117 29 23) 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 117 193 Load_Cycle_Count 0x0032 099 099 000 Old_age Always - 2509 194 Temperature_Celsius 0x0022 029 059 000 Old_age Always - 29 (0 19 0 0) 195 Hardware_ECC_Recovered 0x001a 117 100 000 Old_age Always - 120497634 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.
- sdparm
root@ubuntu:~$ sdparm /dev/sda /dev/sda: ATA ST9250610NS SN01 Read write error recovery mode page: AWRE 1 ARRE 0 PER 0 Caching (SBC) mode page: WCE 1 RCD 0 Control mode page: SWP 0
- sfdisk
root@ubuntu:~$ sfdisk -s /dev/sda: 244198584 /dev/sdc: 1952448512 /dev/sdd: 976224256 /dev/sde: 1952448512 /dev/sdb: 976224256 /dev/sdg: 233897984 /dev/sdf: 292487168 /dev/sdh: 292487168 /dev/sdi: 116686848 total: 7037103288 blocks
- hwinfo
root@ubuntu:~$ hwinfo --disk > hal.1: read hal dataprocess 2975: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file ../../dbus/dbus-errors.c line 282. This is normally a bug in some application using the D-Bus library. libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files 88: IDE 00.0: 10600 Disk [Created at block.243] Unique ID: 3OOL.cxF1BuTlEDD Parent ID: w7Y8.mL+OcbU+PEA SysFS ID: /class/block/sda SysFS BusID: 0:0:0:0 SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0 Hardware Class: disk Model: "ST9250610NS" Device: "ST9250610NS" Revision: "SN01" Serial ID: "9XE00BTT" Driver: "ahci", "sd" Driver Modules: "ahci" Device File: /dev/sda Device Files: /dev/sda, /dev/disk/by-id/ata-ST9250610NS_9XE00BTT, /dev/disk/by-id/scsi-SATA_ST9250610NS_9XE00BTT, /dev/disk/by-id/wwn-0x5000c50035319eee, /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 Device Number: block 8:0-8:15 Geometry (Logical): CHS 30401/255/63 Size: 488397168 sectors a 512 bytes Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #32 (SATA controller)
Drive Group Information, Disk behind RAID card
- sg3_utils
root@ubuntu:~$ sudo apt-get install sg3-utils root@ubuntu:~$ sg_map /dev/sg0 /dev/sda /dev/sg1 /dev/sg2 /dev/sdb /dev/sg3 /dev/sdc /dev/sg4 /dev/sdd /dev/sg5 /dev/sde /dev/sg6 /dev/sdf /dev/sg7 /dev/sdg /dev/sg8 /dev/sdh /dev/sg9 /dev/sdi root@ubuntu:~$ sginfo /dev/sg0 INQUIRY response (cmd: 0x12) ---------------------------- Device Type 0 Vendor: ATA Product: ST9250610NS Revision level: SN01
- MegaRAID 資訊
http://www.lsi.com/channel/products/storagecomponents/Pages/6GBSATA_SASRAIDCards.aspx
http://store.lsi.com/store.cfm/MegaRAID_Controllers/9260_Controllers/LSI00201/
http://www.lsi.com/channel/products/storagecomponents/Pages/MegaRAIDSAS9260-4i.aspx
root@ubuntu:~$ modinfo megaraid_sas filename: /lib/modules/3.2.0-23-generic/kernel/drivers/scsi/megaraid/megaraid_sas.ko description: LSI MegaRAID SAS Driver author: megaraidlinux@lsi.com version: 00.00.06.12-rc1 license: GPL srcversion: B0EE8D562F66C8547CAF07E alias: pci:v00001000d0000005Dsv*sd*bc*sc*i* alias: pci:v00001000d0000005Bsv*sd*bc*sc*i* alias: pci:v00001028d00000015sv*sd*bc*sc*i* alias: pci:v00001000d00000413sv*sd*bc*sc*i* alias: pci:v00001000d00000071sv*sd*bc*sc*i* alias: pci:v00001000d00000073sv*sd*bc*sc*i* alias: pci:v00001000d00000079sv*sd*bc*sc*i* alias: pci:v00001000d00000078sv*sd*bc*sc*i* alias: pci:v00001000d0000007Csv*sd*bc*sc*i* alias: pci:v00001000d00000060sv*sd*bc*sc*i* alias: pci:v00001000d00000411sv*sd*bc*sc*i* depends: intree: Y vermagic: 3.2.0-23-generic SMP mod_unload modversions parm: poll_mode_io:Complete cmds from IO path, (default=0) (int) parm: max_sectors:Maximum number of sectors per IO command (int) parm: msix_disable:Disable MSI-X interrupt handling. Default: 0 (int)
根據 smartctl 的說明, 應該用 3ware or megaraid 這兩個參數就可以看到後面的硬碟才對.. 不過還沒試成功
root@ubuntu:~$ smartctl -a -d 3ware,0 /dev/sd1 root@ubuntu:~$ smartctl -a -d megaraid,0 /dev/sd1
最後用了 LSI 官網的工具 MegaCli
http://lzj0470.iteye.com/blog/1399221
http://www.osslab.com.tw/index.php?title=Storage/Enterprise/SAS%E8%88%87RAID/LSI
http://www.osslab.com.tw/Storage/Enterprise/SAS%E8%88%87RAID/LSI/MegaRAID_CLI%E7%B0%A1%E4%BB%8B
http://www.weithenn.org/cgi-bin/wiki.pl?MegaCLI-%E6%9F%A5%E7%9C%8B_PERC_5i_RAID_Controller_%E7%8B%80%E6%85%8B#Heading10
不過要注意的是這個工具不支援 3.0 以後的 Kernel, 但我在 Ubuntu 官網找到暫解
http://askubuntu.com/questions/112455/megaraid-sas-raid-controller
指令集
http://kb.lsi.com/KnowledgebaseArticle16516.aspx
root@ubuntu:~$ unzip 8.02.21_MegaCLI.zip root@ubuntu:~$ cd 8.02.21_Linux_MegaCLI root@ubuntu:~8.02.21_Linux_MegaCLI$ unzip MegaCliLin.zip root@ubuntu:~8.02.21_Linux_MegaCLI$ sudo apt-get install alien root@ubuntu:~8.02.21_Linux_MegaCLI$ alien -k Lib_Utils-1.00-09.noarch.rpm lib-utils_1.00-09_all.deb generated root@ubuntu:~8.02.21_Linux_MegaCLI$ alien -k MegaCli-8.02.21-1.noarch.rpm megacli_8.02.21-1_all.deb generated root@ubuntu:~8.02.21_Linux_MegaCLI$ dpkg -i *.deb root@ubuntu:~8.02.21_Linux_MegaCLI$ cd /opt/MegaRAID/MegaCli/ root@ubuntu:/opt/MegaRAID/MegaCli$ sudo setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 -v MegaCLI SAS RAID Management Tool Ver 8.02.21 Oct 21, 2011 (c)Copyright 2011, LSI Corporation, All Rights Reserved. Exit Code: 0x00 root@ubuntu:/opt/MegaRAID/MegaCli$ sudo setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 -adpCount Controller Count: 1. Exit Code: 0x01 root@ubuntu:/opt/MegaRAID/MegaCli$ sudo setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL Enclosure Device ID: 12 Slot Number: 8 Drive's postion: DiskGroup: 3, Span: 0, Arm: 2 Enclosure position: 0 Device Id: 15 WWN: 50024E920543493B Sequence Number: 2 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SATA Raw Size: 931.512 GB [0x74706db0 Sectors] Non Coerced Size: 931.012 GB [0x74606db0 Sectors] Coerced Size: 931.0 GB [0x74600000 Sectors] Firmware state: Online, Spun Up Device Firmware Level: 0001 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x5000ae40000168ae Connected Port Number: 0(path0) Inquiry Data: S2JBJ9BB500090 SAMSUNG HE103SJ 1AJ10001 FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 3.0Gb/s Link Speed: 3.0Gb/s Media Type: Hard Disk Device Drive Temperature : N/A PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive's write cache : Disabled Drive's NCQ setting : Disabled Port-0 : Port status: Active Port's Linkspeed: 3.0Gb/s Drive has flagged a S.M.A.R.T alert : No root@ubuntu:/opt/MegaRAID/MegaCli$ sudo setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll Virtual Drive: 3 (Target Id: 3) Name : RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3 Size : 1.818 TB Parity Size : 931.0 GB State : Optimal Strip Size : 64 KB Number Of Drives : 3 Span Depth : 1 Default Cache Policy: WriteThrough, ReadAdaptive, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAdaptive, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk's Default Encryption Type : None Is VD Cached: No root@ubuntu:/opt/MegaRAID/MegaCli$ sudo setarch x86_64 --uname-2.6 /opt/MegaRAID/MegaCli/MegaCli64 -h MegaCLI SAS RAID Management Tool Ver 8.02.21 Oct 21, 2011 (c)Copyright 2011, LSI Corporation, All Rights Reserved. NOTE: The following options may be given at the end of any command below: [-Silent] [-AppLogFile filename] [-NoLog] [-page[N]] [-] is optional. N - Number of lines per page. MegaCli -v MegaCli -help|-h|? MegaCli -adpCount MegaCli -AdpSetProp {CacheFlushInterval -val} | { RebuildRate -val} | {PatrolReadRate -val} | {BgiRate -val} | {CCRate -val} | {ForceSGPIO -val} | {ReconRate -val} | {SpinupDriveCount -val} | {SpinupDelay -val} | {CoercionMode -val} | {ClusterEnable -val} | {PredFailPollInterval -val} | {BatWarnDsbl -val} | {EccBucketSize -val} | {EccBucketLeakRate -val} | {AbortCCOnError -val} | AlarmEnbl | AlarmDsbl | AlarmSilence | {SMARTCpyBkEnbl -val} | {SSDSMARTCpyBkEnbl -val} | NCQEnbl | NCQDsbl | {MaintainPdFailHistoryEnbl -val} | {RstrHotSpareOnInsert -val} | {DisableOCR -val} | {BootWithPinnedCache -val} | {enblPI -val} |{PreventPIImport -val} | AutoEnhancedImportEnbl | AutoEnhancedImportDsbl | {EnblSpinDownUnConfigDrvs -val}|{UseDiskActivityforLocate -val} -aN|-a0,1,2|-aALL | {ExposeEnclDevicesEnbl -val} | {SpinDownTime -val} | {SpinUpEncDrvCnt -val} | {SpinUpEncDelay -val} | {Perfmode -val} -aN|-a0,1,2|-aALL MegaCli -AdpSetProp -AutoDetectBackPlaneDsbl -val -aN|-a0,1,2|-aALL val - 0=Enable Auto Detect of SGPIO and i2c SEP. 1=Disable Auto Detect of SGPIO. 2=Disable Auto Detect of i2c SEP. 3=Disable Auto Detect of SGPIO and i2c SEP. MegaCli -AdpSetProp -CopyBackDsbl -val -aN|-a0,1,2|-aALL val - 0=Enable Copyback. 1=Disable Copyback. MegaCli -AdpSetProp -EnableJBOD -val -aN|-a0,1,2|-aALL val - 0=Disable JBOD mode. 1=Enable JBOD mode. MegaCli -AdpSetProp -DsblCacheBypass -val -aN|-a0,1,2|-aALL val - 0=Enable Cache Bypass. 1=Disable Cache Bypass. MegaCli -AdpSetProp -LoadBalanceMode -val -aN|-a0,1,2|-aALL val - 0=Auto Load balance mode. 1=Disable Load balance mode. MegaCli -AdpSetProp -UseFDEOnlyEncrypt -val -aN|-a0,1,2|-aALL val - 0=FDE and controller encryption (if HW supports) is allowed. 1=Only support FDE encryption, disallow controller encryption. MegaCli -AdpSetProp -PrCorrectUncfgdAreas -val -aN|-a0,1,2|-aALL val - 0= Correcting Media error during PR is disabled. 1=Correcting Media error during PR is allowed. MegaCli -AdpSetProp -DsblSpinDownHSP -val -aN|-a0,1,2|-aALL val - 0= Spinning down the Hot Spare is enabled. 1=Spinning down the Hot Spare is disabled. MegaCli -AdpSetProp -DefaultLdPSPolicy -Automatic| -None | -Maximum| -MaximumWithoutCaching -aN|-a0,1,2|-aALL MegaCli -AdpSetProp -DisableLdPS -interval n1 -time n2 -aN|-a0,1,2|-aALL where n1 is the number of hours beginning at time n2 where n2 is the number of minutes from 12:00am MegaCli -AdpSetProp -ENABLEEGHSP -val -aN|-a0,1,2|-aALL val - 0= Disabled Emergency GHSP. 1= Enabled Emergency GHSP. MegaCli -AdpSetProp -ENABLEEUG -val -aN|-a0,1,2|-aALL val - 0= Disabled Emergency UG as Spare. 1= Enabled Emergency UG as Spare. MegaCli -AdpSetProp -ENABLEESMARTER -val -aN|-a0,1,2|-aALL val - 0= Disabled Emergancy Spare as Smarter. 1= Enabled Emergancy Spare as Smarter. MegaCli -AdpSetProp -DPMenable -val -aN|-a0,1,2|-aALL val - 0=Disable Drive Performance Monitoring . 1=Enable Drive Performance Monitoring. MegaCli -AdpSetProp -SupportSSDPatrolRead -val -aN|-a0,1,2|-aALL val - 0=Disable Patrol read for SSD drives . 1=Enable Patrol read for SSD drives. MegaCli -AdpGetProp CacheFlushInterval | RebuildRate | PatrolReadRate | ForceSGPIO | BgiRate | CCRate | ReconRate | SpinupDriveCount | SpinupDelay | CoercionMode | ClusterEnable | PredFailPollInterval | BatWarnDsbl | EccBucketSize | EccBucketLeakRate | EccBucketCount | AbortCCOnError | AlarmDsply | SMARTCpyBkEnbl | SSDSMARTCpyBkEnbl | NCQDsply | MaintainPdFailHistoryEnbl | RstrHotSpareOnInsert | EnblSpinDownUnConfigDrvs | DisableOCR | BootWithPinnedCache | enblPI |PeventPIImport | AutoEnhancedImportDsply | AutoDetectBackPlaneDsbl | CopyBackDsbl | LoadBalanceMode | UseFDEOnlyEncrypt | WBSupport | EnableJBOD | DsblCacheBypass | ExposeEnclDevicesEnbl | SpinDownTime | PrCorrectUncfgdAreas | UseDiskActivityforLocate | ENABLEEGHSP | ENABLEEUG | ENABLEESMARTER | Perfmode | -DPMenable -aN|-a0,1,2|-aALL | DefaultLdPSPolicy | DisableLdPsInterval | DisableLdPsTime | SpinUpEncDrvCnt | SpinUpEncDelay | PrCorrectUncfgdAreas | DsblSpinDownHSP | SupportSSDPatrolRead -aN|-a0,1,2|-aALL MegaCli -AdpAllInfo -aN|-a0,1,2|-aALL MegaCli -AdpGetTime -aN|-a0,1,2|-aALL MegaCli -AdpSetTime yyyymmdd hh:mm:ss -aN MegaCli -AdpSetVerify -f fileName -aN|-a0,1,2|-aALL MegaCli -AdpBIOS -Enbl |-Dsbl | -SOE | -BE | EnblAutoSelectBootLd | DsblAutoSelectBootLd | -Dsply -aN|-a0,1,2|-aALL MegaCli -AdpBootDrive {-Set {-Lx | -physdrv[E0:S0]}} | {-Unset {-Lx | -physdrv[E0:S0]}} |-Get -aN|-a0,1,2|-aALL MegaCli -AdpAutoRbld -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALL MegaCli -AdpCacheFlush -aN|-a0,1,2|-aALL MegaCli -AdpPR -Dsbl|EnblAuto|EnblMan|Start|Suspend|Resume|Stop|Info|SSDPatrolReadEnbl |SSDPatrolReadDsbl |{SetDelay Val}|{-SetStartTime yyyymmdd hh}|{maxConcurrentPD Val} -aN|-a0,1,2|-aALL MegaCli -AdpCcSched -Dsbl|-Info|{-ModeConc | -ModeSeq [-ExcludeLD -LN|-L0,1,2] [-SetStartTime yyyymmdd hh ] [-SetDelay val ] } -aN|-a0,1,2|-aALL MegaCli -AdpCcSched -SetStartTime yyyymmdd hh -aN|-a0,1,2|-aALL MegaCli -AdpCcSched -SetDelay val -aN|-a0,1,2|-aALL MegaCli -FwTermLog -BBUoff|BBUoffTemp|BBUon|BBUGet|Dsply|Clear -aN|-a0,1,2|-aALL MegaCli -AdpAlILog -aN|-a0,1,2|-aALL MegaCli -AdpDiag [val] -aN|-a0,1,2|-aALL val - Time in second. MegaCli -AdpGetPciInfo -aN|-a0,1,2|-aALL MegaCli -AdpShutDown -aN|-a0,1,2|-aALL MegaCli -PDList -aN|-a0,1,2|-aALL MegaCli -PDGetNum -aN|-a0,1,2|-aALL MegaCli -pdInfo -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PDOnline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PDOffline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PDMakeGood -PhysDrv[E0:S0,E1:S1,...] | [-Force] -aN|-a0,1,2|-aALL MegaCli -PDMakeJBOD -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PDHSP {-Set [-Dedicated [-ArrayN|-Array0,1,2...]] [-EnclAffinity] [-nonRevertible]} |-Rmv -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PDRbld -Start|-Stop|-Suspend|-Resume|-ShowProg |-ProgDsply -PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PDClear -Start|-Stop|-ShowProg |-ProgDsply -PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PdLocate {[-start] | -stop} -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PdMarkMissing -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL MegaCli -PdGetMissing -aN|-a0,1,2|-aALL MegaCli -PdReplaceMissing -physdrv[E0:S0] -arrayA, -rowB -aN MegaCli -PdPrpRmv [-UnDo] -physdrv[E0:S0] -aN|-a0,1,2|-aALL MegaCli -EncInfo -aN|-a0,1,2|-aALL MegaCli -EncStatus -aN|-a0,1,2|-aALL MegaCli -PhyInfo -phyM -aN|-a0,1,2|-aALL MegaCli -PhySetLinkSpeed -phyM -speed -aN|-a0,1,2|-aALL MegaCli -PdFwDownload [offline][ForceActivate] {[-SataBridge] -PhysDrv[0:1] }|{-EncdevId[devId1]} -f <filename> -aN|-a0, 1,2|-aALL MegaCli -LDInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -LDSetProp {-Name LdNamestring} | -RW|RO|Blocked|RemoveBlocked | WT|WB|ForcedWB [-Immediate] |RA|NORA|ADRA | Cached|Direct | -EnDskCache|DisDskCache | CachedBadBBU|NoCachedBadBBU -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -LDSetPowerPolicy -Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -LDGetProp -Cache | -Access | -Name | -DskCache | -PSPolicy | Consistency -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL MegaCli -LDInit {-Start [-full]}|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL MegaCli -LDCC {-Start [-force]}|-Abort|-Suspend|-Resume|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL MegaCli -LDBI -Enbl|-Dsbl|-getSetting|-Abort|-Suspend|-Resume|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL MegaCli -LDRecon {-Start -rX [{-Add | -Rmv} -Physdrv[E0:S0,...]]}|-ShowProg|-ProgDsply -Lx -aN MegaCli -LdPdInfo -aN|-a0,1,2|-aALL MegaCli -LDGetNum -aN|-a0,1,2|-aALL MegaCli -LDBBMClr -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL MegaCli -getLdExpansionInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -LdExpansion -pN -dontExpandArray -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -GetBbtEntries -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -Cachecade -assign|-remove -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL MegaCli -CfgLdAdd -rX[E0:S0,E1:S1,...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU] [-szXXX [-szYYY ...]] [-strpszM] [-Hsp[E0:S0,...]] [-AfterLdX] [-Force]|[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI]-aN MegaCli -CfgCacheCadeAdd [-rX] -Physdrv[E0:S0,...] {-Name LdNamestring} [WT|WB|ForcedWB] [-assign -LX|L0,2,5..|LALL] -aN|-a0,1,2|-aALL MegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] -aN|-a0,1,2|-aALL MegaCli -CfgClr [-Force] -aN|-a0,1,2|-aALL MegaCli -CfgDsply -aN|-a0,1,2|-aALL MegaCli -CfgCacheCadeDsply -aN|-a0,1,2|-aALL MegaCli -CfgLdDel -LX|-L0,2,5...|-LALL [-Force] -aN|-a0,1,2|-aALL MegaCli -CfgCacheCadeDel -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALL MegaCli -CfgFreeSpaceinfo -aN|-a0,1,2|-aALL MegaCli -CfgSpanAdd -r10 -Array0[E0:S0,E1:S1] -Array1[E0:S0,E1:S1] [-ArrayX[E0:S0,E1:S1] ...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU] [-szXXX[-szYYY ...]][-strpszM][-AfterLdX][-Force]|[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN MegaCli -CfgSpanAdd -r50 -Array0[E0:S0,E1:S1,E2:S2,...] -Array1[E0:S0,E1:S1,E2:S2,...] [-ArrayX[E0:S0,E1:S1,E2:S2,...] ...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX][-Force]| [FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aNMegaCli -CfgSpanAdd -r60 -Array0[E0:S0,E1:S1,E2:S2,E3,S3...] -Array1[E0:S0,E1:S1,E2:S2,E3,S3...] [-ArrayX[E0:S0,E1:S1,E2:S2,E3,S3...] ...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX][-Force]| [FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aNMegaCli -CfgAllFreeDrv -rX [-SATAOnly] [-SpanCount XXX] [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU] [-strpszM] [-HspCount XX [-HspType -Dedicated|-EnclAffinity|-nonRevertible]]| [FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN MegaCli -CfgSave -f filename -aN MegaCli -CfgRestore -f filename -aN MegaCli -CfgForeign -Scan | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL MegaCli -CfgForeign -Dsply [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL MegaCli -CfgForeign -Preview [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL MegaCli -CfgForeign -Import [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL MegaCli -CfgForeign -Clear [x]|[-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL x - index of foreign configurations. Optional. All by default. MegaCli -AdpEventLog -GetEventLogInfo -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -GetEvents {-info -warning -critical -fatal} {-f <filename>} -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -GetSinceShutdown {-info -warning -critical -fatal} {-f <filename>} -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -GetSinceReboot {-info -warning -critical -fatal} {-f <filename>} -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -IncludeDeleted {-info -warning -critical -fatal} {-f <filename>} -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -GetLatest n {-info -warning -critical -fatal} {-f <filename>} -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -GetCCIncon -f <filename> -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALL MegaCli -AdpEventLog -Clear -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuStatus -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuDesignInfo -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuProperties -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -BbuLearn -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -BbuMfgSleep -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -BbuMfgSeal -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -getBbumodes -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -SetBbuProperties -f <filename> -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetGGEEPData offset [Hexaddress] NumBytes n -aN|-a0,1,2|-aALL MegaCli -AdpFacDefSet -aN MegaCli -AdpFwFlash -f filename [-NoSigChk] [-NoVerChk] [-FWTYPE n] -aN|-a0,1,2|-aALL MegaCli -AdpGetConnectorMode -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALL MegaCli -AdpSetConnectorMode -Internal|-External|-Auto -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALL MegaCli -PhyErrorCounters -aN|-a0,1,2|-aALL MegaCli -DirectPdMapping -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALL MegaCli -PDCpyBk -Start -PhysDrv[E0:S0,E1:S1] -aN|-a0,1,2|-aALL MegaCli -PDCpyBk -Stop|-Suspend|-Resume|-ShowProg|-ProgDsply -PhysDrv[E0:S0] -aN|-a0,1,2|-aALL MegaCli -PDInstantSecureErase -PhysDrv[E0:S0,E1:S1,...] | [-Force] -aN|-a0,1,2|-aALL MegaCli -CfgSpanAdd -rX -array0[E0:S1,E1:S1.....] array1[E0:S1,E1:S1.....] -szxxx -enblPI -aN|-a0,1,2|-aALL MegaCli -AdpSetVerify -f verify.txt -aN|-a0,1,2|-aALL MegaCli -LDMakeSecure -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL MegaCli -DestroySecurityKey | [-Force] -aN MegaCli -CreateSecurityKey -SecurityKey sssssssssss | [-Passphrase sssssssssss] |[-KeyID kkkkkkkkkkk] -aN MegaCli -CreateSecurityKey useEKMS -aN MegaCli -ChangeSecurityKey -OldSecurityKey sssssssssss | -SecurityKey sssssssssss| [-Passphrase sssssssssss] | [-KeyID kkkkkkkkkkk] -aN MegaCli -ChangeSecurityKey -SecurityKey sssssssssss| [-Passphrase sssssssssss] | [-KeyID kkkkkkkkkkk] -aN MegaCli -ChangeSecurityKey useEKMS -OldSecurityKey sssssssssss -aN MegaCli -GetKeyID [-PhysDrv[E0:S0]] -aN MegaCli -SetKeyID -KeyID kkkkkkkkkkk -aN MegaCli -VerifySecurityKey -SecurityKey sssssssssss -aN MegaCli -GetPreservedCacheList -aN|-a0,1,2|-aALL MegaCli -DiscardPreservedCache -Lx|-L0,1,2|-Lall -force -aN|-a0,1,2|-aALL sssssssssss - It must be between eight and thirty-two characters and contain at least one number, one lowercase letter, one uppercase letter and one non-alphanumeric character. kkkkkkkkkkk - Must be less than 256 characters. MegaCli -ShowSummary [-f filename] -aN MegaCli -ELF -GetSafeId -aN|-a0,1,2|-aALL MegaCli -ELF -ControllerFeatures -aN|-a0,1,2|-aALL MegaCli -ELF -Applykey key <-val> [Preview] -aN|-a0,1,2|-aALL MegaCli -ELF -TransferToVault -aN|-a0,1,2|-aALL MegaCli -ELF -DeactivateTrialKey -aN|-a0,1,2|-aALL MegaCli -ELF -ReHostInfo -aN|-a0,1,2|-aALL MegaCli -ELF -ReHostComplete -aN|-a0,1,2|-aALL MegaCli -LDViewMirror -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL MegaCli -LDJoinMirror -DataSrc <val> [-force] -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL MegaCli -SecureErase Start[ Simple| [Normal [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]| [Thorough [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]] | Stop | ShowProg | ProgDsply [-PhysDrv [E0:S0,E1:S1,...] | -Lx|-L0,1,2|-LALL] -aN|-a0,1,2|-aALL MegaCli -Version -Cli|-Ctrl|-Driver|-Pd -aN|-a0,1,2|-aALL MegaCli -Perfmon {-start -interval <val>} | {stop} | {-getresults -f <filename>} -aN MegaCli -DpmStat -Dsply {lct | hist | ra | ext } [-physdrv[E0:S0]] -aN|-a0,1,2|-aALL MegaCli -DpmStat -Clear {lct | hist | ra | ext } -aN|-a0,1,2|-aALL Note: The directly connected drives can be specified as [:S] Wildcard '?' can be used to specify the enclosure ID for the drive in the only enclosure without direct connected device or the direct connected drives with no enclosure in the system. Note:[-aALL] option assumes that the parameters specified are valid for all the Adapters. The following options may be given at the end of any command above: [-Silent] [-AppLogFile filename] [-NoLog] [-page[N]] [-] is optional. N - Number of lines per page.
Reference:
http://www.cyberciti.biz/faq/find-hard-disk-hardware-specs-on-linux/
http://www.cyberciti.biz/tips/sdparm-linux-scsi-device-attribute.html
http://unix.stackexchange.com/questions/5085/how-to-see-disk-details-like-manufacturer-in-linux
http://freejabber.com/2012/01/30/monitoring-your-raid-array-drives-and-standalone-drives-in-ubuntu-linux-using-smartmontools/
http://www.cyberciti.biz/faq/unix-linux-freebsd-3w-9xxx-smartctl-check-hard-disk-command/