<?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>hdd &#8211; SMsoft &#8211; informatica e dintorni</title>
	<atom:link href="https://blog.smsoft.it/tag/hdd/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.smsoft.it</link>
	<description>consigli settimanali su MacOS, GNU/Linux ed Open Source</description>
	<lastBuildDate>Tue, 07 Oct 2014 09:30:26 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=74468</generator>
	<item>
		<title>Linux: leggere dischi connessi (Partition Table)  senza riavviare</title>
		<link>https://blog.smsoft.it/2014/10/07/linux-leggere-dischi-connessi-partition-table-senza-riavviare/</link>
					<comments>https://blog.smsoft.it/2014/10/07/linux-leggere-dischi-connessi-partition-table-senza-riavviare/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 07 Oct 2014 09:30:26 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[partition table]]></category>
		<category><![CDATA[rescan]]></category>
		<category><![CDATA[scan]]></category>
		<guid isPermaLink="false">http://blog.smsoft.it/?p=2945</guid>

					<description><![CDATA[Nota: C&#8217;è un articolo più recente, prova a leggerlo. Questa esigenza si potrebbe avere utilizzanto un sistema VPS (Esx, virtualbox, xen, etc), dopo aver aggiunto un disco al guest senza riavviarlo. Intanto, per vedere i dischi connessi, basta digitare: [crayon-6a3c5886ac6cf279832079/] Per forzare il guest a fare il rescan della tabella delle partizioni, si può utilizzare: ... <a title="Linux: leggere dischi connessi (Partition Table)  senza riavviare" class="read-more" href="https://blog.smsoft.it/2014/10/07/linux-leggere-dischi-connessi-partition-table-senza-riavviare/" aria-label="Per saperne di più su Linux: leggere dischi connessi (Partition Table)  senza riavviare">Leggi tutto</a>]]></description>
										<content:encoded><![CDATA[<p>Nota: <a href="http://blog.smsoft.it/2016/08/09/debian-aggiungere-un-disco-un-virtual-host-senza-riavviare/">C&#8217;è un articolo più recente, prova a leggerlo</a>.</p>
<p>Questa esigenza si potrebbe avere utilizzanto un sistema VPS (Esx, virtualbox, xen, etc), dopo aver aggiunto un disco al guest senza riavviarlo.</p>
<p>Intanto, per vedere i dischi connessi, basta digitare:</p><pre class="urvanov-syntax-highlighter-plain-tag">fdisk -l
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00018aa0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    80383999    40190976   83  Linux
/dev/sda2        80386046    83884031     1748993    5  Extended
/dev/sda5        80386048    83884031     1748992   82  Linux swap / Solaris</pre><p></p>
<p>Per forzare il guest a fare il rescan della tabella delle partizioni, si può utilizzare:</p><pre class="urvanov-syntax-highlighter-plain-tag">echo "- - -" > /sys/class/scsi_host/host0/scan</pre><p></p>
<p>ATTENZIONE: se il disco non è connesso ad host0, non verrà visualizzato. In questo caso bisogna forzare il reload dei vari canali disponibili.<br />
Vediamo quali sono:</p><pre class="urvanov-syntax-highlighter-plain-tag">ls /sys/class/scsi_host/</pre><p>risponde qualcosa tipo:</p><pre class="urvanov-syntax-highlighter-plain-tag">host0  host1  host2</pre><p>e quindi ripetere anche per host1 ed host2:</p><pre class="urvanov-syntax-highlighter-plain-tag">echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan</pre><p></p>
<p>e sistemi con RAID o dischi SAS:</p><pre class="urvanov-syntax-highlighter-plain-tag">echo 1 > /sys/block/sdd/device/rescan</pre><p></p>
<p>Infine, per vedere se il disco è ora disponibile, digitare nuovamente:</p><pre class="urvanov-syntax-highlighter-plain-tag">fdisk -l
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00018aa0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    80383999    40190976   83  Linux
/dev/sda2        80386046    83884031     1748993    5  Extended
/dev/sda5        80386048    83884031     1748992   82  Linux swap / Solaris

Disk /dev/sdb: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table</pre><p></p>
<p>enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.smsoft.it/2014/10/07/linux-leggere-dischi-connessi-partition-table-senza-riavviare/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
