Editing
RAID Cards
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Common CLI commands (megacli) == Reference:<br> http://tools.rapidsoft.de/perc/<br> http://linux.dell.com/files/whitepapers/solaris/Managing_PERC6_0714.pdf View rebuild progress for drive 1: megacli -PDRbld -ProgDsply -PhysDrv[1:1] -aALL View rebuild ETA for drive 1: megacli -PDRbld -ShowProg -PhysDrv[1:1] -aALL View rebuild rate megacli -AdpGetProp RebuildRate -Aall View info on logical drives and physical drives megacli -LdPdInfo -aALL Set drive 1 offline megacli -PDOffline -PhysDrv[1:1] –aAll Set drive 1 online megacli -PDOnline -PhysDrv[1:1] –aAll View info on logical drives megacli -LDInfo -Lall -aAll Setup a new raid1 config from drives 0,1 (works on 2950/Perc5/i/linux) megacli -CfgLdAdd -r1[1:0,1:1] WB ADRA Cached -a0 Show adapter info megacli adapallinfo a0 view logical drive config info megacli cfgdsply a0 view physical drive info for all drives megacli pdlist a0 When you create a raid0 mirror you know it’s raid0 per the following in ldinfo: RAID Level: Primary-0, Secondary-0, RAID Level Qualifier-0 For raid1 it’s: RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0 Remove LD1 megacli cfglddel L1 a0 Init a disk megacli ldinit start L1 a0 Check consistency (jail7 freezes when trying to perform): megacli -LDCC -Start -L0 -a0 Watch consistency check in realtime: megacli -LDCC -ProgDsply -L0 -a0 See consistency check progress snapshot: megacli -LDCC -ShowProg -L0 -a0 List adapter serial number and firmware level megacli -AdpAllInfo -aALL Testing Battery megacli -AdpBbuCmd -aAll Enclosure info megacli -EncInfo -aALL Controller log megacli -FwTermLog -Dsply -aALL RAID array status megacli -LDInfo -Lall -aALL Patrol Read - The megacli tool has a 'patrol read' function which provides for regular media scanning. To show the current settings, megacli -AdpPR -Info -aALL To perform a manual scan, megacli -AdpPR -Start -aALL The progress can be monitored using the 'Info' option. megacli -AdpPR -Info -aALL Battery Monitoring megacli -AdpBbuCmd -aALL Logical Device Consistency Check megacli -LDCC -Start -LALL -aALL megacli -LDCC -ShowProg -LALL -aALL Power Supply Monitoring - The power supply failures are logged through the event log. megacli -AdpEventLog -GetEvents -f /tmp/event.log -a1 This writes a set of event entries into the file. RAID 0 to RAID 1 conversion for system disks Delete the second raid0 : megacli -CfgLdDel L1 -a0 Migrate to raid1 : megacli -LDRecon start r1 [Add PhysDrv[32:1]] L0 -a0 Check progression : megacli -LDRecon ShowProg L0 -a0 Check the logical drive information and note that it still displays as a 1-disk RAID0 but it also displays the reconfiguration in progress under “Ongoing Progresses” field. The VD configuration information changes after the Raid Level Migration has completed successfully. megacli -LDInfo -Lall -aALL Converting from RAID-5/Spare to RAID-6 megacli -PDHSP -Rmv -PhysDrv [32:5] -a0 megacli -CfgLdDel L1 -a0 megacli -CfgLdAdd -r6[32:2,32:3,32:4,32:5] -a0
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information