<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LeopoldoMaestro.COM &#187; Hardware</title>
	<atom:link href="http://www.leopoldomaestro.com/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leopoldomaestro.com</link>
	<description>Networking, Tecnología, Linux, Sistemas, Negocios...</description>
	<lastBuildDate>Sun, 09 Oct 2011 14:07:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Crear RAID1 bajo LSI MegaCLI y cambiar algunos parametros del raid</title>
		<link>http://www.leopoldomaestro.com/crear-raid1-bajo-lsi-megacli-y-cambiar-algunos-parametros-del-raid/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=crear-raid1-bajo-lsi-megacli-y-cambiar-algunos-parametros-del-raid</link>
		<comments>http://www.leopoldomaestro.com/crear-raid1-bajo-lsi-megacli-y-cambiar-algunos-parametros-del-raid/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 23:29:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Almacenamiento]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[lsi]]></category>
		<category><![CDATA[megacli]]></category>

		<guid isPermaLink="false">http://www.leopoldomaestro.com/?p=437</guid>
		<description><![CDATA[Siguiendo el post anterior en el que posteaba algunas chuletas de la utilidad de LSI, en este post voy a detallar como crear un RAID1 bajo la herramienta megacli sin tener que reiniciar el servidor: 1) Verificamos el enclosure y slot de los discos: [root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -PDlist -a0 Adapter #0 Enclosure Device ID: 252 [...]]]></description>
			<content:encoded><![CDATA[<p>Siguiendo el post anterior en el que posteaba algunas chuletas de la utilidad de LSI, en este post voy a detallar como crear un RAID1 bajo la herramienta megacli sin tener que reiniciar el servidor:</p>
<p>1) Verificamos el enclosure y slot de los discos:</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64  -PDlist -a0</p>
<p>Adapter #0</p>
<p>Enclosure Device ID: 252<br />
Slot Number: 0<br />
Enclosure position: 0<br />
Device Id: 4<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 1<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
PD Type: SATA<br />
Raw Size: 111.790 GB [0xdf94bb0 Sectors]<br />
Non Coerced Size: 111.290 GB [0xde94bb0 Sectors]<br />
Coerced Size: 110.827 GB [0xdda7800 Sectors]<br />
Firmware state: Online, Spun Up<br />
SAS Address(0): 0x3d5648536a8b424c<br />
Connected Port Number: 0(path0)<br />
Inquiry Data: GS01103909280024    FM-25S2S-120GBP2       </p>
<p>Enclosure Device ID: 252<br />
Slot Number: 1<br />
Enclosure position: 0<br />
Device Id: 5<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 1<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
PD Type: SATA<br />
Raw Size: 111.790 GB [0xdf94bb0 Sectors]<br />
Non Coerced Size: 111.290 GB [0xde94bb0 Sectors]<br />
Coerced Size: 110.827 GB [0xdda7800 Sectors]<br />
Firmware state: Online, Spun Up<br />
SAS Address(0): 0x3d5647506b82414a<br />
Connected Port Number: 1(path0)<br />
Inquiry Data: GS03104110140009    FM-25S2S-120GBP2                        2.1 </p>
<p>Como se puede observar, son dos discos SSD de 120 gb&#8230;</p>
<p>2) Con el enclosure y slot number, lanzamos el comando de creacion de RAID 1 *</p>
<p>/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r1 [252:0,252:1] -a0</p>
<p>Adapter 1: Created VD 0</p>
<p>Adapter 1: Configured the Adapter!!</p>
<p>Exit Code: 0&#215;00</p>
<p>* En este caso en concreto, es una simulacion, los discos que pongo arriba ya estan creados en RAID 1.</p>
<p>De esta manera ya tenemos nuestro RAID1 en este disco. Podemos personalizar un poco mas la configuracion del VD modificando algunos parametros tales como Read ahead, Write Cache, BBU etc.</p>
<p>Por ejemplo:</p>
<p>Habilitamos Read Cache en Logical volume 0 y adapter 0:</p>
<p>/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Cached -L0 -a0</p>
<p>Habilitamos Read Cache en todos los VD/LD y controladoras:</p>
<p>/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Cached -LAll -aAll</p>
<p>Set Cache Policy to Cached on Adapter 0, VD 0 (target id: 0) success</p>
<p>Habilitamos la cache en disco todos los VD y Controladoras: </p>
<p>/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp EnDskCache -LAll -aAll</p>
<p>Set Disk Cache Policy to Enabled on Adapter 0, VD 0 (target id: 0) success</p>
<p>Si queremos, podemos habilitarle Write Cache para mejorar el rendimiento. Es peligroso hacerlo, por lo que es aconsejable que tengamos una bateria en nuestra controladora:</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -a0</p>
<p>Adapter 0: Get BBU Status Failed.</p>
<p>Exit Code: 0&#215;01</p>
<p>Ouch, en nuestro caso no tenemos una&#8230;</p>
<p>Lo habilitamos de igual manera:</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WB -LALL -aALL</p>
<p>Set Write Policy to WriteBack on Adapter 0, VD 0 (target id: 0) success</p>
<p>Pensandolo bien, queremos quitarlo, nos arrepentimos&#8230;</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NoCachedBadBBU -LALL -aALL</p>
<p>Set No Write Cache if bad BBU on Adapter 0, VD 0 (target id: 0) success</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leopoldomaestro.com/crear-raid1-bajo-lsi-megacli-y-cambiar-algunos-parametros-del-raid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chuleta de Megacli para controladoras LSI bajo Linux</title>
		<link>http://www.leopoldomaestro.com/chuleta-de-megacli-para-controladoras-lsi-bajo-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=chuleta-de-megacli-para-controladoras-lsi-bajo-linux</link>
		<comments>http://www.leopoldomaestro.com/chuleta-de-megacli-para-controladoras-lsi-bajo-linux/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 23:05:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Almacenamiento]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[chuleta]]></category>
		<category><![CDATA[lsi]]></category>
		<category><![CDATA[megacli]]></category>

		<guid isPermaLink="false">http://www.leopoldomaestro.com/?p=433</guid>
		<description><![CDATA[En servidores Linux, a veces necesitamos monitorizar nuestro RAID de discos que estan bajo controladoras LSI, ya sea el caso de Supermicro con sus LSI Mezzanine (9260) bajo plataformas 2U TWIN 2, Dell con sus versiones PERC de LSI o las Asus Pike. Para ello, mostrare una chuleta de la utilidad propietaria y &#8220;no-muy-amigable&#8221; de [...]]]></description>
			<content:encoded><![CDATA[<p>En servidores Linux, a veces necesitamos monitorizar nuestro RAID de discos que estan bajo controladoras LSI, ya sea el caso de Supermicro con sus LSI Mezzanine (9260) bajo plataformas 2U TWIN 2, Dell con sus versiones PERC de LSI o las Asus Pike. Para ello, mostrare una chuleta de la utilidad propietaria y &#8220;no-muy-amigable&#8221; de LSI, Megacli.</p>
<p><strong>Mostrar informacion de adaptadores y status</strong>:</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll</p>
<p>Adapter #0</p>
<p>===================================================================                    Versions<br />
                ================<br />
Product Name    : MegaRAID SAS 8704EM2<br />
Serial No       : P488060910<br />
FW Package Build: 9.0.1-0034</p>
<p>                Image Versions in Flash:<br />
                ================<br />
FW Version         : 1.20.32-0512<br />
BIOS Version       : 2.01.00<br />
WebBIOS Version    : 1.1-49-e_15-Rel<br />
Ctrl-R Version     : 1.02-012B<br />
Preboot CLI Version: 01.00-021:#%00004<br />
Boot Block Version : 1.00.00.01-0011<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>Mostrar el virtual drive/logical drive 0 en el adaptador 0</strong>:</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -L0 -a0</p>
<p>Adapter 0 &#8212; Virtual Drive Information:<br />
Virtual Drive: 0 (Target Id: 0)<br />
Name                :<br />
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0<br />
Size                : 110.827 GB<br />
State               : Optimal<br />
Strip Size          : 64 KB<br />
Number Of Drives    : 2<br />
Span Depth          : 1<br />
Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU<br />
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU<br />
Access Policy       : Read/Write<br />
Disk Cache Policy   : Disk&#8217;s Default<br />
Encryption Type     : None</p>
<p><strong>Mostrar como esta la funcion de autorebuild para los volumenes RAID que tengamos</strong>:</p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpAutoRbld -Dsply -a0</p>
<p>Adapter 0: AutoRebuild is Enabled.</p>
<p><strong>Habilitar autorebuild para los volumenes RAID que tengamos:</strong></p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -Enbl -a0</p>
<p>Adapter 0: AutoRebuild is Enabled.</p>
<p><strong>Deshabilitar autorebuild para los volumenes RAID que tengamos:</strong></p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -AdpAutoRbld -Dsbl -a0</p>
<p>Adapter 0: AutoRebuild is Disabled.</p>
<p><strong>Mostrar los dispositivos fisicos (discos) que tenemos conectados a la primera controladora que tengamos:</strong></p>
<p>[root@localhost ~]# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0</p>
<p>Adapter #0</p>
<p>Enclosure Device ID: 252<br />
Slot Number: 0<br />
Enclosure position: 0<br />
Device Id: 4<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
PD Type: SATA<br />
Raw Size: 111.790 GB [0xdf94bb0 Sectors]<br />
Non Coerced Size: 111.290 GB [0xde94bb0 Sectors]<br />
Coerced Size: 110.827 GB [0xdda7800 Sectors]<br />
Firmware state: Online, Spun Up<br />
SAS Address(0): 0x3d5648536a8b424c<br />
Connected Port Number: 0(path0)<br />
Inquiry Data: GS01103909280024    FM-25S2S-120GBP2                        2.1<br />
FDE Capable: Not Capable<br />
FDE Enable: Disable<br />
Secured: Unsecured<br />
Locked: Unlocked<br />
Needs EKM Attention: No<br />
Foreign State: None<br />
Device Speed: 3.0Gb/s<br />
Link Speed: 3.0Gb/s<br />
Media Type: Hard Disk Device<br />
Drive Temperature :0C (32.00 F)</p>
<p>Enclosure Device ID: 252<br />
Slot Number: 1<br />
Enclosure position: 0<br />
Device Id: 5<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
PD Type: SATA<br />
Raw Size: 111.790 GB [0xdf94bb0 Sectors]<br />
Non Coerced Size: 111.290 GB [0xde94bb0 Sectors]<br />
Coerced Size: 110.827 GB [0xdda7800 Sectors]<br />
Firmware state: Online, Spun Up<br />
SAS Address(0): 0x3d5647506b82414a<br />
Connected Port Number: 1(path0)<br />
Inquiry Data: GS03104110140009    FM-25S2S-120GBP2                        2.1<br />
FDE Capable: Not Capable<br />
FDE Enable: Disable<br />
Secured: Unsecured<br />
Locked: Unlocked<br />
Needs EKM Attention: No<br />
Foreign State: None<br />
Device Speed: 3.0Gb/s<br />
Link Speed: 3.0Gb/s<br />
Media Type: Hard Disk Device<br />
Drive Temperature :0C (32.00 F)</p>
<p>Enclosure Device ID: 252<br />
Slot Number: 2<br />
Enclosure position: 0<br />
Device Id: 6<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
PD Type: SATA<br />
Raw Size: 1.819 TB [0xe8e088b0 Sectors]<br />
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]<br />
Coerced Size: 1.817 TB [0xe8b6d000 Sectors]<br />
Firmware state: Online, Spun Up<br />
SAS Address(0): 0x81709e2e88d6feb1<br />
Connected Port Number: 2(path0)<br />
Inquiry Data:       JK1171YBJ07VSFHitachi HDS722020ALA330                 JKAOA28A<br />
FDE Capable: Not Capable<br />
FDE Enable: Disable<br />
Secured: Unsecured<br />
Locked: Unlocked<br />
Needs EKM Attention: No<br />
Foreign State: None<br />
Device Speed: 3.0Gb/s<br />
Link Speed: 3.0Gb/s<br />
Media Type: Hard Disk Device<br />
Drive Temperature :0C (32.00 F)</p>
<p>Enclosure Device ID: 252<br />
Slot Number: 3<br />
Enclosure position: 0<br />
Device Id: 7<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
PD Type: SATA<br />
Raw Size: 1.819 TB [0xe8e088b0 Sectors]<br />
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]<br />
Coerced Size: 1.817 TB [0xe8b6d000 Sectors]<br />
Firmware state: Online, Spun Up<br />
SAS Address(0): 0x81709e2e88d5f7b1<br />
Connected Port Number: 3(path0)<br />
Inquiry Data:       JK1171YBJ07ULFHitachi HDS722020ALA330                 JKAOA28A<br />
FDE Capable: Not Capable<br />
FDE Enable: Disable<br />
Secured: Unsecured<br />
Locked: Unlocked<br />
Needs EKM Attention: No<br />
Foreign State: None<br />
Device Speed: 3.0Gb/s<br />
Link Speed: 3.0Gb/s<br />
Media Type: Hard Disk Device<br />
Drive Temperature :0C (32.00 F)</p>
<p>En el proximo post mas informacion de como crear un RAID o hacer un autorebuild desde la utilidad Megacli sin tener que reiniciar para entrar en la Web GUI de LSI.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leopoldomaestro.com/chuleta-de-megacli-para-controladoras-lsi-bajo-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Herramientas de información de hardware en Linux</title>
		<link>http://www.leopoldomaestro.com/herramientas-de-informacion-de-hardware-en-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=herramientas-de-informacion-de-hardware-en-linux</link>
		<comments>http://www.leopoldomaestro.com/herramientas-de-informacion-de-hardware-en-linux/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 22:41:21 +0000</pubDate>
		<dc:creator>leopoldomaestro</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[biosdecode]]></category>
		<category><![CDATA[dmidecode]]></category>
		<category><![CDATA[lshw]]></category>

		<guid isPermaLink="false">http://www.leopoldomaestro.com/?p=105</guid>
		<description><![CDATA[Hay algunas utilidades en Linux que pueden reportarnos información muy detallada sobre nuestro hardware, velocidad del bus, configuración exacta de memoria, configuración de la placa, tipo y velocidad de la CPU&#8230; Enumero algunas de ellas: LSHW Esta fantastica utilidad nos permite tener un reporte detallado de nuestro hardware en sistemas con soporte DMI(SMBIOS). Instalación DEBIAN/Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>Hay algunas utilidades en Linux que pueden reportarnos información muy detallada sobre nuestro hardware, velocidad del bus, configuración exacta de memoria, configuración de la placa, tipo y velocidad de la CPU&#8230;</p>
<p>Enumero algunas de ellas:</p>
<p><strong>LSHW</strong></p>
<p>Esta fantastica utilidad nos permite tener un reporte detallado de nuestro hardware en sistemas con soporte <a href="http://en.wikipedia.org/wiki/Desktop_Management_Interface">DMI(SMBIOS)</a>.</p>
<p><strong>Instalación</strong></p>
<blockquote><p><strong>DEBIAN/Ubuntu</strong> # apt-get install lshw (como root, si no fuesemos root, usariamos sudo apt-get install lshw.<br />
<strong>Derivados de Redhat</strong> # yum install lshw</p></blockquote>
<p>Si no esta en el repositorio oficial, siempre podemos usar el de <strong><a href="http://dag.wieers.com/packages/lshw/">DAG</a></strong></p>
<p><strong>USO</strong></p>
<p># lshw </p>
<p><strong>BIOSDECODE</strong></p>
<p>BiosDecode es una herramienta que permite analizar la memoria de la BIOS para imprimir todas las estructuras (o puntos de entrada) conocidos.</p>
<p><strong>Ejemplo</strong>:</p>
<blockquote><p>
- SMBIOS (System Management BIOS)<br />
- DMI (Desktop Management Interface, a legacy version of SMBIOS)<br />
- SYSID<br />
- PNP (Plug and Play)<br />
- ACPI (Advanced Configuration and Power Interface)<br />
- BIOS32 (BIOS32 Service Directory)<br />
- PIR (PCI IRQ Routing)<br />
- 32OS (BIOS32 Extension, Compaq-specific)<br />
- VPD (Vital Product Data, IBM-specific)<br />
- FJKEYINF (Application Panel, Fujitsu-specific)
</p></blockquote>
<p>* Las tablas DMI no solo muestran la información actual del hardware, si no que es posible conocer cuales son los limites de CPU, memoria etc.</p>
<p><strong>DMIDECODE</strong></p>
<p>Todo esto esta muy bien, pero BiosDecode no es &#8220;human-readable&#8221; por lo que necesitamos otra herramienta que nos facilite la información en un formato legible. Aquí es donde entra en liza dmidecode. Esta herramienta permite volcar una tabla DMI a la pantalla, mostrando números de serie, revision de la BIOS, descripción del hardware etc.</p>
<p><strong>USO</strong></p>
<blockquote><p>
# dmidecode &#8211;type palabra/número</p>
<p><strong>Ejemplo con palabras</strong>:</p>
<p>dmidecode &#8211;type processor</p>
<p><strong>Ejemplo con números</strong></p>
<p>dmidecode &#8211;type 39 (powersupply)
</p></blockquote>
<p><strong>Tabla de tipos DMI</strong>:</p>
<blockquote><p>
# Type 	Short Description<br />
0 	BIOS<br />
1 	System<br />
2 	Base Board<br />
3 	Chassis<br />
4 	Processor<br />
5 	Memory Controller<br />
6 	Memory Module<br />
7 	Cache<br />
8 	Port Connector<br />
9 	System Slots<br />
10 	On Board Devices<br />
11 	OEM Strings<br />
12 	System Configuration Options<br />
13 	BIOS Language<br />
14 	Group Associations<br />
15 	System Event Log<br />
16 	Physical Memory Array<br />
17 	Memory Device<br />
18 	32-bit Memory Error<br />
19 	Memory Array Mapped Address<br />
20 	Memory Device Mapped Address<br />
21 	Built-in Pointing Device<br />
22 	Portable Battery<br />
23 	System Reset<br />
24 	Hardware Security<br />
25 	System Power Controls<br />
26 	Voltage Probe<br />
27 	Cooling Device<br />
28 	Temperature Probe<br />
29 	Electrical Current Probe<br />
30 	Out-of-band Remote Access<br />
31 	Boot Integrity Services<br />
32 	System Boot<br />
33 	64-bit Memory Error<br />
34 	Management Device<br />
35 	Management Device Component<br />
36 	Management Device Threshold Data<br />
37 	Memory Channel<br />
38 	IPMI Device<br />
39 	Power Supply
</p></blockquote>
<p>Para todo lo demas man dmidecode <img src='http://www.leopoldomaestro.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.leopoldomaestro.com/herramientas-de-informacion-de-hardware-en-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

