본문 바로가기

Linux

Dell 서버 Array 체크 rpm

HP 장비에는 hpacucli 라는 게 있어서 체크했는데

 

dell 서버에도 이런게 있나 찾아봤더니 있었다.. 이름이 megacli ㅋㅋ

 

아래의 주소로 가서 하면될듯..

 

테스트 서버를 찾아봐야되는데..

 

아직 사용해보진 못함..

 

해당 주소는 아래와 같다.

 

혹시 몰라 파일 첨부합니다.

 

CSA1.5-MegaCli_REL80571.part1.rar

 

CSA1.5-MegaCli_REL80571.part2.rar

 

http://www.dell.com/support/troubleshooting/us/en/19/KCS/KcsArticles/ArticleView?c=us&l=en&s=dhs&docid=623352

 

Step 1.


  Installation of the MegaCLI RPM 

  • Ensure you are logged in as 'root'
  • Download MegaCLI to your server :
    • # mkdir /root/megacli
    • # cd /root/megacli
    • # wget http://www.lsi.com/downloads/Public/Nytro/downloads/Nytro%20XM/Management%20Software%20and%20Tools/NMR%201.5/CSA1.5-MegaCli_REL80571.zip
  • Unzip and install MegaCLI :
    • # unzip 8.07.07_MegaCLI.zip
    •  # cd linux
    • # rpm -Uvh MegaCli-8.07.07-1.noarch.rpm
    • # alias MegaCli="/opt/MegaRAID/MegaCli/MegaCli64"
Step 2.


  Display general information 

  • Display enclosure information :
    • # MegaCli -EncInfo -aALL | less
  • Display battery information :
    • # MegaCli -AdpBbuCmd -aALL | less
  • Display overview of controller(s), virtual disk(s), and physical disk(s) :
    • # MegaCli -CfgDsplay -aALL | less
  • Display in depth controller information :
    • # MegaCli -AdpAllInfo -aALL | less
  • Display virtual disk information :
    • # MegaCli -LDInfo -Lall -aALL | less
  • Display physical disk information :
    • # MegaCli -PDList -aALL | less

Step 3.


  Generate a controller log 

  • # MegaCli -AdpEventLog -GetEvents -f controller_log.txt -aALL

Step 4.


  Create a virtual disk  

  • Create a RAID 1
    • Example : Create a RAID 1 using disks 0 and 1 on adapter 0 on enclosure 32
    • # MegaCli -CfgLdAdd -r1 [32:0, 32:1] -a0
  • Create a RAID 5
    • Example : Create a RAID 5 using disks 0, 1, and 2 on adapter 0 on enclosure 32
    • # MegaCli -CfgLdAdd -r5 [32:0, 32:1, 32:2] a0
  • Create a RAID 6
    • Example : Create a RAID 6 using disks 0, 1, 2, and 3 on adapter 0 on enclosure 32
    • # MegaCli -CfgLdAdd -r6 [0320, 32:1, 32:2, 32:3] a0
  • Create a RAID 10
    • Example : Create a RAID 10 using disks 0, 1, 2, and 3 on adapter 0 on enclosure 32
    • # MegaCli -CfgSpanAdd -r10 -Array0[32:0, 32:1] -Array1[32:2, 32:3] -a0

Step 5.


  Physical disk management  

  • Offline a disk
    • Example : Set disk 0 offline on adapter 0 on enclosure 32
    • # MegaCli -PDOffline -PhysDrv [32:0] -a0
  • Online a disk
    • Example : Set disk 0 online on adapter 0 on enclosure 32
    • # MegaCli -PDOnline -PhysDrv [32:0] -a0
  • Rebuild a disk
    • Example : Set disk 0 to rebuild on adapter 0 on enclosure 32
    • # MegaCli -PDRbld -Start -PhysDrv [32:0] -a0
    • Example : Display status of rebuild on disk 0 on adapter 0 on enclosure 32
    • # MegaCli -PDRbld -ShowProg -PhysDrv [32:0] -a0
  • Configure global hot spare
    • Example : Set disk 0 as a global hot spare on adapter 0 on enclosure 32
    • # MegaCli -PDHSP -Set -PhysDrv [32:0] -a0
  • Configure dedicated hot spare
    • Example : Set disk 0 on virtual disk 0 as a dedicated hot spare on adapter 0 on enclosure 32
    • # MegaCli -PDHSP -Set -Dedicated -Array0 -PhysDrv [32:0] -a0
  • Remove hot spare
    • Example : Remove disk 0 as hot spare on adapter 0 on enclosure 32
    • # MegaCli -PDHSP -Rmv -PhysDrv [32:0] -a0

Step 6.


  Display additional information 

  • Enable write back cache on all virtual disks on adapter 0
    • # MegaCli -LDSetProp WB -LALL -a0
  • Disable write back cache on all virtual disks on adapter 0
    • # MegaCli -LDSetProp NoCachedBadBBU -LALL -a0
  • Start a patrol read on adapter 0
    • # MegaCli -AdpPR -Start -a0
  • Stop a patrol read on adapter 0
    • # MegaCli -AdpPR -Stop -a0