月亮雨小组的天地 YLY Studio

HPE SSA CLI in vmware esxi 命令行管理惠普SSA阵列卡配置

[root@localhost:~] /opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show config    //显示所有配置和阵列卡

Dynamic Smart Array B140i in Slot 0b      ()
   Port Name: 1I
   Port Name: 2I
   Array A (Solid State SATA, Unused Space: 0  MB)
      logicaldrive 1 (894.20 GB, RAID 0, Failed)
      physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA SSD, 480 GB, OK)
      physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA SSD, 480 GB, OK)


Smart Array P440 in Slot 2                (sn: xxxxxxxxxxxxx)
   Internal Drive Cage at Port 1I, Box 1, OK
   Port Name: 1I
   Array A (SATA, Unused Space: 0  MB)
      logicaldrive 1 (7.28 TB, RAID 0, OK)
      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 4 TB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 4 TB, OK)


There are several helpful commands can be used:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Show configuration
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show config

# Controller status
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show status

# Show detailed controller information for all controllers
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show detail

# Show detailed controller information for controller in slot 0
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 show detail

# Rescan for New Devices
/opt/smartstorageadmin/ssacli/bin/ssacli rescan

# Physical disk status
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 pd all show status

# Show detailed physical disk information
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 pd all show detail

# Logical disk status
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld all show status

# View Detailed Logical Drive Status
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld 2 show

# Create New RAID 0 Logical Drive
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0

# Create New RAID 1 Logical Drive
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

# Create New RAID 5 Logical Drive
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5

# Delete Logical Drive
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld 2 delete

# Add New Physical Drive to Logical Volume
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7

# Add Spare Disks
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7

# Enable Drive Write Cache
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 modify dwc=enable

# Disable Drive Write Cache
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 modify dwc=disable

# Erase Physical Drive
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 pd 2I:1:6 modify erase

# Turn on Blink Physical Disk LED
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld 2 modify led=on

# Turn off Blink Physical Disk LED
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 ld 2 modify led=off

# Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 modify cacheratio=100/0

# Enable smart array write cache when no battery is present (No-Battery Write Cache option)
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 modify nbwc=enable

# Disable smart array cache for certain Logical Volume
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

# Enable smart array cache for certain Logical Volume
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

# Enable SSD Smart Path
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 array a modify ssdsmartpath=enable

# Disable SSD Smart Path
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 array a modify ssdsmartpath=disable

作者:mysy2001 分类:计算机硬件 浏览:214 评论:0