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.

Revisions

  1. @nctiggy nctiggy revised this gist Mar 25, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,9 @@ 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 -PDMakeGood -PhysDrv [0:23] -Force -a0 #This may need to be run on every disk
    ./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
  2. @nctiggy nctiggy revised this gist Mar 25, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,9 @@ cd /opt/MegaRAID/MegaCli/
    Stop and Activate License
    softwarelicense.lsi.com

    ./MegaCli64 ELF -ApplyKey key <Key goes here> -a0 # Activate with the license key
    ./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

  3. @nctiggy nctiggy revised this gist Mar 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    rpm -i MegaCli-8.07.14-1.noarch.rpm
    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
  4. @nctiggy nctiggy revised this gist Mar 24, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -18,5 +18,6 @@ cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0 # Show that cachecade is licensed
    ./MegaCli64 -PDList -a0 | grep "Enclosure Device"
    ./MegaCli64 -CfgCachecadeDel -L0 -a0
    ./MegaCli64 -CfgCachecadeAdd -r1 -Physdrv[11:0,11: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 -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 -PDMakeGood -PhysDrv [0:23] -Force -a0 #This may need to be run on every disk
    ./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
  5. @nctiggy nctiggy revised this gist Sep 3, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -16,5 +16,7 @@ reboot

    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0 # Show that cachecade is licensed
    ./MegaCli64 -PDList -a0 | grep "Enclosure Device"
    ./MegaCli64 -CfgCachecadeDel -L0 -a0
    ./MegaCli64 -CfgCachecadeAdd -r1 -Physdrv[11:0,11: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
  6. @nctiggy nctiggy revised this gist Sep 2, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -16,5 +16,5 @@ reboot

    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0 # Show that cachecade is licensed
    ./MegaCli64 -CfgCachecadeAdd -Physdrv[0:0,0:1] -Name cachecade_0 -a0 #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 # If you have a BBU then change CachedBadBBU to NoCachedBadBBU
    ./MegaCli64 -CfgCachecadeAdd -r1 -Physdrv[11:0,11: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
  7. @nctiggy nctiggy revised this gist Aug 27, 2015. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,20 @@
    rpm -i MegaCli-8.07.14-1.noarch.rpm
    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 CfgClr -a0
    ./MegaCli64 -cfgforeign -clear -a0
    ./MegaCli64 ELF -ControllerFeatures -a0
    ./MegaCli64 ELF GetSafeId -a0 | grep Safe
    ./MegaCli64 -AdpAllInfo -a0 | grep "Serial No"
    ./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 <Key goes here> -a0
    ./MegaCli64 ELF -ApplyKey key <Key goes here> -a0 # Activate with the license key

    reboot


    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0
    ./MegaCli64 ELF -ControllerFeatures -a0 # Show that cachecade is licensed
    ./MegaCli64 -CfgCachecadeAdd -Physdrv[0:0,0:1] -Name cachecade_0 -a0 #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 # If you have a BBU then change CachedBadBBU to NoCachedBadBBU
  8. @nctiggy nctiggy revised this gist Aug 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,4 @@ reboot
    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0
    ./MegaCli64 -CfgCachecadeAdd -Physdrv[0:0,0:1] -Name cachecade_0 -a0 #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
    ./MegaCli64 -CfgEachDskRaid0 WB NORA Cached CachedBadBBU -None -Cache -a0 # If you have a BBU then change CachedBadBBU to NoCachedBadBBU
  9. @nctiggy nctiggy revised this gist Aug 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -16,5 +16,5 @@ reboot

    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0
    ./MegaCli64 -CfgCachecadeAdd -Physdrv[0:0,0:1] -Name cachecade_0 -a0
    ./MegaCli64 -CfgCachecadeAdd -Physdrv[0:0,0:1] -Name cachecade_0 -a0 #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
  10. @nctiggy nctiggy revised this gist Aug 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ cd /opt/MegaRAID/MegaCli/
    Stop and Activate License
    softwarelicense.lsi.com

    ./MegaCli64 ELF -ApplyKey key 6QQ9F2SMD2NKBT13AQB1DCU3JDK5EJU7V82GINRZ -a0
    ./MegaCli64 ELF -ApplyKey key <Key goes here> -a0

    reboot

  11. @nctiggy nctiggy created this gist Aug 27, 2015.
    20 changes: 20 additions & 0 deletions Install and configure Cachecade for ScaleIO Nodes
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    rpm -i MegaCli-8.07.14-1.noarch.rpm
    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 CfgClr -a0
    ./MegaCli64 -cfgforeign -clear -a0
    ./MegaCli64 ELF -ControllerFeatures -a0
    ./MegaCli64 ELF GetSafeId -a0 | grep Safe
    ./MegaCli64 -AdpAllInfo -a0 | grep "Serial No"

    Stop and Activate License
    softwarelicense.lsi.com

    ./MegaCli64 ELF -ApplyKey key 6QQ9F2SMD2NKBT13AQB1DCU3JDK5EJU7V82GINRZ -a0

    reboot


    cd /opt/MegaRAID/MegaCli/
    ./MegaCli64 ELF -ControllerFeatures -a0
    ./MegaCli64 -CfgCachecadeAdd -Physdrv[0:0,0:1] -Name cachecade_0 -a0
    ./MegaCli64 -CfgEachDskRaid0 WB NORA Cached CachedBadBBU -None -Cache -a0