megaraid:howto_megaraid
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
megaraid:howto_megaraid [2018/07/31 11:15] – créée ronan | megaraid:howto_megaraid [2023/06/13 13:19] (Version actuelle) – ghusson | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
https:// | https:// | ||
+ | <code bash> | ||
+ | wget -O - https:// | ||
+ | echo "" | ||
+ | echo "# hwraidle-vert.net raid hardwares management tools" >> / | ||
+ | echo "deb http:// | ||
+ | apt-get update | ||
+ | apt-get install megaraid-status megacli | ||
+ | </ | ||
+ | [[https:// | ||
+ | <code bash> | ||
+ | megaraidsas-status | ||
+ | megasasctl | ||
+ | megacli -AdpBbuCmd -GetBbuStatus -a0 | ||
+ | megacli -LDInfo -L0 -a0 | ||
+ | megacli -LDInfo -L1 -a0 | ||
+ | megacli -LDInfo -Lall -aall | ||
+ | megacli -AdpAllInfo -aall | ||
+ | megacli -PDList -aall | less | ||
+ | </ | ||
+ | ===== disable disk cache ===== | ||
+ | <code bash> | ||
+ | megacli -LDSetProp DisDskCache -LAll -aAll | ||
+ | </ | ||
+ | ===== enable disk cache ===== | ||
+ | <code bash> | ||
+ | megacli -LDSetProp EnDskCache -LAll -aAll | ||
+ | </ | ||
+ | ===== view cache policy ===== | ||
+ | <code bash> | ||
+ | megacli -LDInfo -Lall -aAll | grep 'Cache Policy:' | ||
+ | </ | ||
+ | ===== disable RAID cache (WriteThrough) ===== | ||
+ | <code bash> | ||
+ | megacli -LDSetProp WT -LALL -aALL | ||
+ | </ | ||
+ | ===== enable RAID cache (WriteBack) ===== | ||
+ | <code bash> | ||
+ | megacli -LDSetProp WB -LALL -aALL | ||
+ | </ | ||
- | # wget -O - https:// | ||
- | # echo "" | ||
- | # echo "# hwraidle-vert.net raid hardwares management tools" >> / | ||
- | # echo "deb http:// | ||
- | # apt-get update | ||
- | # apt-get install megaraid-status megacli | ||
- | [[https:// | ||
- | # megaraidsas-status | ||
- | # megasasctl | ||
- | # megacli -AdpBbuCmd -GetBbuStatus -a0 | ||
- | # megacli -LDInfo -L0 -a0 | ||
- | # megacli -LDInfo -L1 -a0 | ||
- | # megacli -AdpAllInfo -aAll | ||
- | # megacli -PDList -a0 | less | ||
- | ===== disable disk cache ===== | ||
- | # megacli -LDSetProp DisDskCache -LAll -aAll | ||
- | ===== enable disk cache ===== | ||
- | # megacli -LDSetProp EnDskCache | + | Depuis https:// |
- | ===== view cache policy ===== | ||
- | # megacli -LDInfo -Lall -aAll | grep 'Cache Policy:' | ||
- | ===== disable RAID cache (WriteThrough) ===== | ||
- | # megacli -LDSetProp WT -LALL -aALL | ||
- | ===== enable RAID cache (WriteBack) ===== | ||
- | # megacli | + | |
+ | |||
+ | |||
+ | |||
+ | Introduction | ||
+ | |||
+ | MegaCli commands have presented a number of questions among our users for Cisco' | ||
+ | |||
+ | See also: Cisco VSM RAID Viewer | ||
+ | General Parameters | ||
+ | |||
+ | Adapter parameter | ||
+ | |||
+ | The parameter | ||
+ | |||
+ | Physical drive parameter | ||
+ | |||
+ | For commands that operate on one or more pysical drives, the -PhysDrv [E:S] parameter is used, where E is the enclosure device ID in which the drive resides and S the slot number (starting with zero). You can get the enclosure device ID using MegaCli -EncInfo | ||
+ | |||
+ | Virtual drive parameter -Lx | ||
+ | |||
+ | The parameter -Lx is used for specifying the virtual drive (where x is a number starting with zero or the string all). | ||
+ | |||
+ | Running the executable can be accomplished by: | ||
+ | |||
+ | shell> / | ||
+ | |||
+ | or | ||
+ | |||
+ | shell> cd / | ||
+ | |||
+ | shell> ./MegaCli < | ||
+ | |||
+ | Gather information | ||
+ | |||
+ | Controller information | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | Enclosure information | ||
+ | |||
+ | | ||
+ | |||
+ | Virtual drive information | ||
+ | |||
+ | | ||
+ | |||
+ | Physical drive information | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | Battery backup information | ||
+ | |||
+ | | ||
+ | |||
+ | Check Battery backup warning on boot. If this is enabled on an MSP, it will require manual intervention every time the system boots | ||
+ | |||
+ | | ||
+ | |||
+ | Controller management | ||
+ | |||
+ | Silence active alarm | ||
+ | |||
+ | | ||
+ | |||
+ | Disable alarm | ||
+ | |||
+ | | ||
+ | |||
+ | Enable alarm | ||
+ | |||
+ | | ||
+ | |||
+ | Disable battery backup warning on system boot | ||
+ | |||
+ | | ||
+ | |||
+ | Change the adapter rebuild rate to 60%: | ||
+ | |||
+ | | ||
+ | |||
+ | Virtual drive management | ||
+ | |||
+ | Create RAID 0, 1, 5 drive | ||
+ | |||
+ | | ||
+ | |||
+ | Create RAID 10 drive | ||
+ | |||
+ | | ||
+ | |||
+ | Remove drive | ||
+ | |||
+ | | ||
+ | |||
+ | Physical drive management | ||
+ | |||
+ | Set state to offline | ||
+ | |||
+ | | ||
+ | |||
+ | Set state to online | ||
+ | |||
+ | | ||
+ | |||
+ | Mark as missing | ||
+ | |||
+ | | ||
+ | |||
+ | Prepare for removal | ||
+ | |||
+ | | ||
+ | |||
+ | Replace missing drive | ||
+ | |||
+ | | ||
+ | |||
+ | The number N of the Array parameter is from the "Span Reference:" | ||
+ | |||
+ | Rebuild drive - Drive status should be " | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | Clear drive | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | Bad to good | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | Hot spare management | ||
+ | |||
+ | Set global hot spare | ||
+ | |||
+ | | ||
+ | |||
+ | Remove hot spare | ||
+ | |||
+ | | ||
+ | |||
+ | Set dedicated hot spare | ||
+ | |||
+ | | ||
+ | |||
+ | Walkthrough: | ||
+ | |||
+ | Bad to good | ||
+ | |||
+ | MegaCli -PDMakeGood -PhysDrv [E:S] -aALL | ||
+ | |||
+ | Clear the foreign setting | ||
+ | |||
+ | | ||
+ | |||
+ | Set global hot spare | ||
+ | |||
+ | | ||
+ | |||
+ | Walkthrough: | ||
+ | |||
+ | 1. Set the drive offline, if it is not already offline due to an error | ||
+ | |||
+ | | ||
+ | |||
+ | 2. Mark the drive as missing | ||
+ | |||
+ | | ||
+ | |||
+ | 3. Prepare drive for removal | ||
+ | |||
+ | | ||
+ | |||
+ | 4. Change/ | ||
+ | |||
+ | 5. If you’re using hot spares then the replaced drive should become your new hot spare drive | ||
+ | |||
+ | | ||
+ | |||
+ | 6. In case you’re not working with hot spares, you must re-add the new drive to your RAID virtual drive and start the rebuilding | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | Gathering Standard logs | ||
+ | |||
+ | On every instance of a hard drive problem with an MSP server, we need to run the following commands to have any information about the problem: | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | Collect the MegaSAS.log, | ||
megaraid/howto_megaraid.1533035741.txt.gz · Dernière modification : 2018/07/31 11:15 de ronan