[Linux] hpssacli 명령어 정리
- IT
- 2020. 7. 3.
반응형
반응형
❤️ 연관 포스팅 ❤️
👉 perccli 명령어 & 설치방법 정리
👉 MegaCLI 설치 및 기본 명령어
hpssacli 콘솔 접속
[root@www-1 bld]# ./hpssacli
HPE Smart Storage Administrator CLI 2.40.13.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
=>
controller와 디스크 상태 확인
=> ctrl all show config
Smart Array P840ar in Slot 0 (Embedded)
Port Name: 1I
Port Name: 2I
Internal Drive Cage at Port 1I, Box 1, OK
Internal Drive Cage at Port 1I, Box 1, OK
Internal Drive Cage at Port 2I, Box 2, OK
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (558.9 GB, RAID 1, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, OK)
array B (SATA, Unused Space: 0 MB)
logicaldrive 2 (25.5 TB, RAID 6, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA, 4000.7 GB, OK)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA, 4000.7 GB, OK)
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SATA, 4000.7 GB, OK)
physicaldrive 1I:1:6 (port 1I:box 1:bay 6, SATA, 4000.7 GB, OK)
physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SATA, 4000.7 GB, OK)
physicaldrive 1I:1:8 (port 1I:box 1:bay 8, SATA, 4000.7 GB, OK)
physicaldrive 2I:2:1 (port 2I:box 2:bay 1, SATA, 4000.7 GB, OK)
physicaldrive 2I:2:2 (port 2I:box 2:bay 2, SATA, 4000.7 GB, OK)
physicaldrive 2I:2:3 (port 2I:box 2:bay 3, SATA, 4000.7 GB, OK)
physicaldrive 2I:2:4 (port 2I:box 2:bay 4, SATA, 4000.7 GB, OK, spare)
컨트롤러 상태 확인
=> ctrl all show status
Smart Array P840ar in Slot 0 (Embedded)
Controller Status: OK
Cache Status: OK
Battery/Capacitor Status: OK
물리디스크 상태 확인
=> ctrl slot=0 pd all show status
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 600 GB): OK
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 600 GB): OK
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 4000.7 GB): OK
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 4000.7 GB): OK
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, 4000.7 GB): OK
physicaldrive 1I:1:6 (port 1I:box 1:bay 6, 4000.7 GB): OK
physicaldrive 1I:1:7 (port 1I:box 1:bay 7, 4000.7 GB): OK
physicaldrive 1I:1:8 (port 1I:box 1:bay 8, 4000.7 GB): OK
physicaldrive 2I:2:1 (port 2I:box 2:bay 1, 4000.7 GB): OK
physicaldrive 2I:2:2 (port 2I:box 2:bay 2, 4000.7 GB): OK
physicaldrive 2I:2:3 (port 2I:box 2:bay 3, 4000.7 GB): OK
physicaldrive 2I:2:4 (port 2I:box 2:bay 4, 4000.7 GB, spare): OK
물리 디스크 상세 확인(개별 확인)
=> ctrl slot=0 pd 2I:2:3 show detail
physicaldrive 2I:2:3
Port: 2I
Box: 2
Bay: 3
Status: OK
Drive Type: Data Drive
Interface Type: SATA
Size: 4000.7 GB
Drive exposed to OS: False
Native Block Size: 512
Rotational Speed: 7200
Firmware Revision: HPG4
Serial Number: XXXXX
Model: ATA MB4000GVYZK
SATA NCQ Capable: True
SATA NCQ Enabled: True
Current Temperature (C): 35
Maximum Temperature (C): 41
PHY Count: 1
PHY Transfer Rate: 6.0Gbps
Drive Authentication Status: OK
Carrier Application Version: 11
Carrier Bootloader Version: 6
모든 논리 드라이브 확인
=> ctrl slot=0 ld all show
mart Array P840ar in Slot 0 (Embedded)
array A
logicaldrive 1 (558.9 GB, RAID 1, OK)
array B
logicaldrive 2 (25.5 TB, RAID 6, OK)
논리드라이브 상세 확인
=> ctrl slot=0 ld 2 show
Smart Array P840ar in Slot 0 (Embedded)
array B
Logical Drive: 2
Size: 25.5 TB
Fault Tolerance: 6
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 1792 KB
Status: OK
MultiDomain Status: OK
Caching: Enabled
Parity Initialization Status: Initialization Completed
Unique Identifier: ...
Disk Name: /dev/sdb
Mount Points: /mnt/data_dir 25.5 TB Partition Number 2
OS Status: LOCKED
Logical Drive Label: ...
Drive Type: Data
LD Acceleration Method: Controller Cache
논리드라이브 삭제
ctrl slot=0 ld 2 delete
raid5 논리드라이브 생성
ctrl slot=0 create type=ld drives=2I:1:3, 2I:1:4, 2I:1:5, 2I:1:6 raid=5
논리 볼륨에 새로운 하드 추가
ctrl slot=0 ld 2 add drive=2I:1:9,2I:1:10
spare 디스크 추가
ctrl slot=0 array all add spares=2I:1:9
물리 드라이브 LED On/Off
ctrl slot=0 pd 2I:1:6 modify led=on
ctrl slot=0 pd 2I:1:6 modify led=off
반응형
'IT' 카테고리의 다른 글
[Linux] dig 예제 정리 (0) | 2020.07.06 |
---|---|
[Linux] 리눅스 CD 명령어 예제 (0) | 2020.07.05 |
[linux] nslookup 예제 정리 (0) | 2020.07.01 |
[Linux] Apache Kafka(아파치 카프카) 설치 (0) | 2020.06.26 |
[Linux] Glusterfs 설치 및 기본 사용법 (0) | 2020.06.24 |