Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save omerkarabacak/a447bb5b86d998942b9e28b5e697ab47 to your computer and use it in GitHub Desktop.
Save omerkarabacak/a447bb5b86d998942b9e28b5e697ab47 to your computer and use it in GitHub Desktop.
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 NORA Cached CachedBadBBU -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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment