<?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; RAID</title>
	<atom:link href="http://www.leopoldomaestro.com/tag/raid/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>Expandir un RAID en Linux</title>
		<link>http://www.leopoldomaestro.com/expandir-un-raid-en-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=expandir-un-raid-en-linux</link>
		<comments>http://www.leopoldomaestro.com/expandir-un-raid-en-linux/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 22:40:43 +0000</pubDate>
		<dc:creator>leopoldomaestro</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[mdadm]]></category>

		<guid isPermaLink="false">http://www.leopoldomaestro.com/?p=268</guid>
		<description><![CDATA[Desde algunas versiones atras del Kernel 2.6.x (en concreto la 2.6.17) y MDADM 2.4.0, se añadio la posibilidad de expandir arrays RAID al añadir discos duros, ya que hasta ese instante, los discos se añadian como Spare (Reserva) al array. De hecho, esta caracteristica posibilita expandirlos tal como podría hacerlo una solución comercial (como NetApp, [...]]]></description>
			<content:encoded><![CDATA[<p>Desde algunas versiones atras del Kernel 2.6.x (en concreto la 2.6.17) y MDADM 2.4.0, se añadio la posibilidad de expandir arrays RAID al añadir discos duros, ya que hasta ese instante, los discos se añadian como Spare (Reserva) al array. De hecho, esta caracteristica posibilita expandirlos tal como podría hacerlo una solución comercial (como NetApp, por ejemplo).</p>
<p><strong>Consideraciones previas</strong>:</p>
<p>1- Haz backup de los datos más importantes antes de realizar este paso<br />
2- Reemplaza /dev/md1 con el dispositivo de tu array creado<br />
3- Este proceso va a redimensionar tu array, es decir, si tienes 3 discos duros y añades un 4, este no sera un disco de reserva/redundancia, si no que aumentaras el espacio disponible en el array.</p>
<blockquote><p>
mdadm &#8211;add /dev/md1 /dev/sdf1<br />
mdadm &#8211;grow /dev/md1 &#8211;raid-devices=4
</p></blockquote>
<p>El primer comando añade el disco al array, y el segundo expande el array a 4 discos. *</p>
<p>* Remodelar el array puede tardar un periodo de tiempo considerable.</p>
<p><strong>Comprobar y redimensionar el sistema de ficheros</strong>:</p>
<blockquote><p>
fsck.ext3 /dev/md1<br />
resize2fs /dev/md1
</p></blockquote>
<p>Si todo ha ido bien, remontamos el punto de montaje y ya deberiamos disfrutar del nuevo tamaño <img src='http://www.leopoldomaestro.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leopoldomaestro.com/expandir-un-raid-en-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Aumentar velocidad de resync en software raid</title>
		<link>http://www.leopoldomaestro.com/aumentar-velocidad-de-resync-en-software-raid/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aumentar-velocidad-de-resync-en-software-raid</link>
		<comments>http://www.leopoldomaestro.com/aumentar-velocidad-de-resync-en-software-raid/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 01:13:23 +0000</pubDate>
		<dc:creator>leopoldomaestro</dc:creator>
				<category><![CDATA[RAID]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[smart]]></category>

		<guid isPermaLink="false">http://www.leopoldomaestro.com/?p=250</guid>
		<description><![CDATA[Cuando falla un disco en un software RAID, es probable que la velocidad de resync sea algo lenta. Si no estamos usando el sistema, podemos aumentar la velocidad de resincronización modificando lo siguiente: /proc/sys/dev/raid/speed_limit_max /proc/sys/dev/raid/speed_limit_min Ejemplo: echo 100000 > /proc/sys/dev/raid/speed_limit_min]]></description>
			<content:encoded><![CDATA[<p>Cuando falla un disco en un software RAID, es probable que la velocidad de resync sea algo lenta. Si no estamos usando el sistema, podemos aumentar la velocidad de resincronización modificando lo siguiente:</p>
<p>/proc/sys/dev/raid/speed_limit_max<br />
/proc/sys/dev/raid/speed_limit_min</p>
<p><strong>Ejemplo</strong>:</p>
<blockquote><p>
echo 100000 > /proc/sys/dev/raid/speed_limit_min
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.leopoldomaestro.com/aumentar-velocidad-de-resync-en-software-raid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

