본문 바로가기
Tech/Server

Storcli 명령어 #2 (Lenovo Storcli 구성)

by black333211 2024. 8. 19.

이번 장애서는 Storcli에서 사용되는 명령어들을 알아보도록 하겠습니다.

•1. Storcli 설치
•2. Storcli 명령어
3. Storcli 레이드 구성

 

Storcli가 설치되어 있으면 명령어를 통하여 디스크 정보들을 알 수 있습니다.

Lenovo에서 제공하는 Storcli 가이드 문서 참고하시면 됩니다.

가이드 링크 : ThinkSystem Storage Adapter Software User Guide - Lenovo

 

Storcli 자주 쓰는 명령어 모음

 

컨트롤러 전체 확인

#storcli /c0/eall/sall show all

 

1. 디스크 상태 확인

#storcli /c0/e20/s4 show

-> c0은 컨트롤러 (보통 1개일때 기본 0) e enclosure, s4 slot 의 약자.

 

2. 타겟 디스크 확인 (교체등 작업 할 disk 불켜서 확인)

#storcli /c0/e20/s4 start locate

#storcli /c0/e20/s4 stop locate

 

3. 디스크 Offline 만들기

#storcli /c0/e20/s4 set offline

#storcli /c0/e20/s4 show

-> offline 잘 되었는지 show 다시확인

  offline 잘 되었으면 물리적 제거 가능

 

4. 디스크 리빌드 확인

#storcli /c0/e20/s4 show rebuild

#storcli /c0/e20/s4 show

 

5. VD 상태 확인

#storcli /c0/vall show

 

6. Hot spare 해제 및 지정

#storcli /c0/e20/s12 delete hotsparedrive

#storcli /c0/e20/s12 add hotsparedrive