# IT #/HP

hp 서버 리눅스 에서 hpacucli 사용방법

국철 2017. 5. 16. 11:15
반응형

1. 명령을 실행하는 두 가지 방법


# hpacucli

HP Array Configuration Utility CLI 9.20.9.0

Detecting Controllers...Done.

Type "help" for a list of supported commands.

Type "exit" to close the console.

=> rescan



또는 hpacucli 프롬프트를 표시하지 않으려면 Linux 프롬프트에서 직접 다음을 입력하면됩니다. 다음은 위와 동일합니다.


# hpacucli rescan





2. 컨트롤러 및 디스크 상태 표시


컨트롤러의 자세한 상태 및 디스크 상태를 표시하려면 다음 명령을 실행하십시오.



# hpacucli

=> ctrl all show config


Smart Array P410i in Slot 0 (Embedded)    (sn: 50014380101D61C0)


   array A (SAS, Unused Space: 0  MB)


      logicaldrive 1 (136.7 GB, RAID 1, OK)





3. 컨트롤러 상태보기


컨트롤러의 상태 만 표시하려면 다음을 수행하십시오. 이 예에서 컨트롤러는 문제없이 완벽하게 작동합니다.


=> ctrl all show status


Smart Array P410i in Slot 0 (Embedded)

   Controller Status: OK

   Cache Status: OK




4. 드라이브 상태보기


=> ctrl slot=0 pd all show status



5. 개별 드라이브 상태보기


=> ctrl slot=0 pd 2I:1:6 show detail




6. 모든 논리 드라이브보기


=> ctrl slot=0 ld all show




7. 새 RAID 0 논리 드라이브 만들기


=> ctrl slot=0 create type=ld drives=1I:1:3 raid=0



8. 새 RAID 1 논리 드라이브 만들기


=> ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4 raid=1



9. 새 RAID 5 논리 드라이브 만들기


=> ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4,2I:1:6,2I:1:7,2I:1:8 raid=5




10. 새 장치 재검색


=> rescan




11. 자세한 논리 드라이브 상태보기


=> ctrl slot=0 ld 2 show



12. 논리 드라이브 삭제


=> ctrl slot=0 ld 2 delete


Warning: Deleting an array can cause other array letters to become renamed.

         E.g. Deleting array A from arrays A,B,C will result in two remaining

         arrays A,B ... not B,C


Warning: Deleting the specified device(s) will result in data being lost.

         Continue? (y/n) y



13. 논리 볼륨에 새 물리 드라이브 추가


=> ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7



14. 예비 디스크 추가


=> ctrl slot=0 array all add spares=2I:1:6,2I:1:7




15. 캐시 사용 또는 사용 안 함


=> ctrl slot=0 modify dwc=disable   ( 비활성화 )


=> ctrl slot=0 modify dwc=enable   ( 활성화 )




16. 물리 드라이브 지우기

슬롯 0의 어레이 B에있는 물리 드라이브를 지우려면 다음 명령을 실행하십시오.


=> ctrl slot=0 pd 2I:1:6 modify erase



17. 물리적 디스크 LED 깜박임


=> ctrl slot=0 ld 2 modify led=on


=> ctrl slot=0 ld 2 modify led=off


출처 : http://www.thegeekstuff.com/2014/07/hpacucli-examples




반응형