<?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>David Barbarin &#187; direct seeding</title>
	<atom:link href="https://blog.developpez.com/mikedavem/ptag/direct-seeding/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.developpez.com/mikedavem</link>
	<description>MVP DataPlatform - MCM SQL Server</description>
	<lastBuildDate>Thu, 09 Sep 2021 21:19:50 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Availability Group 2017 Direct seeding and updated default path policy</title>
		<link>https://blog.developpez.com/mikedavem/p13190/sql-server-2012/availability-group-2017-direct-seeding-and-updated-default-path-policy</link>
		<comments>https://blog.developpez.com/mikedavem/p13190/sql-server-2012/availability-group-2017-direct-seeding-and-updated-default-path-policy#comments</comments>
		<pubDate>Fri, 13 Mar 2020 18:10:10 +0000</pubDate>
		<dc:creator><![CDATA[mikedavem]]></dc:creator>
				<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[SQL Server 2017]]></category>
		<category><![CDATA[SQL Server 2019]]></category>
		<category><![CDATA[AlwaysOn;groupes de disponibilité;availability groups]]></category>
		<category><![CDATA[direct seeding]]></category>
		<category><![CDATA[sqlserver]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/mikedavem/?p=1542</guid>
		<description><![CDATA[A couple of days ago, I ran into an issue when adding a new database in direct seeding mode that led me to reconsider refreshing my skills on this feature. Going through the AG database wizard for adding database, I &#8230; <a href="https://blog.developpez.com/mikedavem/p13190/sql-server-2012/availability-group-2017-direct-seeding-and-updated-default-path-policy">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A couple of days ago, I ran into an issue when adding a new database in direct seeding mode that led me to reconsider refreshing my skills on this feature. Going through the AG database wizard for adding database, I faced the following error message …</p>
<p><span id="more-1542"></span></p>
<p><a href="http://blog.developpez.com/mikedavem/files/2020/03/158-1-AG-wizard-failed.jpg"><img src="http://blog.developpez.com/mikedavem/files/2020/03/158-1-AG-wizard-failed.jpg" alt="158 - 1 - AG wizard failed" width="774" height="497" class="alignnone size-full wp-image-1543" /></a></p>
<p>… and I was surprised by the required directories value (L:\SQL\Data) because the correct topology should be:</p>
<p>&#8211;	D:\SQL\Data (SQL data files)<br />
&#8211;	L:\SQL\Logs (SQL Log files)</p>
<p>SQL Server 2016 required to have symmetric storage layout for both AG replicas but SQL Server 2017 and above seems to tell another story as specified to the <a href="https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/automatic-seeding-secondary-replicas?view=sql-server-ver15" rel="noopener" target="_blank">BOL</a>. In my context, I got the check script executed by the wizard and it became obvious that the direct seeding feature is checking if folders based on default path values exist on each replica.</p>
<p>In my context, I got the check script executed by the wizard and it became obvious that the direct seeding feature is checking if folders based on default path values exist on each replica.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:650px;height:450px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">declare @SmoAuditLevel int<br />
&nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'AuditLevel', @SmoAuditLevel OUTPUT<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; declare @NumErrorLogs int<br />
&nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', @NumErrorLogs OUTPUT<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; declare @SmoLoginMode int<br />
&nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', @SmoLoginMode OUTPUT<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; declare @ErrorLogSizeKb int<br />
&nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread &nbsp;N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'ErrorLogSizeInKb', @ErrorLogSizeKb OUTPUT<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; declare @SmoMailProfile nvarchar(512)<br />
&nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'MailAccountName', @SmoMailProfile OUTPUT<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; declare @BackupDirectory nvarchar(512)<br />
&nbsp; &nbsp; &nbsp; &nbsp; if 1=isnull(cast(SERVERPROPERTY('IsLocalDB') as bit), 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select @BackupDirectory=cast(SERVERPROPERTY('instancedefaultdatapath') as nvarchar(512))<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'BackupDirectory', @BackupDirectory OUTPUT<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; declare @SmoPerfMonMode int<br />
&nbsp; &nbsp; &nbsp; &nbsp; exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'Performance', @SmoPerfMonMode OUTPUT<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if @SmoPerfMonMode is null<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @SmoPerfMonMode = 1000<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
SELECT<br />
@SmoAuditLevel AS [AuditLevel],<br />
ISNULL(@NumErrorLogs, -1) AS [NumberOfLogFiles],<br />
(case when @SmoLoginMode &amp;lt; 3 then @SmoLoginMode else 9 end) AS [LoginMode],<br />
ISNULL(SERVERPROPERTY(&amp;#039;instancedefaultdatapath&amp;#039;),&amp;#039;&amp;#039;) AS [DefaultFile],<br />
SERVERPROPERTY(&amp;#039;instancedefaultlogpath&amp;#039;) AS [DefaultLog],<br />
ISNULL(@ErrorLogSizeKb, 0) AS [ErrorLogSizeKb],<br />
-1 AS [TapeLoadWaitTime],<br />
ISNULL(@SmoMailProfile,N&amp;#039;&amp;#039;) AS [MailProfile],<br />
@BackupDirectory AS [BackupDirectory],<br />
@SmoPerfMonMode AS [PerfMonMode]</div></div>
<p><strong>Primary replica</strong></p>
<p><a href="http://blog.developpez.com/mikedavem/files/2020/03/158-3-AG-config-node-1-e1584122296250.jpg"><img src="http://blog.developpez.com/mikedavem/files/2020/03/158-3-AG-config-node-1-e1584122296250.jpg" alt="158 - 3 - AG config node 1" width="1000" height="69" class="alignnone size-full wp-image-1544" /></a></p>
<p><strong>Secondary replica</strong></p>
<p><a href="http://blog.developpez.com/mikedavem/files/2020/03/158-2-AG-config-node-2.jpg"><img src="http://blog.developpez.com/mikedavem/files/2020/03/158-2-AG-config-node-2.jpg" alt="158 - 2 - AG config node 2" width="964" height="82" class="alignnone size-full wp-image-1545" /></a></p>
<p>Even if directing seeding allows asymmetric storage layout, a mistake was introduced in my context and both replicas should have been aligned. It is therefore all the more important that using direct seeding capabilities from PowerShell cmdlets like <a href="https://docs.dbatools.io/#Restore-DbaDatabase" rel="noopener" target="_blank">Add-DbaAgDatabase</a> doesn&rsquo;t generate any errors and fixing the default path value for data and log require restarting the SQL Server instance. See you!</p>
<p>Hope this tips helps! </p>
<p>See you!</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2016 AlwaysOn: direct seeding et sauvegardes</title>
		<link>https://blog.developpez.com/mikedavem/p13078/sql-server-2016/sql-server-2016-alwayson-direct-seeding-et-sauvegardes</link>
		<comments>https://blog.developpez.com/mikedavem/p13078/sql-server-2016/sql-server-2016-alwayson-direct-seeding-et-sauvegardes#comments</comments>
		<pubDate>Wed, 13 Jul 2016 05:44:34 +0000</pubDate>
		<dc:creator><![CDATA[mikedavem]]></dc:creator>
				<category><![CDATA[SQL Server 2016]]></category>
		<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[availability group]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[direct seeding]]></category>
		<category><![CDATA[Groupes de disponibilités]]></category>
		<category><![CDATA[haute disponibilité]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/mikedavem/?p=1250</guid>
		<description><![CDATA[Comme promis dans mon blog précédent, nous allons parler maintenant de direct seeding et des sauvegardes. Nous avons trouvé une valeur intéressante d&#8217;état courant (LIMIT_CONCURRENT_BACKUPS) depuis un événement étendu nommé hadr_automatic_seeding_state_transition. Comme expliqué la dernière fois, cette valeur parle d&#8217;elle &#8230; <a href="https://blog.developpez.com/mikedavem/p13078/sql-server-2016/sql-server-2016-alwayson-direct-seeding-et-sauvegardes">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Comme promis dans mon blog précédent, nous allons parler maintenant de direct seeding et des sauvegardes. Nous avons trouvé une valeur intéressante d&rsquo;état courant (LIMIT_CONCURRENT_BACKUPS) depuis un événement étendu nommé hadr_automatic_seeding_state_transition. Comme expliqué la dernière fois, cette valeur parle d&rsquo;elle même et c&rsquo;est pourquoi nous allons essayer d&rsquo;effectuer une sauvegarde concurrente lorsque la base de données est concernée par une session de seeding active.</p>
<p>&gt; <a href="http://blog.dbi-services.com/sql-server-2016-alwayson-direct-seeding-and-backup-considerations/" target="_blank">Lire la suite</a> (en anglais)</p>
<p>David Barbarin<br />
MVP &amp; MCM SQL Server</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2016 AlwaysOn: Direct seeding et performance</title>
		<link>https://blog.developpez.com/mikedavem/p13076/sql-server-2016/sql-server-2016-alwayson-direct-seeding-et-performance</link>
		<comments>https://blog.developpez.com/mikedavem/p13076/sql-server-2016/sql-server-2016-alwayson-direct-seeding-et-performance#comments</comments>
		<pubDate>Sat, 09 Jul 2016 08:30:17 +0000</pubDate>
		<dc:creator><![CDATA[mikedavem]]></dc:creator>
				<category><![CDATA[SQL Server 2016]]></category>
		<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[availability groups]]></category>
		<category><![CDATA[direct seeding]]></category>
		<category><![CDATA[groupe de disponibilités]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/mikedavem/?p=1247</guid>
		<description><![CDATA[Ce billet fait suite à celui-ci concernant l&#8217;introduction de direct seeding avec SQL Server 2016. Pour rappel, j&#8217;avais quelques doutes concernant l&#8217;utilisation de direct seeding avec les bases de données volumineuses parce que le flux de données n&#8217;était pas compressée &#8230; <a href="https://blog.developpez.com/mikedavem/p13076/sql-server-2016/sql-server-2016-alwayson-direct-seeding-et-performance">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Ce billet fait suite à <a href="http://blog.dbi-services.com/sql-server-2016-alwayson-new-way-to-add-dbs-in-ag-with-direct-seeding/" target="_blank">celui-ci</a> concernant l&rsquo;introduction de direct seeding avec SQL Server 2016. Pour rappel, j&rsquo;avais quelques doutes concernant l&rsquo;utilisation de direct seeding avec les bases de données volumineuses parce que le flux de données n&rsquo;était pas compressée par défaut mais c&rsquo;était sans me rappeler des améliorations de performances décrites dans la BOL. Je me suis également rappelé d&rsquo;en avoir parlé il y a quelques mois maintenant dans ce <a href="http://blog.dbi-services.com/sql-server-2016-availability-groups-and-performance-improvements/" target="_blank">billet</a>. </p>
<p>&gt; <a href="http://blog.dbi-services.com/sql-server-2016-alwayson-direct-seeding-and-performance-considerations/" target="_blank">Lire la suite</a> (en anglais)</p>
<p>David Barbarin<br />
MVP &amp; MCM SQL Server</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2016 AlwaysOn: Ajout de bases de données avec direct seeding</title>
		<link>https://blog.developpez.com/mikedavem/p13073/sql-server-2016/sql-server-2016-alwayson-ajout-de-bases-de-donnees-avec-direct-seeding</link>
		<comments>https://blog.developpez.com/mikedavem/p13073/sql-server-2016/sql-server-2016-alwayson-ajout-de-bases-de-donnees-avec-direct-seeding#comments</comments>
		<pubDate>Sat, 09 Jul 2016 08:14:20 +0000</pubDate>
		<dc:creator><![CDATA[mikedavem]]></dc:creator>
				<category><![CDATA[SQL Server 2016]]></category>
		<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[availability group]]></category>
		<category><![CDATA[direct seeding]]></category>
		<category><![CDATA[groupe de disponbilités]]></category>
		<category><![CDATA[groupe de disponbilités distribué]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/mikedavem/?p=1236</guid>
		<description><![CDATA[Dans ce billet, je voudrais vous parler de 2 nouvelles fonctionnalités arrivées avec SQL Server 2016 et les groupes de disponibilités. La première concerne direct seeding (honnêtement je n&#8217;ai pas trouvé de traduction pertinente ici) et la deuxième concerne les &#8230; <a href="https://blog.developpez.com/mikedavem/p13073/sql-server-2016/sql-server-2016-alwayson-ajout-de-bases-de-donnees-avec-direct-seeding">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Dans ce billet, je voudrais vous parler de 2 nouvelles fonctionnalités arrivées avec SQL Server 2016 et les groupes de disponibilités. La première concerne direct seeding (honnêtement je n&rsquo;ai pas trouvé de traduction pertinente ici) et la deuxième concerne les groupes de disponibilités distribués (DAG). Je parlerais de la deuxième dans un autre billet &#8230;</p>
<p>&gt; <a href="http://blog.dbi-services.com/sql-server-alwayson-is-my-database-ready-for-failover/" target="_blank">Lire la suite</a> (en anglais)</p>
<p>David Barbarin<br />
MVP &amp; MCM SQL Server</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
