<?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>chequeo de discos archivos - SoyAdmin.com</title>
	<atom:link href="https://soyadmin.com/tag/chequeo-de-discos/feed/" rel="self" type="application/rss+xml" />
	<link>https://soyadmin.com/tag/chequeo-de-discos/</link>
	<description>La Recova del Informático - Linux en Español - Sysadmin, Noticias Linux y más</description>
	<lastBuildDate>Fri, 31 May 2019 13:33:22 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://soyadmin.com/wp-content/uploads/2021/03/cropped-favicon-32x32.png</url>
	<title>chequeo de discos archivos - SoyAdmin.com</title>
	<link>https://soyadmin.com/tag/chequeo-de-discos/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">147662452</site>	<item>
		<title>Terminal: Controlando la salud e integridad de nuestros discos con smartctl</title>
		<link>https://soyadmin.com/terminal-controlando-la-salud-e-integridad-de-nuestros-discos-con-smartctl/</link>
					<comments>https://soyadmin.com/terminal-controlando-la-salud-e-integridad-de-nuestros-discos-con-smartctl/#respond</comments>
		
		<dc:creator><![CDATA[Mauro]]></dc:creator>
		<pubDate>Fri, 31 May 2019 13:33:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[chequeo de discos]]></category>
		<guid isPermaLink="false">https://old.soyadmin.com/?p=1053</guid>

					<description><![CDATA[<p>Smartctl es una herramienta la cual nos permitirá realizar un testeo de nuestros Discos Rígidos, la cual nos brinda un detallado informe mediante el cual podremos verificar el funcionamiento o posibles errores que posean&#46;&#46;&#46;</p>
<p>La entrada <a href="https://soyadmin.com/terminal-controlando-la-salud-e-integridad-de-nuestros-discos-con-smartctl/">Terminal: Controlando la salud e integridad de nuestros discos con smartctl</a> se publicó primero en <a href="https://soyadmin.com">SoyAdmin.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Smartctl</strong> es una herramienta la cual nos permitirá realizar un<strong> testeo de nuestros Discos Rígidos</strong>, la cual nos brinda un detallado informe mediante el cual podremos verificar el funcionamiento o posibles errores que posean nuestras unidades&#8230; salvándonos de un buen dolorcito de cabeza.</p>


<p class="wp-block-paragraph"><strong>Primero vamos a instalarlo:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># yum install smartmontools</span></code></span></pre>

<p class="wp-block-paragraph"><strong>Luego que se instala procederemos a hacer los testeos:</strong><br /><em> Listamos los discos/particiones solo con el fin de obtener los nombres de nuestras unidades</em></p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># df -h</span>
Filesystem            Size  Used Avail <span class="hljs-keyword">Use</span>% <span class="hljs-title">Mounted</span> <span class="hljs-title">on</span>
/<span class="hljs-title">dev</span>/<span class="hljs-title">sda2</span>             897<span class="hljs-title">G</span>  380<span class="hljs-title">G</span>  471<span class="hljs-title">G</span>  45% /
/<span class="hljs-title">dev</span>/<span class="hljs-title">sda5</span>             2.0<span class="hljs-title">G</span>  383<span class="hljs-title">M</span>  1.5<span class="hljs-title">G</span>  21% /<span class="hljs-title">tmp</span>
/<span class="hljs-title">dev</span>/<span class="hljs-title">sda1</span>              99<span class="hljs-title">M</span>   32<span class="hljs-title">M</span>   62<span class="hljs-title">M</span>  34% /<span class="hljs-title">boot</span>
<span class="hljs-title">tmpfs</span>                 3.9<span class="hljs-title">G</span>     0  3.9<span class="hljs-title">G</span>   0% /<span class="hljs-title">dev</span>/<span class="hljs-title">shm</span>
/<span class="hljs-title">dev</span>/<span class="hljs-title">sdb1</span>             917<span class="hljs-title">G</span>  707<span class="hljs-title">G</span>  164<span class="hljs-title">G</span>  82% /<span class="hljs-title">hd2</span></code></span></pre>

<p class="wp-block-paragraph"><em>Aqui vemos que nuestros 2 discos son /dev/sda y /dev/sdb, esos nombres utilizaremos como ejemplos</em></p>


<p class="wp-block-paragraph"><strong>1) Detalle de la info de los discos:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># smartctl -i /dev/sda</span>
smartctl <span class="hljs-number">5.42</span> <span class="hljs-number">2011</span><span class="hljs-number">-10</span><span class="hljs-number">-20</span> r3458 &#91;x86_64-linux<span class="hljs-number">-2.6</span><span class="hljs-number">.18</span><span class="hljs-number">-498.</span>el5.lve0<span class="hljs-number">.8</span><span class="hljs-number">.80</span>] (local build)
Copyright (C) <span class="hljs-number">2002</span><span class="hljs-number">-11</span> by Bruce Allen, http:<span class="hljs-comment">//smartmontools.sourceforge.net</span>
=== START OF INFORMATION SECTION ===
Device Model:     MB1000EBNCF
Serial Number:    WCAW30756532
LU WWN Device Id: <span class="hljs-number">5</span> <span class="hljs-number">0014</span>ee <span class="hljs-number">25</span>ac27419
Firmware Version: HPG0
User Capacity:    <span class="hljs-number">1</span>,<span class="hljs-number">000</span>,<span class="hljs-number">204</span>,<span class="hljs-number">886</span>,<span class="hljs-number">016</span> bytes &#91;<span class="hljs-number">1.00</span> TB]
Sector Size:      <span class="hljs-number">512</span> bytes logical/physical
Device is:        Not in smartctl database &#91;<span class="hljs-keyword">for</span> details <span class="hljs-keyword">use</span>: -<span class="hljs-title">P</span> <span class="hljs-title">showall</span>]
<span class="hljs-title">ATA</span> <span class="hljs-title">Version</span> <span class="hljs-title">is</span>:   8
<span class="hljs-title">ATA</span> <span class="hljs-title">Standard</span> <span class="hljs-title">is</span>:  <span class="hljs-title">ATA</span>-8-<span class="hljs-title">ACS</span> <span class="hljs-title">revision</span> 6
<span class="hljs-title">Local</span> <span class="hljs-title">Time</span> <span class="hljs-title">is</span>:    <span class="hljs-title">Mon</span> <span class="hljs-title">Apr</span>  6 17:06:32 2015 <span class="hljs-title">ART</span>
<span class="hljs-title">SMART</span> <span class="hljs-title">support</span> <span class="hljs-title">is</span>: <span class="hljs-title">Available</span> - <span class="hljs-title">device</span> <span class="hljs-title">has</span> <span class="hljs-title">SMART</span> <span class="hljs-title">capability</span>.
<span class="hljs-title">SMART</span> <span class="hljs-title">support</span> <span class="hljs-title">is</span>: <span class="hljs-title">Enabled</span></code></span></pre>

<p class="wp-block-paragraph"><strong>2) Un testeo solo informativo:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># smartctl -H /dev/sda</span>
smartctl <span class="hljs-number">5.42</span> <span class="hljs-number">2011</span><span class="hljs-number">-10</span><span class="hljs-number">-20</span> r3458 &#91;x86_64-linux<span class="hljs-number">-2.6</span><span class="hljs-number">.18</span><span class="hljs-number">-498.</span>el5.lve0<span class="hljs-number">.8</span><span class="hljs-number">.80</span>] (local build)
Copyright (C) <span class="hljs-number">2002</span><span class="hljs-number">-11</span> by Bruce Allen, http:<span class="hljs-comment">//smartmontools.sourceforge.net</span>
=== START OF READ SMART DATA SECTION ===
SMART overall-health <span class="hljs-keyword">self</span>-assessment test result: PASSED</code></span></pre>

<p class="wp-block-paragraph">Este resultado nos muestra que todo esta OK.</p>


<p class="wp-block-paragraph"><strong>IMPORTANTE: Como se mostraría un error a tener muy en cuenta:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># smartctl -H /dev/sda</span>
smartctl <span class="hljs-number">5.42</span> <span class="hljs-number">2011</span><span class="hljs-number">-10</span><span class="hljs-number">-20</span> r3458 &#91;x86_64-linux<span class="hljs-number">-2.6</span><span class="hljs-number">.18</span><span class="hljs-number">-498.</span>el5.lve0<span class="hljs-number">.8</span><span class="hljs-number">.80</span>] (local build)
Copyright (C) <span class="hljs-number">2002</span><span class="hljs-number">-11</span> by Bruce Allen, http:<span class="hljs-comment">//smartmontools.sourceforge.net</span>
=== START OF READ SMART DATA SECTION ===
SMART overall-health <span class="hljs-keyword">self</span>-assessment test result: FAILED!
Drive failure expected in less than <span class="hljs-number">24</span> hours. SAVE ALL DATA.
Failed Attributes:
ID<span class="hljs-comment"># ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE</span>
<span class="hljs-number">1</span> Raw_Read_Error_Rate     <span class="hljs-number">0x002f</span>   <span class="hljs-number">001</span>   <span class="hljs-number">001</span>   <span class="hljs-number">051</span>    Pre-fail  Always   FAILING_NOW <span class="hljs-number">330223</span></code></span></pre>

<p class="wp-block-paragraph">Increíblemente <strong>el detalle muestra que el disco puede tener un fallo</strong> en las próximas 24 hs, por lo que hay que realizar una inmedita copia del contenido.</p>


<p class="wp-block-paragraph"><strong>3) Testeo a fondo, el cual detallará cualquier tipo de error o falla en los discos:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># smartctl -t long /dev/sda</span>
smartctl <span class="hljs-number">5.43</span> <span class="hljs-number">2012</span><span class="hljs-number">-06</span><span class="hljs-number">-30</span> r3573 &#91;x86_64-linux<span class="hljs-number">-2.6</span><span class="hljs-number">.32</span><span class="hljs-number">-504.1</span><span class="hljs-number">.3</span>.el6.x86_64] (local build)
Copyright (C) <span class="hljs-number">2002</span><span class="hljs-number">-12</span> by Bruce Allen, http:<span class="hljs-comment">//smartmontools.sourceforge.net</span>
=== START OF OFFLINE IMMEDIATE <span class="hljs-keyword">AND</span> <span class="hljs-keyword">SELF</span>-TEST SECTION ===
Sending command: <span class="hljs-string">"Execute SMART Extended self-test routine immediately in off-line mode"</span>.
Drive command <span class="hljs-string">"Execute SMART Extended self-test routine immediately in off-line mode"</span> successful.
Testing has begun.
Please wait <span class="hljs-number">121</span> minutes <span class="hljs-keyword">for</span> test to complete.
Test will complete after Mon Apr  <span class="hljs-number">6</span> <span class="hljs-number">19</span>:<span class="hljs-number">44</span>:<span class="hljs-number">02</span> <span class="hljs-number">2015</span>
<span class="hljs-keyword">Use</span> <span class="hljs-title">smartctl</span> -<span class="hljs-title">X</span> <span class="hljs-title">to</span> <span class="hljs-title">abort</span> <span class="hljs-title">test</span>.</code></span></pre>

<p class="wp-block-paragraph"><strong>4) Testeo rápido:</strong></p>

<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-comment">&lt;!-- wp:paragraph --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span># smartctl -t short /dev/sda<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>smartctl 5.43 2012-06-30 r3573 &#91;x86_64-linux-2.6.32-504.1.3.el6.x86_64] (local build)<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-comment">&lt;!-- /wp:paragraph --&gt;</span>
<span class="hljs-comment">&lt;!-- wp:paragraph --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>Sending command: "Execute SMART Short self-test routine immediately in off-line mode".<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>Testing has begun.<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>Please wait 2 minutes for test to complete.<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>Test will complete after Mon Apr  6 17:48:38 2015<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-comment">&lt;!-- /wp:paragraph --&gt;</span></code></span></pre>

<p class="wp-block-paragraph">Como vemos aqui, los testeos <em>«short y long»</em> son <em>offline</em> y <strong>deberemos verificar el resultado</strong> con:</p>

<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-comment"># smartctl -l selftest /dev/sda</span>
smartctl <span class="hljs-number">5.43</span> <span class="hljs-number">2012</span><span class="hljs-number">-06</span><span class="hljs-number">-30</span> r3573 &#91;x86_64-linux<span class="hljs-number">-2.6</span><span class="hljs-number">.32</span><span class="hljs-number">-504.1</span><span class="hljs-number">.3</span>.el6.x86_64] (local build)
Copyright (C) <span class="hljs-number">2002</span><span class="hljs-number">-12</span> by Bruce Allen, http:<span class="hljs-comment">//smartmontools.sourceforge.net</span>
=== START OF READ SMART DATA SECTION ===
SMART <span class="hljs-keyword">Self</span>-test log structure revision number <span class="hljs-number">1</span>
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
<span class="hljs-comment"># 1  Short offline       Completed without error       00%      9627  </span></code></span></pre>

<p class="wp-block-paragraph"><strong>Una herramienta muy útil</strong> ante cualquier tipo de aviso o sospecha de daño. A tenerlo en cuenta!</p>
<p>La entrada <a href="https://soyadmin.com/terminal-controlando-la-salud-e-integridad-de-nuestros-discos-con-smartctl/">Terminal: Controlando la salud e integridad de nuestros discos con smartctl</a> se publicó primero en <a href="https://soyadmin.com">SoyAdmin.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://soyadmin.com/terminal-controlando-la-salud-e-integridad-de-nuestros-discos-con-smartctl/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1053</post-id>	</item>
	</channel>
</rss>
