Last active
October 20, 2020 19:04
-
-
Save nctiggy/d84929369e2f60099da4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -i /tmp/MegaCli-8.07.14-1.noarch.rpm | |
cd /opt/MegaRAID/MegaCli/ | |
./MegaCli64 CfgClr -a0 # Clear the existing Config | |
./MegaCli64 -cfgforeign -clear -a0 # Clear any foreign state configs | |
./MegaCli64 ELF -ControllerFeatures -a0 # See if Cachecade is already licensed | |
./MegaCli64 ELF GetSafeId -a0 | grep Safe # Get the SafeID for activation | |
./MegaCli64 -AdpAllInfo -a0 | grep "Serial No" # Get the Serial Number for activation | |
Stop and Activate License | |
softwarelicense.lsi.com | |
./MegaCli64 ELF -ApplyKey key JEFU1LSNSKC8L2PNP5IV567EKASKNXIAF4VN8VRZ -a0 # Activate with the 30-day trial license key | |
./MegaCli64 ELF -ApplyKey key <key here> -a0 # Activate with the license key | |
reboot | |
cd /opt/MegaRAID/MegaCli/ | |
./MegaCli64 ELF -ControllerFeatures -a0 # Show that cachecade is licensed | |
./MegaCli64 -PDList -a0 | grep "Enclosure Device" | |
./MegaCli64 -CfgCachecadeDel -L0 -a0 | |
for i in {0..23} | |
do | |
./MegaCli64 -PDMakeGood -PhysDrv [0:$i] -Force -a0 | |
done | |
./MegaCli64 -CfgCachecadeAdd -r1 -Physdrv[0:0,0:1] -Name cachecade_0 -a0 # Create R1 Cachecade. The PhysDrv's may differ, typicaly based on the enclosure ID. That has been all over the board for me | |
./MegaCli64 -CfgEachDskRaid0 WB RA Cached NoCachedBadBBU -None -Cache -a0 # Create R0 disk groups for each drive and assign them to use cachecade. If you have a BBU then change CachedBadBBU to NoCachedBadBBU | |
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Cached -Immediate -Lall -aAll | |
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -RA -Immediate -Lall -aAll | |
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -ForcedWB -Immediate -Lall -aAll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment