megaraid:howto_megaraid
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| megaraid:howto_megaraid [2022/09/30 12:51] – ghusson | megaraid:howto_megaraid [2023/06/13 13:19] (Version actuelle) – ghusson | ||
|---|---|---|---|
| Ligne 41: | Ligne 41: | ||
| megacli -LDSetProp WB -LALL -aALL | megacli -LDSetProp WB -LALL -aALL | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Depuis https:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Introduction | ||
| + | |||
| + | MegaCli commands have presented a number of questions among our users for Cisco' | ||
| + | |||
| + | See also: Cisco VSM RAID Viewer | ||
| + | General Parameters | ||
| + | |||
| + | Adapter parameter -aN | ||
| + | |||
| + | The parameter -aN (where N is a number starting with zero or the string ALL) specifies the adapter ID. If you have only one controller it’s safe to use ALL instead of a specific ID, but you’re encouraged to use the ID for everything that makes changes to your RAID configuration. | ||
| + | |||
| + | 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 -aALL. The E:S syntax is also used for specifying the physical drives when creating a new RAID virtual drive (see 5). | ||
| + | |||
| + | 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 <cmd> | ||
| + | |||
| + | 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.txt · Dernière modification : 2023/06/13 13:19 de ghusson