systemadmin.es > Storage > Ver los discos físicos y lógicos de una controladora PERC

Ver los discos físicos y lógicos de una controladora PERC

Ante las eternas preguntas “¿Cuantos discos tiene RAID?“, “¿Que nivel de RAID tiene este disco?” para las controladoras PERC 5 (PowerEdge Expandable RAID Controller) de los antiguos 1950 de Dell podemos tener memoria o usar el odioso megacli.

# lspci | grep "PowerEdge"
02:0e.0 RAID bus controller: Dell PowerEdge Expandable RAID controller 5

Las opciones básicas que debemos usar para referirnos a lo que estamos pidiendo son:

  • -L: Para especificar un disco lógico (un RAID para entendernos). Para indicar todos podemos usar -LAll
  • -a: Para indicar un controlador en concreto, en el caso que tengamos varios. Para el primero debemos usar -a0 y para todos -aAll

A parte de estas opciones genéricas deberemos especificar que queremos hacer.

Para ver los discos físicos es con la opción -PDList:

# MegaCli -PDList -a0
                                     
Adapter #0

Enclosure Device ID: 8
Slot Number: 0
Device Id: 0
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
Raw Size: 140014MB [0x11177328 Sectors]
Non Coerced Size: 139502MB [0x11077328 Sectors]
Coerced Size: 139392MB [0x11040000 Sectors]
Firmware state: Online
SAS Address(0): 0x5000c5000c6e8b5d
SAS Address(1): 0x0
Connected Port Number: 0 
Inquiry Data: SEAGATE ST9146802SS     S2222NM22QDF

Enclosure Device ID: 8
Slot Number: 1
Device Id: 1
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
Raw Size: 140014MB [0x11177328 Sectors]
Non Coerced Size: 139502MB [0x11077328 Sectors]
Coerced Size: 139392MB [0x11040000 Sectors]
Firmware state: Online
SAS Address(0): 0x5000c5000c6ce7ed
SAS Address(1): 0x0
Connected Port Number: 1 
Inquiry Data: SEAGATE ST9146802SS     S2222NM22QCX

Para ver los datos del disco lógico, como el nivel de RAID o su estado podemos usar la opción -LDInfo indicando tanto el disco lógico y de que adaptador:

# MegaCli -LDInfo -LAll -aALL
                                     

Adapter 0 -- Virtual Drive Information:
Virtual Disk: 0 (target id: 0)
Name:local
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
Size:139392MB
State: Optimal
Stripe Size: 128kB
Number Of Drives:2
Span Depth:1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Access Policy: Read/Write
Disk Cache Policy: Disk's Default

Para ver ambos datos combinados, discos lógicos y sus discos físicos, podemos usar la opción -LdPdInfo indicando únicamente el adaptador:

# MegaCli -LdPdInfo -a0
                                     
Adapter #0

Number of Virtual Disks: 1
Virtual Disk: 0 (target id: 0)
Name:local
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
Size:139392MB
State: Optimal
Stripe Size: 128kB
Number Of Drives:2
Span Depth:1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Access Policy: Read/Write
Disk Cache Policy: Disk's Default
Number of Spans: 1
Span: 0 - Number of PDs: 2
PD: 0 Information
Enclosure Device ID: 8
Slot Number: 0
Device Id: 0
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
Raw Size: 140014MB [0x11177328 Sectors]
Non Coerced Size: 139502MB [0x11077328 Sectors]
Coerced Size: 139392MB [0x11040000 Sectors]
Firmware state: Online
SAS Address(0): 0x5000c5000c6e8b5d
SAS Address(1): 0x0
Connected Port Number: 0 
Inquiry Data: SEAGATE ST9146802SS     S2222NM22QDF

PD: 1 Information
Enclosure Device ID: 8
Slot Number: 1
Device Id: 1
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
Raw Size: 140014MB [0x11177328 Sectors]
Non Coerced Size: 139502MB [0x11077328 Sectors]
Coerced Size: 139392MB [0x11040000 Sectors]
Firmware state: Online
SAS Address(0): 0x5000c5000c6ce7ed
SAS Address(1): 0x0
Connected Port Number: 1 
Inquiry Data: SEAGATE ST9146802SS     S2222NM22QCX

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>