# RAID Controller device 확인
[root@localhost ~]# lspci -v |grep LSI
03:00.0 RAID bus controller: LSI Logic / Symbios Logic LSI MegaSAS 9260 (rev 05)
# MegaCli 설치(srvadmin-storelib와 충돌나기에 강제로 설치)
Download :
http://www.lsi.com/products/storagecomponents/Pages/MegaRAIDSAS9260-8i.aspx
[root@localhost ~]# rpm -ivh --nodeps --force Lib_Utils-1.00-09.noarch.rpm
Preparing... ########################################### [100%]
Installing....
1:Lib_Utils ########################################### [100%]
[root@localhost ~]# rpm -ivh MegaCli-8.02.21-1.noarch.rpm
Preparing... ########################################### [100%]
1:MegaCli ########################################### [100%]
# MegaCli로 컨트롤러 세부정보 확인
[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL
Adapter #0
==============================================================================
Versions
================
Product Name : PERC H700 Integrated
Serial No : 16301CS
FW Package Build: 12.10.2-0004
Mfg. Data
================
Mfg. Date : 06/11/11
Rework Date : 06/11/11
Revision No : A04
Battery FRU : N/A
Image Versions in Flash:
================
BIOS Version : 3.18.00_4.09.05.00_0x0416A000
FW Version : 2.100.03-1405
Preboot CLI Version: 04.04-010:#008
Ctrl-R Version : 2.02-0025.1
NVDATA Version : 2.07.03-0003
Boot Block Version : 2.02.00.00-0000
BOOT Version : 01.250.04.219
Pending Images in Flash
================
None
PCI Info
================
Controller Id : 0000
Vendor Id : 1000
Device Id : 0079
SubVendorId : 1028
SubDeviceId : 1f17
Host Interface : PCIE
Number of Frontend Port: 0
Device Interface : PCIE
Number of Backend Port: 8
Port : Address
0 4433221107000000
1 4433221104000000
2 4433221105000000
3 0000000000000000
4 0000000000000000
5 0000000000000000
6 0000000000000000
7 0000000000000000
HW Configuration
================
SAS Address : 5782bcb044716f00
BBU : Present
Alarm : Absent
NVRAM : Present
Serial Debugger : Present
Memory : Present
Flash : Present
Memory Size : 512MB
TPM : Absent
On board Expander: Absent
Upgrade Key : Absent
Temperature sensor for ROC : Absent
Temperature sensor for controller : Absent
Settings
================
Current Time : 15:41:8 4/9, 2012
Predictive Fail Poll Interval : 300sec
Interrupt Throttle Active Count : 16
Interrupt Throttle Completion : 50us
Rebuild Rate : 30%
PR Rate : 30%
BGI Rate : 30%
Check Consistency Rate : 30%
Reconstruction Rate : 30%
Cache Flush Interval : 4s
Max Drives to Spinup at One Time : 4
Delay Among Spinup Groups : 12s
Physical Drive Coercion Mode : 128MB
Cluster Mode : Disabled
Alarm : Disabled
Auto Rebuild : Enabled
Battery Warning : Enabled
Ecc Bucket Size : 15
Ecc Bucket Leak Rate : 1440 Minutes
Restore HotSpare on Insertion : Disabled
Expose Enclosure Devices : Disabled
Maintain PD Fail History : Disabled
Host Request Reordering : Enabled
Auto Detect BackPlane Enabled : SGPIO/i2c SEP
Load Balance Mode : Auto
Use FDE Only : Yes
Security Key Assigned : No
Security Key Failed : No
Security Key Not Backedup : No
Default LD PowerSave Policy : Controller Defined
Maximum number of direct attached drives to spin up in 1 min : 0
Auto Enhanced Import : No
Any Offline VD Cache Preserved : No
Allow Boot with Preserved Cache : No
Disable Online Controller Reset : No
PFK in NVRAM : No
Use disk activity for locate : No
POST delay : 90 seconds
Capabilities
================
RAID Level Supported : RAID0, RAID1, RAID5, RAID6, RAID00, RAID10, RAID50, RAID60, PRL 11, PRL 11 with spanning, PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span
Supported Drives : SAS, SATA
Allowed Mixing:
Mix in Enclosure Allowed
Status
================
ECC Bucket Count : 0
Limitations
================
Max Arms Per VD : 32
Max Spans Per VD : 8
Max Arrays : 128
Max Number of VDs : 64
Max Parallel Commands : 1008
Max SGE Count : 60
Max Data Transfer Size : 8192 sectors
Max Strips PerIO : 42
Max LD per array : 16
Min Strip Size : 8 KB
Max Strip Size : 1.0 MB
Max Configurable CacheCade Size: 0 GB
Current Size of CacheCade : 0 GB
Current Size of FW Cache : 394 MB
Device Present
================
Virtual Drives : 2
Degraded : 0
Offline : 0
Physical Devices : 4
Disks : 3
Critical Disks : 0
Failed Disks : 0
Supported Adapter Operations
================
Rebuild Rate : Yes
CC Rate : Yes
BGI Rate : Yes
Reconstruct Rate : Yes
Patrol Read Rate : Yes
Alarm Control : Yes
Cluster Support : No
BBU : Yes
Spanning : Yes
Dedicated Hot Spare : Yes
Revertible Hot Spares : Yes
Foreign Config Import : Yes
Self Diagnostic : Yes
Allow Mixed Redundancy on Array : No
Global Hot Spares : Yes
Deny SCSI Passthrough : No
Deny SMP Passthrough : No
Deny STP Passthrough : No
Support Security : Yes
Snapshot Enabled : No
Support the OCE without adding drives : Yes
Support PFK : No
Support PI : No
Support Boot Time PFK Change : No
Disable Online PFK Change : No
Support Shield State : No
Block SSD Write Disk Cache Change: No
Supported VD Operations
================
Read Policy : Yes
Write Policy : Yes
IO Policy : Yes
Access Policy : Yes
Disk Cache Policy : Yes
Reconstruction : Yes
Deny Locate : No
Deny CC : No
Allow Ctrl Encryption: No
Enable LDBBM : Yes
Support Breakmirror : No
Power Savings : No
Supported PD Operations
================
Force Online : Yes
Force Offline : Yes
Force Rebuild : Yes
Deny Force Failed : No
Deny Force Good/Bad : No
Deny Missing Replace : No
Deny Clear : No
Deny Locate : No
Support Temperature : No
Disable Copyback : No
Enable JBOD : No
Enable Copyback on SMART : No
Enable Copyback to SSD on SMART Error : No
Enable SSD Patrol Read : No
PR Correct Unconfigured Areas : Yes
Enable Spin Down of UnConfigured Drives : No
Disable Spin Down of hot spares : Yes
Spin Down time : 30
T10 Power State : No
Error Counters
================
Memory Correctable Errors : 0
Memory Uncorrectable Errors : 0
Cluster Information
================
Cluster Permitted : No
Cluster Active : No
Default Settings
================
Phy Polarity : 0
Phy PolaritySplit : 0
Background Rate : 30
Strip Size : 64kB
Flush Time : 4 seconds
Write Policy : WB
Read Policy : Adaptive
Cache When BBU Bad : Disabled
Cached IO : No
SMART Mode : Mode 6
Alarm Disable : Yes
Coercion Mode : 128MB
ZCR Config : Unknown
Dirty LED Shows Drive Activity : No
BIOS Continue on Error : No
Spin Down Mode : None
Allowed Device Type : SAS/SATA Mix
Allow Mix in Enclosure : Yes
Allow HDD SAS/SATA Mix in VD : No
Allow SSD SAS/SATA Mix in VD : No
Allow HDD/SSD Mix in VD : No
Allow SATA in Cluster : No
Max Chained Enclosures : 1
Disable Ctrl-R : No
Enable Web BIOS : No
Direct PD Mapping : Yes
BIOS Enumerate VDs : Yes
Restore Hot Spare on Insertion : No
Expose Enclosure Devices : No
Maintain PD Fail History : No
Disable Puncturing : No
Zero Based Enclosure Enumeration : Yes
PreBoot CLI Enabled : No
LED Show Drive Activity : Yes
Cluster Disable : Yes
SAS Disable : No
Auto Detect BackPlane Enable : SGPIO/i2c SEP
Use FDE Only : Yes
Enable Led Header : No
Delay during POST : 2
EnableCrashDump : No
Disable Online Controller Reset : No
EnableLDBBM : Yes
Un-Certified Hard Disk Drives : Allow
Treat Single span R1E as R10 : Yes
Max LD per array : 16
Power Saving option : All power saving options are disabled
Default spin down time in minutes: 30
Enable JBOD : No
TTY Log In Flash : No
Auto Enhanced Import : No
BreakMirror RAID Support : No
Disable Join Mirror : No
Enable Shield State : No
Time taken to detect CME : 60s
Exit Code: 0x00
# MegaCli로 컨트롤러 간단정보 확인
[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aALL
System
Operating System: Linux version 2.6.18-238.el5
Driver Version: 00.00.04.31-RH1
CLI Version: 8.02.21
Hardware
Controller
ProductName : PERC H700 Integrated(Bus 0, Dev 0)
SAS Address : 5782bcb044716f00
FW Package Version: 12.10.2-0004
Status : Need Attention
BBU
BBU Type : BBU
Status : Pack Missing
Enclosure
Product Id : BACKPLANE
Type : SES
Status : OK
PD
Connector : 00<Internal><Encl Pos 0 >: Slot 0
Vendor Id : ATA
Product Id : FUJITSU MHZ2250B
State : Online
Disk Type : SATA,Hard Disk Device
Capacity : 232.375 GB
Power State : Active
Connector : 00<Internal><Encl Pos 0 >: Slot 2
Vendor Id : ATA
Product Id : TOSHIBA MK2561GS
State : Online
Disk Type : SATA,Hard Disk Device
Capacity : 232.375 GB
Power State : Active
Connector : 00<Internal><Encl Pos 0 >: Slot 3
Vendor Id : ATA
Product Id : TOSHIBA MK2561GS
State : Unconfigured Good
Disk Type : SATA,Hard Disk Device
Capacity : 232.375 GB
Power State : Active
Storage
Virtual Drives
Virtual drive : Target Id 0 ,VD name Virtual Disk 0
Size : 232.375 GB
State : Optimal
RAID Level : 0
Virtual drive : Target Id 1 ,VD name Virtual Disk 1
Size : 232.375 GB
State : Optimal
RAID Level : 0
Exit Code: 0x00
# Load Balance Mode 확인
[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpGetProp -LoadBalanceMode -a0
Adapter 0: Load Balance Mode: Auto
Exit Code: 0x00
# Learn Cycle Disable 설정
[root@localhost ~]# vi h700_bbu_autolearn.sh
#!/bin/sh
TMPFILE=$(mktemp -p /tmp bbu.relearn.off.XXXXXXXXXX) || exit 1
echo "autoLearnMode=1" > $TMPFILE # or =0 to enable the bbu relearn
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -SetBbuProperties -f$TMPFILE -a0
rm -f $TMPFILE
[root@localhost ~]# ./h700_bbu_autolearn.sh
Adapter 0: Set BBU Properties Succeeded.
Exit Code: 0x00
# Learn Cycle Disable 확인
[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -a0
BBU Properties for Adapter: 0
Auto Learn Period: 7776000 Sec
Next Learn time: 395069866 Sec
Learn Delay Interval:0 Hours
Auto-Learn Mode: Disabled
Exit Code: 0x00
[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -a0 | grep "Auto-Learn Mode: Disabled"
Auto-Learn Mode: Disabled
>>
Auto Learn Mode : Default
>>
Auto Learn Mode : Disable
# cron job 설정
: off-peak time에 crontable 설정하여 learn을 강제로 start 시킴
[root@localhost ~]# omconfig storage battery action=startlearn controller=0 battery=0
Command successful!