dell服务器安装PERCCLI

2023-12-14 20:37:22

因在linux 系统中无法查看系统磁盘的raid级别,也无法得知raid状态,需要安装额外的包来监控,因是dell服务器,就在dell网站中下载并安装

1、下载链接:驱动程序和下载 | Dell 中国icon-default.png?t=N7T8https://www.dell.com/support/home/zh-cn?app=drivers选择产品型号并选择驱动类型

下载的包如下图,下载后上传到/opt目录下

在主机安装并使用

root@hydb opt]# rpm -ivh perccli-1.17.10-1.noarch.rpm
Verifying...????????????????????????? ################################# [100%]
Preparing...????????????????????????? ################################# [100%]
Updating / installing...
?? 1:perccli-1.17.10-1??????????????? ################################# [100%]
[root@hydb opt]#

[root@hydb perccli]# ln -s /opt/MegaRAID/perccli/perccli64 /bin/perccli
[root@hydb ~]#

[root@hydb ~]#? perccli /c0/eall/sall show
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.
Drive Information :
=================

-------------------------------------------------------------------------
EID:Slt DID State DG?????? Size Intf Med SED PI SeSz Model??????????? Sp
-------------------------------------------------------------------------
64:0????? 2 Onln?? 0 446.625 GB SATA SSD N?? N? 512B HFS480G4I5X569N? U ?
64:1????? 0 Onln?? 0 446.625 GB SATA SSD N?? N? 512B HFS480G4I5X569N? U ?
64:2????? 1 Onln?? 1?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
64:3????? 4 Onln?? 1?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
64:4????? 3 GHS??? -?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
-------------------------------------------------------------------------

EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded
[root@hydb ~]# perccli /c0/vall show
Controller = 0
Status = Success
Description = None


Virtual Drives :
==============

-----------------------------------------------------------------------
DG/VD TYPE? State Access Consist Cache Cac sCC?????? Size Name??????? ?
-----------------------------------------------------------------------
1/238 RAID1 Optl? RW???? No????? RWBD? -?? OFF?? 1.818 TB loccalbackup
0/239 RAID1 Optl? RW???? Yes???? RWBD? -?? OFF 446.625 GB???????????? ?
-----------------------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|
R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency
[root@hydb ~]# perccli show ctrlcount
Status Code = 0
Status = Success
Description = None

Controller Count = 1

查看控制器的信息

**perccli show ctrlcount 查看有几个控制器即几个raid卡 **

perccli show 显示raid卡信息
[root@hydb ~]# perccli show
Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = dbdg
Operating System? = Linux5.15.0-101.103.2.1.el8uek.x86_64

System Overview :
===============

---------------------------------------------------------------------------
Ctl Model?????????? Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth
---------------------------------------------------------------------------
? 0 PERCH750Adapter???? 8?? 5?? 2???? 0?? 2???? 0 Opt On? -? N????? 0 Opt ?
---------------------------------------------------------------------------

Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed
PDs=Physical drives|DNOpt=DG NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal
Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown
sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Hot Spare
Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit
Hlth=Health|Safe=Safe-mode boot
[root@hydb ~]# perccli /c0 show
Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None

Vendor Id = 0x1000
Device Id = 0x10E2
SubVendor Id = 0x1028
SubDevice Id = 0x2176
Host Interface = PCI-E
Device Interface = SATA-3G
Bus Number = 134
Device Number = 0
Function Number = 0
Drive Groups = 2

TOPOLOGY :
========

--------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type? State BT?????? Size PDC? PI SED DS3? FSpace
--------------------------------------------------------------------------
?0 -?? -?? -??????? -?? RAID1 Optl? N? 446.625 GB dflt N? N?? dflt N???? ?
?0 0?? -?? -??????? -?? RAID1 Optl? N? 446.625 GB dflt N? N?? dflt N???? ?
?0 0?? 0?? 64:0???? 2?? DRIVE Onln? N? 446.625 GB dflt N? N?? dflt -???? ?
?0 0?? 1?? 64:1???? 0?? DRIVE Onln? N? 446.625 GB dflt N? N?? dflt -???? ?
?1 -?? -?? -??????? -?? RAID1 Optl? Y??? 1.818 TB dflt N? N?? dflt N???? ?
?1 0?? -?? -??????? -?? RAID1 Optl? Y??? 1.818 TB dflt N? N?? dflt N???? ?
?1 0?? 0?? 64:2???? 1?? DRIVE Onln? N??? 1.818 TB dflt N? N?? dflt -???? ?
?1 0?? 1?? 64:3???? 4?? DRIVE Onln? N??? 1.818 TB dflt N? N?? dflt -???? ?
--------------------------------------------------------------------------

DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device ID
DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded
Pdgd=Partially degraded|Offln=Offline|BT=Background Task Active
PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign
DS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present

Virtual Drives = 2

VD LIST :
=======

-----------------------------------------------------------------------
DG/VD TYPE? State Access Consist Cache Cac sCC?????? Size Name??????? ?
-----------------------------------------------------------------------
0/239 RAID1 Optl? RW???? Yes???? RWBD? -?? OFF 446.625 GB???????????? ?
1/238 RAID1 Optl? RW???? No????? RWBD? -?? OFF?? 1.818 TB loccalbackup
-----------------------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|
R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency

Physical Drives = 5

PD LIST :
=======

-------------------------------------------------------------------------
EID:Slt DID State DG?????? Size Intf Med SED PI SeSz Model??????????? Sp
-------------------------------------------------------------------------
64:0????? 2 Onln?? 0 446.625 GB SATA SSD N?? N? 512B HFS480G4I5X569N? U ?
64:1????? 0 Onln?? 0 446.625 GB SATA SSD N?? N? 512B HFS480G4I5X569N? U ?
64:2????? 1 Onln?? 1?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
64:3????? 4 Onln?? 1?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
64:4????? 3 GHS??? -?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
-------------------------------------------------------------------------

EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded


BBU_Info :
========

-------------------------------------------------------------------
Model State?? RetentionTime Temp Mode MfgDate Next Learn????????? ?
-------------------------------------------------------------------
BBU?? Optimal 0 hour(s)???? 31C? -??? 0/00/00 2024/02/20? 03:22:19
-------------------------------------------------------------------
[root@hydb ~]#
看磁盘的Device id、Slot No. 以及DriveGroup
[root@hydb ~]#? perccli /c0/eall/sall show
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.

Drive Information :
=================

-------------------------------------------------------------------------
EID:Slt DID State DG?????? Size Intf Med SED PI SeSz Model??????????? Sp
-------------------------------------------------------------------------
64:0????? 2 Onln?? 0 446.625 GB SATA SSD N?? N? 512B HFS480G4I5X569N? U ?
64:1????? 0 Onln?? 0 446.625 GB SATA SSD N?? N? 512B HFS480G4I5X569N? U ?
64:2????? 1 Onln?? 1?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
64:3????? 4 Onln?? 1?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
64:4????? 3 GHS??? -?? 1.818 TB SAS? HDD N?? N? 512B ST4000NM026A???? U ?
-------------------------------------------------------------------------

EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded


[root@hydb ~]#
[root@hydb ~]# lsscsi
[0:3:110:0]? disk??? DELL???? PERC H750 Adp??? 5.16? /dev/sda
[0:3:111:0]? disk??? DELL???? PERC H750 Adp??? 5.16? /dev/sdb
[root@hydb ~]#

文章来源:https://blog.csdn.net/kevinyu998/article/details/134855037
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。