<?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; copy on write</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;tag=copy-on-write" 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>Monitoring des zpool dans cacti</title>
		<link>http://www.hypervisor.fr/?p=3828</link>
		<comments>http://www.hypervisor.fr/?p=3828#comments</comments>
		<pubDate>Wed, 18 Apr 2012 15:25:10 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[copy on write]]></category>
		<category><![CDATA[nexenta]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3828</guid>
		<description><![CDATA[L&#8217;une des best practices biens connues de ZFS est d’éviter au maximum de descendre en dessous de 20% d&#8217;espace libre sur un zpool afin d’éviter les potentiels dégradations de performances liées au Copy On Write.

Keep pool space under 80% utilization to maintain pool performance.
[...]
If the primary workload is immutable files (write once, never remove), then you can keep [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide" target="_blank">L&#8217;une des best practices biens connues de ZFS</a> est d’éviter au maximum de descendre en dessous de 20% d&#8217;espace libre sur un zpool afin d’éviter les potentiels dégradations de performances liées au Copy On Write.</p>
<blockquote>
<p style="text-align: justify;"><strong>Keep pool space under 80% utilization to maintain pool performance.</strong></p>
<p style="text-align: justify;">[...]</p>
<p style="text-align: justify;">If the primary workload is immutable files (write once, never remove), then you can keep a pool in the 95-96% utilization range.</p>
</blockquote>
<p style="text-align: justify;">Le 95-96% correspond au changement de <a href="https://blogs.oracle.com/roch/entry/doubling_exchange_performance" target="_blank">block allocation</a> contrôlé par le paramètre <strong>metaslab_df_alloc_threshold</strong> :</p>
<blockquote>
<p style="text-align: justify;">The minimum free space, in percent, which must be available in a space map to continue allocations in a first-fit fashion. Once the space_map&#8217;s free space drops below this level we dynamically switch to using best-fit allocations.</p>
</blockquote>
<p style="text-align: justify;">Vous l&#8217;aurez compris, le monitoring des zpool est primordiale. Sous Nexenta ce n&#8217;est pas chose facile car <a href="http://www.hypervisor.fr/?p=3030" target="_blank">seuls les point de montage sont visibles par défaut en snmp</a>, mais nous avons une solution simple n&#8217;impliquant que peux de modifications.</p>
<ul>
<li>ajouter les lignes suivantes dans votre conf snmp :</li>
</ul>
<blockquote><p>extend .1.3.6.1.4.1.2021.87 zpool_name /bin/bash -c &#8220;zpool list -H -o name&#8221;<br />
extend .1.3.6.1.4.1.2021.87 zpool_capacity /bin/bash -c &#8220;zpool list -H -o capacity&#8221;</p></blockquote>
<ul>
<li>copier le fichier zpool_capacity.xml dans le répertoire /resource/snmp_queries de votre cacti</li>
<li>importer les templates cacti_data_query_zfs_-_zpool_capacity.xml et cacti_graph_template_zfs_-_zpool_capacity.xml dans l&#8217;interface web cacti</li>
<li>choisissez les zpool à monitorer sur votre/vos nexenta (<strong>y compris le syspool</strong>)</li>
</ul>
<p style="text-align: center;"><img class="aligncenter" src="http://files.hypervisor.fr/img/zpool_capacity.png" alt="" width="482" height="186" /></p>
<ul>
<li>en option, créez un Threshold Template pour recevoir une alerte en cas de dépassement de 80%</li>
</ul>
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://files.hypervisor.fr/scripts/cacti_zpool_capacity.zip"><img class="            " title="zpool_capacity" src="http://files.hypervisor.fr/img/super_mario_piranha_plant.png" alt="" width="100" height="100" /></a><p class="wp-caption-text">zpool capacity</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=3828</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
