Vmware esxi 下修改 Gen8 Raid配置

硬件环境:HP GEN8 桌面版。主板集成的raid卡

系统:Vmware esxi 6.0 HP重新封装的版本,自带了所有HP驱动

做了三个RAID,两个raid1,一个raid0。raid0只用了一个320G盘,然后320G盘掉线了。提示灯变红。。

悲催的是 HP IP进不去,重启电脑后没办法使用HP工具,只能在Vmware下操作了。

通过百度发现vmware esxi下有 hp的管理包

不确定有没有的可以用命令,能看到是否安装了HP工具

esxcli software vib list |grep Hewlett

我的提示有。比如有:hpacucli,scsi-hpaa。

注意。软件的安装位置不一样。

我的安装在 /opt/smartstorageadmin/ssacli/bin

**********操作Raid有危险。确定明确知道命令的作用在使用。**********

因为我只是做删除操作。先查看Raid信息

[root@localhost:/opt/smartstorageadmin/ssacli/bin] ./ssacli ctrl slot=0 pd all show
 
Smart Array B120i SATA RAID in Slot 0 (Embedded)
 
   Array A
 
      physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA HDD, 3 TB, OK)
      physicaldrive 2I:0:2 (port 2I:box 0:bay 2, SATA HDD, 3 TB, OK)
 
   Array B
 
      physicaldrive 3I:0:3 (port 3I:box 0:bay 3, SATA HDD, 3 TB, OK)
      physicaldrive 4I:0:4 (port 4I:box 0:bay 4, SATA HDD, 3 TB, OK)
 
   Array C
 
      physicaldrive 5I:0:5 (port 5I:box 0:bay 5, SATA HDD, 0 GB, Failed)

可以看到,命名方式跟在LINUX下的基本一样。

然后删之

[root@localhost:/opt/smartstorageadmin/ssacli/bin] ./ssacli controller slot=0 Array C delete forced
 
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

在查看已经没了。红灯也变蓝了

[root@localhost:/opt/smartstorageadmin/ssacli/bin] ./ssacli ctrl slot=0 pd all show
 
Smart Array B120i SATA RAID in Slot 0 (Embedded)
 
   Array A
 
      physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA HDD, 3 TB, OK)
      physicaldrive 2I:0:2 (port 2I:box 0:bay 2, SATA HDD, 3 TB, OK)
 
   Array B
 
      physicaldrive 3I:0:3 (port 3I:box 0:bay 3, SATA HDD, 3 TB, OK)
      physicaldrive 4I:0:4 (port 4I:box 0:bay 4, SATA HDD, 3 TB, OK)
 

最后放一个帮助显示的信息

[root@localhost:/opt/smartstorageadmin/ssacli/bin] ./ssacli help
 
CLI Syntax
   A typical SSACLI command line consists of three parts: a target device,
   a command, and a parameter with values if necessary. Using angle brackets to
   denote a required variable and plain brackets to denote an optional
   variable, the structure of a typical SSACLI command line is as follows:
 
      <target> <command> [parameter=value]
 
   <target> is of format:
      [controller all|slot=#|serialnumber=#]
      [array all|<id>]
      [physicaldrive all|allunassigned|[#:]#:#|[#:]#:#-[#:]#:#]
      [ssdphysicaldrive all|allunassigned|[#:]#:#|[#:]#:#-[#:]#:#]
      [logicaldrive all|#]
      [enclosure all|#:#|serialnumber=#]
      [licensekey all|<key>]
      [ssdinfo]
      Note 1: The #:#:# syntax is only needed for systems that
              specify port:box:bay. Other physical drive targeting
              schemes are box:bay and port:id.
 
   Example targets:
   ("CN0" is a sample port name that may be different depending on the
   controller)
      controller slot=5
      controller serialnumber=P21DA2322S
      controller slot=7 array A
      controller slot=5 logicaldrive 5
      controller slot=5 physicaldrive 1:5
      controller slot=5 physicaldrive CN0:2:3
      controller slot=5 ssdphysicaldrive all
      controller slot=5 enclosure CN0:1 show
      controller slot=5 licensekey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
 
For detailed command information type any of the following:
   help add
   help create
   help delete
   help diag
   help flash
   help heal
   help modify
   help remove
   help shorthand
   help show
   help target
   help rescan
   help version
 
Encryption related commands:
   help ctrlpasswdstate
   help clearencryptionconfig
   help encode
   help encrypt
   help enableencryption
   help encryption
   help eula
   help fwlock
   help import
   help instantsecureerase
   help localkeymanagermode
   help login
   help logout
   help recoverpassword
   help rekey
   help remotekey
   help removectrlpasswd
   help rescankeys
   help setmasterkeycache
   help setctrlpasswd
   help setpasswd
   help setrecoveryparams
   help unlockvolumes
 
Help also accepts commonly used CLI parameters and SSA keywords. Adding
additional keywords will further filter the help output. Examples:
   help migrate
   help expand
   help extend
   help <keyword> <keyword> ... <keyword>

有什么不确定的可以直接用help 命令。比如查看 del怎么用

root@localhost:/opt/smartstorageadmin/ssacli/bin] ./ssacli help del
 
<target> delete [forced] [override]
   The delete command deletes part of an existing configuration. If performing
   a clear configuration of the entire controller (i.e. ctrl slot=1 delete),
   the "override" option may be specified to allow mounted volumes to be
   removed. The target can be any valid individual controller, array or logical
   drive target. If the forced parameter is not present, the user will be
   prompted before deletion. If the forced parameter is present there will be
   no prompt.
   NOTE: Deleting the last logical drive in an array will cause the array to be
   deleted as well.
   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.
 
Examples:
   controller slot=5 delete
   controller slot=5 array A delete forced
   controller slot=1 logicaldrive 2 delete
   controller slot=5 delete override
   controller slot=5 delete forced override
 
-------------------------------------------------------------
[root@localhost:/opt/smartstorageadmin/ssacli/bin] ./ssacli controller slot=0 Array C delete forced
 
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

操作Raid有危险。确定明确知道命令的作用在使用。

操作Raid有危险。确定明确知道命令的作用在使用。

猜你喜欢

转载自www.cnblogs.com/GYbin/p/9472884.html