3 нужных команды для управления RAID на сервере DELL

Все заклинания следует делать из директории в которой лежит бинарник perccli64. Ну или если ты его прописал в PATH, то из любого другого места (не забудь тогда убрать ./ перед командой).

Самая главная команда:


./perccli64 show all

Поведает нам номер контроллера и его состояние.


Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = ats
Operating System = Linux3.10.0+2

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

-------------------------------------------------------------------------
Ctl Model Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth
-------------------------------------------------------------------------
0 PERCH330Mini 8 6 1 0 1 0 Msng On 3 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

ASO :
===

----
Ctl
----
0
----

Cl=Cluster|MD=Max Disks|WC=Wide Cache|SS=Safe Store|FP=Fast Path|Re=Recovery
CR=CacheCade(Read)|RF=Reduced Feature Set|CO=Cache Offload
CW=CacheCade(Read/Write)|X=Not Available/Not Installed|U=Unlimited|T=Trial
|HA=High Availability |SSHA=Single server High Availability

Имея номер контроллера можно посмотреть все остальное:

./perccli64 /c0 show

а конкретнее, количество и идентификаторы виртуальных и физических дисков:

Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None

Product Name = PERC H330 Mini
Serial Number = XXXXXXX
SAS Address = 544a842047b88200
PCI Address = 00:01:00:00
System Time = 10/13/2017 11:16:16
Mfg. Date = 07/23/15
Controller Time = 10/13/2017 00:16:03
FW Package Build = 25.3.0.0016
BIOS Version = 6.23.03.0_4.16.07.00_0x060C0200
FW Version = 4.250.01-4405
Driver Name = megaraid_sas
Driver Version = 06.803.02.00-rc1
Current Personality = RAID-Mode
Vendor Id = 0x1000
Device Id = 0x5F
SubVendor Id = 0x1028
SubDevice Id = 0x1F4B
Host Interface = PCI-E
Device Interface = SAS-12G
Bus Number = 1
Device Number = 0
Function Number = 0
Drive Groups = 1

TOPOLOGY :
========

------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace
------------------------------------------------------------------------
0 - - - - RAID5 Optl N 3.636 TB enbl N N dflt N
0 0 - - - RAID5 Optl N 3.636 TB enbl N N dflt N
0 0 0 32:2 2 DRIVE Onln N 931.0 GB enbl N N dflt -
0 0 1 32:3 3 DRIVE Onln N 931.0 GB enbl N N dflt -
0 0 2 32:4 4 DRIVE Onln N 931.0 GB enbl N N dflt -
0 0 3 32:5 5 DRIVE Onln N 931.0 GB enbl N N dflt -
0 0 4 32:6 6 DRIVE Onln N 931.0 GB enbl 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 = 1

VD LIST :
=======

---------------------------------------------------------------
DG/VD TYPE State Access Consist Cache Cac sCC Size Name
---------------------------------------------------------------
0/0 RAID5 Optl RW Yes NRWTD - OFF 3.636 TB citrix
---------------------------------------------------------------

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 = 6

PD LIST :
=======

-----------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
-----------------------------------------------------------------------
32:2 2 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:3 3 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:4 4 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:5 5 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:6 6 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:7 7 GHS - 931.0 GB SAS HDD N N 512B ST91000640SS 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

посмотреть состояние и настройки логического диска можно так:
./perccli64 /c0/v0 show all

на что получишь примерно вот такое:

[root@ats perccli]# ./perccli64 /c0/v0 show all
Controller = 0
Status = Success
Description = None

/c0/v0 :
======

---------------------------------------------------------------
DG/VD TYPE State Access Consist Cache Cac sCC Size Name
---------------------------------------------------------------
0/0 RAID5 Optl RW Yes NRWTD - OFF 3.636 TB citrix
---------------------------------------------------------------

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

PDs for VD 0 :
============

-----------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
-----------------------------------------------------------------------
32:2 2 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:3 3 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:4 4 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:5 5 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS U
32:6 6 Onln 0 931.0 GB SAS HDD N N 512B ST91000640SS 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

VD0 Properties :
==============
Strip Size = 64 KB
Number of Blocks = 7809794048
VD has Emulated PD = No
Span Depth = 1
Number of Drives Per Span = 5
Write Cache(initial setting) = WriteThrough
Disk Cache Policy = Enabled
Encryption = None
Data Protection = Disabled
Active Operations = None
Exposed to OS = Yes
Creation Date = 30-03-2016
Creation Time = 12:16:06 PM
Emulation type = default
Is LD Ready for OS Requests = Yes

хелп у данной утилиты очень краткий, но как подсказка прокатит:

./perccli64 help

вывод показывать не буду, там всего и много.

Логика утилиты достаточно простая, в пояснениях не нуждается.

Добавить комментарий

Войти с помощью: