<?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>Hypervisor.fr &#187; vmhba</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;tag=vmhba" rel="self" type="application/rss+xml" />
	<link>http://www.hypervisor.fr</link>
	<description>French Bare-Metal weblog</description>
	<lastBuildDate>Wed, 26 Jun 2024 22:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FC to iSCSI failover (revival)</title>
		<link>http://www.hypervisor.fr/?p=3164</link>
		<comments>http://www.hypervisor.fr/?p=3164#comments</comments>
		<pubDate>Mon, 18 Jul 2011 00:00:20 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[nexenta]]></category>
		<category><![CDATA[vmhba]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3164</guid>
		<description><![CDATA[Nous sommes tombé par hasard sur un vieux (2008) post de Scott Lowe au sujet de la possibilité d&#8217;utiliser l&#8217;initiateur logiciel iSCSI d&#8217;ESX comme failover au Fibre Channel, un peu comme &#8220;Connectivity Fault Tolerance&#8221; de CSV mais en mieux car contrairement à SMB, iSCSI est fait pour ça. Ce post n&#8217;a semble t&#8217;il pas abouti pour [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Nous sommes tombé par hasard sur <a href="http://blog.scottlowe.org/2008/04/28/fibre-channel-to-software-iscsi-failover-failures/" target="_blank">un vieux (2008) post de Scott Lowe au sujet de la possibilité d&#8217;utiliser l&#8217;initiateur logiciel iSCSI d&#8217;ESX comme failover au Fibre Channel</a>, un peu comme <a href="http://www.hypervisor.fr/?p=1202" target="_blank">&#8220;Connectivity Fault Tolerance&#8221; de CSV</a> mais en mieux car contrairement à SMB, iSCSI est fait pour ça. Ce post n&#8217;a semble t&#8217;il pas abouti pour des raisons de fonctionnement à l&#8217;époque mais nous comptons bien le dépoussiérer un peu&#8230;</p>
<p style="text-align: justify;">Et justement, en ce moment nous sommes en pleine découverte de la configuration FC sur Nexenta (<a href="http://docs.oracle.com/cd/E23824_01/html/821-1459/glddq.html" target="_blank">plus particulièrement sur la configuration du mode target</a>) qui est un Unified Storage System  tout à fait capable de présenter la même LUN (<a href="http://www.nexenta.com/corp/content/view/109/119/" target="_blank">un zvol pour être précis</a>) via FC et iSCSI. Voici donc une petite démo en 4 étapes :</p>
<ol>
<li>Coupure de vmhba1 (prefered path) &gt; Bascule sur vmhba2</li>
<li>Coupure de vmhba2 &gt; Bascule sur vmhba32 (iSCSI)</li>
<li>Restauration de vmhba2 &gt; Aucun effet</li>
<li>Restauration de vmhba1 &gt; bascule sur vmhba1</li>
</ol>
<p><object width="320" height="284"><param name="movie" value="http://www.dailymotion.com/swf/video/xjxk8q?hideInfos=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="wmode" value="transparent"></param><embed type="application/x-shockwave-flash" src="http://www.dailymotion.com/swf/video/xjxk8q?hideInfos=1" width="320" height="284" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p style="text-align: justify;">Tout d&#8217;abord, vous remarquerez que ça bombarde à 10k+ IOPS (alors que le serveur Nexenta est une petite VM), remettez vous, <a href="http://bigip-blogs-adc.oracle.com/brendan/entry/test" target="_blank">c&#8217;est l&#8217;effet ZFS</a> <img src='http://www.hypervisor.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align: justify;">Plus sérieusement, on remarque que <strong>le failover se fait dans le sens croissant des vmhba</strong>, ce qui règle le problème du choix d&#8217;iSCSI qu&#8217;en dernier recours étant donné que l&#8217;initiateur est toujours à 32 ou plus. De plus le failover se fait dans un délais raisonnable de <strong>10 secondes</strong> (<a href="http://files.hypervisor.fr/img/MPIO.png" target="_blank">contre 30sec pour MPIO de Windows 2008 R2 et donc d&#8217;Hyper-V</a>) <span style="text-decoration: line-through;">mais cette solution pose un réel problème si le chemin préféré venait a être le seul à ne PAS être restauré car le chemin iSCSI est considéré comme les autres donc restera &#8220;valable&#8221;</span> (cf <a href="http://www.hypervisor.fr/?p=4389" target="_blank">FC to iSCSI failover : MRU ranking</a>). Mais nous pensons que cela reste néanmoins une solution à connaitre et peut être à envisager pour les plus parano du HA.</p>
<p style="text-align: justify;">Et le plus drôle dans l&#8217;histoire c&#8217;est que vous n&#8217;avez rien à configurer !</p>
<p style="text-align: justify;">PS: Ça doit être possible à faire avec les autres hyperviseurs évidement&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=3164</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>[PSH] Liste des WorldWideName</title>
		<link>http://www.hypervisor.fr/?p=2703</link>
		<comments>http://www.hypervisor.fr/?p=2703#comments</comments>
		<pubDate>Fri, 25 Feb 2011 00:50:16 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[HBA]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[vmhba]]></category>
		<category><![CDATA[WWN]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=2703</guid>
		<description><![CDATA[Tout pareil que notre confrère cloudydude.fr vmdude.fr, des fois nous avons besoin de la liste des WWN par host ou par cluster. Sauf que nous on fait dans le dirty oneliner :

get-vmhost -location &#34;mon_beau_cluster&#34;&#124;get-view&#124;select name,@&#123;N=&#34;WWN&#34;;E=&#123;get-view $_.ConfigManager.StorageSystem&#124;%&#123;$_.StorageDeviceInfo.HostBusAdapter&#124;?&#123;$_ -is &#91;VMware.Vim.HostFibreChannelHba&#93;&#125;&#125;&#124;select @&#123;N=&#34;WWN&#34;;E=&#123;&#34;{0:x}&#34; -f $_.PortWorldWideName&#125;&#125;&#125;&#125;&#124;select name -ExpandProperty WWN&#124;select name, @&#123;N=&#34;WWN&#34;;E=&#123;$_.WWN.substring&#40;0,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;2,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;4,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;6,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;8,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;10,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;12,2&#41;+&#34;:&#34;+$_.WWN.substring&#40;14,2&#41;&#125;&#125;&#124;sort name


PS : Et nous on pense que les &#8220;:&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Tout pareil que notre confrère <del datetime="2011-02-25T08:13:22+00:00">cloudydude.fr</del> <a href="http://www.vmdude.fr">vmdude.fr</a>, <a href="http://www.vmdude.fr/scripts/oh-mon-wwn-ou-es-tu/" target="_blank">des fois nous avons besoin de la liste des WWN</a> par host ou par cluster. Sauf que nous on fait dans le dirty oneliner :</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;">get<span style="color: pink;">-</span>vmhost <span style="color: pink;">-</span>location <span style="color: #800000;">&quot;mon_beau_cluster&quot;</span><span style="color: pink;">|</span>get<span style="color: pink;">-</span>view<span style="color: pink;">|</span>select name<span style="color: pink;">,@</span><span style="color: #000000;">&#123;</span>N<span style="color: pink;">=</span><span style="color: #800000;">&quot;WWN&quot;</span>;E<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span>get<span style="color: pink;">-</span>view <span style="color: #000080;">$_</span>.ConfigManager.StorageSystem<span style="color: pink;">|%</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.StorageDeviceInfo.HostBusAdapter<span style="color: pink;">|?</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span> <span style="color: #FF0000;">-is</span> <span style="color: #000000;">&#91;</span>VMware.Vim.HostFibreChannelHba<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">|</span>select <span style="color: pink;">@</span><span style="color: #000000;">&#123;</span>N<span style="color: pink;">=</span><span style="color: #800000;">&quot;WWN&quot;</span>;E<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;{0:x}&quot;</span> <span style="color: #FF0000;">-f</span> <span style="color: #000080;">$_</span>.PortWorldWideName<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">|</span>select name <span style="color: #008080; font-style: italic;">-ExpandProperty</span> WWN<span style="color: pink;">|</span>select name<span style="color: pink;">,</span> <span style="color: pink;">@</span><span style="color: #000000;">&#123;</span>N<span style="color: pink;">=</span><span style="color: #800000;">&quot;WWN&quot;</span>;E<span style="color: pink;">=</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">0</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">2</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">4</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">6</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">8</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">10</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">12</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: pink;">+</span><span style="color: #000080;">$_</span>.WWN.substring<span style="color: #000000;">&#40;</span><span style="color: #804000;">14</span><span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: pink;">|</span>sort name</pre></div></div>

<p><img class="aligncenter" title="WWN" src="http://hypervisor.free.fr/img/wwn.png" alt="" width="492" height="356" /></p>
<p>PS : Et nous on pense que les &#8220;:&#8221; c&#8217;est important <img src='http://www.hypervisor.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=2703</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ze Ultimate LUN path dead report &#8211; MAJ</title>
		<link>http://www.hypervisor.fr/?p=2582</link>
		<comments>http://www.hypervisor.fr/?p=2582#comments</comments>
		<pubDate>Thu, 06 Jan 2011 15:39:50 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[vmhba]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=2582</guid>
		<description><![CDATA[MAJ 12.09.2013 : Nouvelle version 2.3 collecte des infos supplémentaires sur les LUN et permet d&#8217;ouvrir l&#8217;html après exécution (-invokehtml) et ne rien afficher dans la console (-noconsole)


MAJ 07.06.2013 : Nouvelle version 2.1 plus rapide et dotée des nouveaux paramètres -onlyfree (pour ne retourner que les LUN vides) et -minVMFSsizeGB (pour ne retourner que les [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><em><span style="color: #ff0000;">MAJ 12.09.2013</span><em> : Nouvelle version 2.3 collecte des infos supplémentaires sur les LUN et permet d&#8217;ouvrir l&#8217;html après exécution (-invokehtml) et ne rien afficher dans la console (-noconsole)</em></em></p>
<p style="text-align: center;"><em><em><a href="http://files.hypervisor.fr/img/dslist23.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/dslist23.png" alt="" width="346" height="194" /></a><br />
</em></em></p>
<p style="text-align: justify;"><em><span style="color: #ff0000;">MAJ 07.06.2013</span><em> : Nouvelle version 2.1 plus rapide et dotée des nouveaux paramètres -onlyfree (pour ne retourner que les LUN vides) et -minVMFSsizeGB (pour ne retourner que les datastore d&#8217;une taille minimum de xGB &#8211; 1GB par défaut)</em></em></p>
<p style="text-align: justify;">Avec la cmd-let <a href="http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/Get-ScsiLunPath.html">Get-ScsiLunPath</a>, il est très facile de repérer les &#8220;dead path&#8221; sur un ou une liste d&#8217;ESX et c&#8217;est d&#8217;ailleurs de cette façon que <a href="http://www.hypervisor.fr/?p=1958">vCheck v5+</a> les obtient. Le problème est qu&#8217;il n&#8217;est <strong>pas facile ensuite de faire le rapport avec le datastore</strong> concerné et si c&#8217;est bien d&#8217;un datastore dont il est question (cela peut être un périphérique de stockage autre comme un lecteur cdrom ou une clef usb par exemple).</p>
<p style="text-align: justify;">Nous avons donc créé pour cela un script avec la collaboration de notre ami JJR (qui souhaite conserver l&#8217;anonymat dans cette affaire) qui nous a été d&#8217;une grande aide en ce qui concerne l&#8217;optimisation du script lorsqu&#8217;il est exécuté sur un gros environnement. <strong>Ce script génère une liste des chemins de LUN (dead ou non selon le paramétrage)</strong> avec les informations suivantes :</p>
<ul>
<li><strong>ClusterName </strong>: nom du cluster</li>
<li><strong>ESX </strong>: nom de l&#8217;ESX</li>
<li><strong>CanonicalName </strong>: LUN identifier</li>
<li><strong>Runtime </strong>: vmhba&lt;Adapter&gt;:C&lt;Channel&gt;:T&lt;Target&gt;:L&lt;LUN&gt;</li>
<li><strong>State </strong>: active, standby ou dead</li>
<li><strong>IsWorkingPath </strong>: true ou false</li>
<li><strong>LunSize </strong>: exprimé en MB, GB ou TB (le cas échéant)</li>
<li><strong>Datastore </strong>: nom du datastore VMFS (le cas échéant)</li>
<li><strong>UUID </strong>: VMFS UUID (ou &#8220;cdrom&#8221; si le périphérique est un lecteur optique)</li>
</ul>
<p>Pour plus d&#8217;informations, nous vous recommandons de consulter la kb <a href="http://kb.vmware.com/kb/1014953">Identifying disks when working with VMware ESX</a></p>
<p>Voici le détails et les valeurs par défaut des paramètres disponibles :</p>
<ul>
<li><strong>cluname </strong>: permet de spécifier un cluster (<span style="color: #ff0000;">parcours tous les hosts par défaut</span>)</li>
<li><strong>nofile </strong>: n&#8217;affiche que le résultat dans la console et ne génère pas de fichier (&#8220;0&#8243; par défaut)*</li>
<li><strong>html </strong>: génère un fichier html au lieu d&#8217;un csv (&#8220;0&#8243; par défaut)*</li>
<li><strong>onlydead </strong>: ne liste que les chemins &#8220;dead&#8221; (&#8220;1&#8243; par défaut)</li>
<li><strong>onlyvmfs </strong>: ne liste que les chemins de LUN comportant un datastore VMFS (&#8220;0&#8243; par défaut)</li>
</ul>
<p><span style="font-size: x-small;">* le fichier est généré dans le répertoire de travail.</span></p>
<p>Exemple d&#8217;usage pour afficher tous les chemins d&#8217;un cluster :</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;">.\Get<span style="color: pink;">-</span>DeadPath<span style="color: pink;">+</span>.ps1 <span style="color: pink;">-</span>cluname <span style="color: #800000;">&quot;CLU01&quot;</span> <span style="color: pink;">-</span>html <span style="color: #800000;">&quot;1&quot;</span> <span style="color: pink;">-</span>onlydead <span style="color: #800000;">&quot;0&quot;</span></pre></div></div>

<p style="text-align: center;"><a href="http://hypervisor.free.fr/img/deadpathfull.jpg" title="deadpathfull" rel="lightbox[2582]"><img class="aligncenter size-large wp-image-2583" title="deadpathfull" src="http://www.hypervisor.fr/wp-content/uploads/2011/01/deadpathfull-1024x376.jpg" alt="" width="491" height="181" /></a></p>
<p style="text-align: left;">Exemple d&#8217;usage pour n&#8217;afficher que les chemins &#8220;dead&#8221; :</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;">.\Get<span style="color: pink;">-</span>DeadPath<span style="color: pink;">+</span>.ps1 <span style="color: pink;">-</span>html <span style="color: #800000;">&quot;1&quot;</span> <span style="color: pink;">-</span>onlydead <span style="color: #800000;">&quot;1&quot;</span></pre></div></div>

<p style="text-align: center;"><a href="http://hypervisor.free.fr/img/deadpathonly.png" title="deadpathonly" rel="lightbox[2582]"><img class="aligncenter size-full wp-image-2586" title="deadpathonly" src="http://www.hypervisor.fr/wp-content/uploads/2011/01/deadpathonly.png" alt="" width="501" height="91" /></a></p>
<p style="text-align: left;">Nous ne manquerons pas mettre à jour vCheck en conséquence.</p>
<div class="wp-caption aligncenter" style="width: 85px"><a href="http://files.hypervisor.fr/scripts/Get-DeadPath2+.ps1"><img class="  " title="Get-DeadPath2+" src="http://hypervisor.free.fr/img/download_icon_300.png" alt="" width="75" height="64" /></a><p class="wp-caption-text">download</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=2582</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
