HP 장비에는 hpacucli 라는 게 있어서 체크했는데
dell 서버에도 이런게 있나 찾아봤더니 있었다.. 이름이 megacli ㅋㅋ
아래의 주소로 가서 하면될듯..
테스트 서버를 찾아봐야되는데..
아직 사용해보진 못함..
해당 주소는 아래와 같다.
혹시 몰라 파일 첨부합니다.
Step 1. |
|
- 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 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. |
|
- # MegaCli -AdpEventLog -GetEvents -f controller_log.txt -aALL
Step 4. |
|
- 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. |
|
- 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. |
|
- 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
도움이 되셨다면 공감과 댓글 부탁 드립니다. *^.^*
'Linux' 카테고리의 다른 글
max open files, max process 설정 값 변경 (0) | 2014.08.11 |
---|---|
vsftp 일반 계정 설정 (0) | 2014.04.17 |
[LINUX] hpacucli 온라인 raid 재구성 (0) | 2013.05.08 |
[LINUX] 500 OOPS: cannot change directory 에러 발생시 (0) | 2013.05.07 |
CentOS 6.3 hp-health 오류시 수정방법 (0) | 2013.02.05 |