본문 바로가기

리눅스

[draft] HPE Smart Array CLI commands

HPE Smart Array CLI commands

컨트롤러 관련 명령어

구성 확인

/opt/hp/hpssacli/bin/hpssacli ctrl all show config
  • 모든 컨트롤러의 전체 구성(논리 드라이브, 물리 드라이브, RAID 등)을 출력합니다.

컨트롤러 상태 확인

/opt/hp/hpssacli/bin/hpssacli ctrl all show status
  • 컨트롤러의 상태(정상/오류 여부 등)를 확인합니다.

컨트롤러 상세 정보 확인

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail
  • 특정 슬롯(예: slot=0)의 컨트롤러 상세 정보를 확인합니다.

새로운 장치 스캔

/opt/hp/hpssacli/bin/hpssacli rescan
  • 새로 연결된 디스크나 장치를 다시 검색합니다.

물리 디스크 관련 명령어

물리 디스크 상태 확인

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status
  • 연결된 모든 물리 디스크의 상태를 출력합니다.

물리 디스크 상세 정보 확인

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail
  • 각 물리 디스크의 상세 정보를 확인합니다.

물리 디스크 초기화(데이터 삭제)

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd 2I:1:6 modify erase
  • 지정한 물리 디스크를 지우고 초기화합니다. (⚠ 데이터 완전 삭제됨 주의)

물리 디스크 LED 점멸 켜기

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=on
  • 특정 디스크를 식별하기 위해 LED 점멸을 켭니다.

물리 디스크 LED 점멸 끄기

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=off
  • 점멸 중인 LED를 끕니다.

논리 드라이브(Logical Drive) 관련 명령어

논리 드라이브 상태 확인

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status

논리 드라이브 상세 정보 확인

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show

RAID 0 논리 드라이브 생성

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0

RAID 1 논리 드라이브 생성

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

RAID 5 논리 드라이브 생성

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5

논리 드라이브 삭제

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 delete

논리 드라이브에 새 물리 디스크 추가

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7

스페어 디스크 추가(Hot Spare)

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7

캐시(Cache) 및 성능 관련 명령어

쓰기 캐시 활성화

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=enable

쓰기 캐시 비활성화

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=disable

캐시 읽기/쓰기 비율 조정

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify cacheratio=100/0
  • 예: 읽기 100%, 쓰기 0%

특정 논리 드라이브 캐시 비활성화

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

특정 논리 드라이브 캐시 활성화

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

SSD Smart Path 활성화

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=enable

SSD Smart Path 비활성화

/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=disable

 

참고URL

- 변군이글루 블로그 : HP 서버 스토리지 정보 확인