<?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>Simpleman &#38; Simple Life &#187; 156</title>
	<atom:link href="http://xuming.info/tag/156/feed/" rel="self" type="application/rss+xml" />
	<link>http://xuming.info</link>
	<description>Learn to write and appreciate</description>
	<lastBuildDate>Sat, 11 Dec 2010 03:05:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>NetBackup VCB backup encounter 156 error</title>
		<link>http://xuming.info/2010/03/netbackup-vcb-backup-encounter-156-error/</link>
		<comments>http://xuming.info/2010/03/netbackup-vcb-backup-encounter-156-error/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 07:20:32 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[NetBackup]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[156]]></category>
		<category><![CDATA[Quiesced]]></category>
		<category><![CDATA[Snapshot]]></category>
		<category><![CDATA[VCB]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1444</guid>
		<description><![CDATA[如何解决一些虚拟机不能通过 VCB 成功备份的情况？ NetBackup 通过 VCB 备份 VI 3.x/vSphere 4 的虚拟机时，总会是不是的发现某些 VM 出现 156 号错误，显示快照建立失败，如何去处理呢？ 典型的报错如: Creating a quiesced snapshot failed because the created snapshot operation exceeded the time limit for holding off I/O in the frozen virtual machine. 总的思路：确定真的是不能通过 VCB 成功备份再考虑传统的备份方法。 解决步骤(需要说明的是 VMware Tools 的安装和卸载需要重启服务器才能生效，需要慎重使用)： 1. 查看是否安装了最新的 VMware Tools，如果不是则尝试升级到最新版本； 2. 如果还是不行，则再次卸载 VMware Tools，然后将 sync [...]]]></description>
			<content:encoded><![CDATA[<p>如何解决一些虚拟机不能通过 VCB 成功备份的情况？</p>
<p>NetBackup 通过 VCB 备份 VI 3.x/vSphere 4 的虚拟机时，总会是不是的发现某些 VM 出现 156 号错误，显示快照建立失败，如何去处理呢？</p>
<p>典型的报错如: Creating a quiesced snapshot failed because the created snapshot operation exceeded the time limit for holding off I/O in the frozen virtual machine.</p>
<p>总的思路：确定真的是不能通过 VCB 成功备份再考虑传统的备份方法。</p>
<p>解决步骤(需要说明的是 VMware Tools 的安装和卸载需要重启服务器才能生效，需要慎重使用)：<br />
 1. 查看是否安装了最新的 VMware Tools，如果不是则尝试升级到最新版本；<br />
 2. 如果还是不行，则再次卸载 VMware Tools，然后将 sync driver 这个服务设置为 disable，同时设置 VSS 服务为 Automatic。之后再次安装 VMware Tools；<br />
 3. 如果还是不行，则尝试在需要备份的虚拟机负载较低的时候发起 VCB 备份，看看是否能够备份成功；<br />
 4. 如果还是不行，有两个选择：<br />
 1). 在 NetBackup 中设置对这台虚拟机备份的策略，在 Snapshot client options 中设定 disable VM quiesce 为 1，即在创建快照前不需要 quiesing 的动作，但需要强调的是如果不进行 quiesing 的动作，则不能保证备份的有效性，在恢复时有可能造成某些文件丢失和部分应用的出错；<br />
 2).  只能老老实实的安装传统的备份 Agent 通过传统方式备份了。不过还是有选择的，可以选择通过对文件系统（分区）级别的快照来加快备份速速，我在这里就不详细描述了。</p>
<p>#####<br />
 # 新的解决方法<br />
 ######################################</p>
<p>上面所记录的是几个月前我对 NBU 通过 VCB 备份出现 156 错误的总结，今天看了两篇 VMware 的官方文档，有了新的认识。<br />
 文档一：<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1007696">Troubleshooting Volume Shadow Copy (VSS) quiesce related issues</a><br />
 文档二：<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1009073">Unable to take a quiesced VMware snapshot of a virtual machine</a></p>
<p>总的思路：</p>
<p>1. 卸载当前机器上的 VMware Tools，重启虚机；<br />
 2. 登录虚机，在重新安装 VMware Tools 之前，确保如下两个服务（其目的是为了安装 VMware Tools 时能够成功安装“VMware Snapshot Provider”服务）：<br />
 a. &#8220;COM+ System Application Service&#8221; 服务开启，设置其启动类型为 Manual;<br />
 b. &#8220;COM+ Event System Service&#8221; 服务开启，设置其启动类型为 Automatic;<br />
 如果符合上面的两个条件，开始安装 VMware Tools，之后重启虚机。<br />
 3. 重新尝试在 NBU 上发起 VCB 备份策略，在备份的时候查看如下几个服务：<br />
 a.  确保&#8221;COM+ System Application&#8221;服务当前开启，其启动类型为 Manual；<br />
 b.  确保“COM+ Event System Service”当前开启，其启动类型为 Automatic；<br />
 c.  确保 &#8220;Volume Shadow Copy Service&#8221;启动类型为 Manual；<br />
 d.  确保“Microsoft Software Shadow Copy Provider Service”启动类型为 Manual；<br />
 e.  确保“VMware Snapshot Provider”服务当前启动，启动类型为 Manual。</p>
<p>#####<br />
# 要重复强调的几点<br />
##################################</p>
<p>对于负载较高的虚拟机，如运行着 SQL, Exchange 的虚拟机，或者虚拟机是域控制器，使用 VCB 的快照方式备份不能保证应用的一致性，推荐使用传统的备份 Agent 方式备份。如果希望做到快速恢复，可以考虑系统本身通过快照方式备份和恢复，应用使用专门的备份客户端恢复。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2010/03/netbackup-vcb-backup-encounter-156-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>如何解决一些虚拟机不能通过 VCB 成功备份的情况</title>
		<link>http://xuming.info/2010/01/%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%e4%b8%80%e4%ba%9b%e8%99%9a%e6%8b%9f%e6%9c%ba%e4%b8%8d%e8%83%bd%e9%80%9a%e8%bf%87-vcb-%e6%88%90%e5%8a%9f%e5%a4%87%e4%bb%bd%e7%9a%84%e6%83%85%e5%86%b5/</link>
		<comments>http://xuming.info/2010/01/%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%e4%b8%80%e4%ba%9b%e8%99%9a%e6%8b%9f%e6%9c%ba%e4%b8%8d%e8%83%bd%e9%80%9a%e8%bf%87-vcb-%e6%88%90%e5%8a%9f%e5%a4%87%e4%bb%bd%e7%9a%84%e6%83%85%e5%86%b5/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 13:30:42 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[NetBackup]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[156]]></category>
		<category><![CDATA[Quiesce]]></category>
		<category><![CDATA[Snapshot]]></category>
		<category><![CDATA[VCB]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1359</guid>
		<description><![CDATA[如何解决一些虚拟机不能通过 VCB 成功备份的情况？ NetBackup 通过 VCB 备份 VI 3.x/vSphere 4 的虚拟机时，总会是不是的发现某些 VM 出现 156 号错误，显示快照建立失败，如何去处理呢？ 总的思路：确定真的是不能通过 VCB 成功备份再考虑传统的备份方法。 解决步骤(需要说明的是 VMware Tools 的安装和卸载需要重启服务器才能生效，需要慎重使用)： 1. 查看是否安装了最新的 VMware Tools，如果不是则尝试升级到最新版本； 2. 如果还是不行，则再次卸载 VMware Tools，然后将 sync driver 这个服务设置为 disable，同时设置 VSS 服务为 Automatic。之后再次安装 VMware Tools； 3. 如果还是不行，则尝试在需要备份的虚拟机负载较低的时候发起 VCB 备份，看看是否能够备份成功； 4. 如果还是不行，有两个选择： 1). 在 NetBackup 中设置对这台虚拟机备份的策略，在 Snapshot client options 中设定 disable VM [...]]]></description>
			<content:encoded><![CDATA[<p>如何解决一些虚拟机不能通过 VCB 成功备份的情况？</p>
<p>NetBackup 通过 VCB 备份 VI 3.x/vSphere 4 的虚拟机时，总会是不是的发现某些 VM 出现 156 号错误，显示快照建立失败，如何去处理呢？</p>
<p>总的思路：确定真的是不能通过 VCB 成功备份再考虑传统的备份方法。</p>
<p>解决步骤(需要说明的是 VMware Tools 的安装和卸载需要重启服务器才能生效，需要慎重使用)：<br />
1. 查看是否安装了最新的 VMware Tools，如果不是则尝试升级到最新版本；<br />
2. 如果还是不行，则再次卸载 VMware Tools，然后将 sync driver 这个服务设置为 disable，同时设置 VSS 服务为 Automatic。之后再次安装 VMware Tools；<br />
3. 如果还是不行，则尝试在需要备份的虚拟机负载较低的时候发起 VCB 备份，看看是否能够备份成功；<br />
4. 如果还是不行，有两个选择：<br />
 1). 在 NetBackup 中设置对这台虚拟机备份的策略，在 Snapshot client options 中设定 disable VM quiesce 为 1，即在创建快照前不需要 quiesing 的动作，但需要强调的是如果不进行 quiesing 的动作，则不能保证备份的有效性，在恢复时有可能造成某些文件丢失和部分应用的出错；<br />
 2).  只能老老实实的安装传统的备份 Agent 通过传统方式备份了。不过还是有选择的，可以选择通过对文件系统（分区）级别的快照来加快备份速速，我在这里就不详细描述了。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2010/01/%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%e4%b8%80%e4%ba%9b%e8%99%9a%e6%8b%9f%e6%9c%ba%e4%b8%8d%e8%83%bd%e9%80%9a%e8%bf%87-vcb-%e6%88%90%e5%8a%9f%e5%a4%87%e4%bb%bd%e7%9a%84%e6%83%85%e5%86%b5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetBakup 156 错误以及 VSP/VSS 相关知识</title>
		<link>http://xuming.info/2007/09/1031/</link>
		<comments>http://xuming.info/2007/09/1031/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 09:19:50 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[NetBackup]]></category>
		<category><![CDATA[156]]></category>
		<category><![CDATA[Snapshot]]></category>
		<category><![CDATA[VSP]]></category>
		<category><![CDATA[VSS]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1031</guid>
		<description><![CDATA[今天发现一台服务器周备份失败，报 156 号错误。具体报错如下： 9/3/2007 2:46:11 PM - Error bpbrm(pid=5732) from client ntbtts01: ERR - failure reading file: E:\!Check\NTBTTS01_20060726.blg (WIN32 5: Unknown error) 9/3/2007 2:46:11 PM - Error bpbrm(pid=5732) from client ntbtts01: ERR - Snapshot Error while reading file: Volume{6f4c932e-3f1e-46aa-8256-e6efb6d359db}\!Check\NTBTTS01_20060726.blg 9/3/2007 2:46:11 PM - Critical bpbrm(pid=5732) from client ntbtts01: FTL - Backup operation aborted! 9/3/2007 2:48:36 [...]]]></description>
			<content:encoded><![CDATA[<p>今天发现一台服务器周备份失败，报 156 号错误。具体报错如下：</p>
<pre class="output">
9/3/2007 2:46:11 PM - Error bpbrm(pid=5732) from client ntbtts01: ERR - failure reading file: E:\!Check\NTBTTS01_20060726.blg (WIN32 5: Unknown error)
9/3/2007 2:46:11 PM - Error bpbrm(pid=5732) from client ntbtts01: ERR - Snapshot Error while reading file: Volume{6f4c932e-3f1e-46aa-8256-e6efb6d359db}\!Check\NTBTTS01_20060726.blg
9/3/2007 2:46:11 PM - Critical bpbrm(pid=5732) from client ntbtts01: FTL - Backup operation aborted!
9/3/2007 2:48:36 PM - end writing; write time: 00:36:35
snapshot error encountered(156)
9/3/2007 2:48:37 PM - Error bpsched(pid=4420) backup of client ntbtts01 exited with status 156 (snapshot error encountered)
</pre>
<p>查看了一下官方资料，显示这和用于备份 open file 文件的 VSP 或 VSS 配置有关。NetBackup 在备份 open file 的时候，需要利用 VSP 或 VSS（ VSS 只适用于 WIN2003 ）生成的缓存创建一个 snapshot 文件。</p>
<p>登陆到服务器上发现 C 盘空间严重不足，在清理了硬盘空间后，备份成功。</p>
<p><b>附：</b></p>
<p class="hint"><b>1. 对于 Client 上 VSP 的配置（不出问题不要随便修改，因为 NetBackup 一般会根据空间大小设定合理的 cache 大小）：</b></p>
<p>
NetBackup Administration Console/NetBakcup Management/Host Properties/Clients/Choose one client/Properites/Windows Client/VSP
</p>
</p>
<p class="hint"><b>2. 对于 Client 上的 VSS 配置 </b></p>
<p>compmgmt.msc/右键 Shared Folderss 选择 All Tasks/Configure Shadow Copies/Select the volume on which to make changes, and then click the Settings button/In the Settings dialog box, change the Maximum Size setting to either No Limit or a size large enough to suit the requirements of the installation and usage of VSS</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/09/1031/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetBackup 156 号错误，以及 VSP 和 VSS 方法</title>
		<link>http://xuming.info/2007/09/1030/</link>
		<comments>http://xuming.info/2007/09/1030/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 08:46:51 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[NetBackup]]></category>
		<category><![CDATA[156]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[VSP]]></category>
		<category><![CDATA[VSS]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1030</guid>
		<description><![CDATA[今天一上班，就发现有一台服务的每周备份报 156 号错误，形式如下： STATUS CODE: 156 "snapshot error encountered" occurs when utilizing VSP or VSS for open file backups. -------------------------------------------------------------------------------- Exact Error Message snapshot error encountered (156) Details: Overview: STATUS CODE: 156 "snapshot error encountered" occurs when utilizing VERITAS Volume Snapshot Provider (VSP) or Microsoft Volume Shadow Copy Service (VSS) for a client backup. 查看了一下官方的解释：Windows [...]]]></description>
			<content:encoded><![CDATA[<p>今天一上班，就发现有一台服务的每周备份报 156 号错误，形式如下：</p>
<pre class="output">
STATUS CODE: 156 "snapshot error encountered" occurs when utilizing VSP or VSS for open file backups.
--------------------------------------------------------------------------------
Exact Error Message
snapshot error encountered (156)

Details:
Overview:
STATUS CODE: 156 "snapshot error encountered" occurs when utilizing VERITAS Volume Snapshot Provider (VSP) or Microsoft Volume Shadow Copy Service (VSS) for a client backup.
</pre>
<p>查看了一下官方的解释：Windows 平台的 NetBackup 5.0 以上版本的 client 如果报 156 号错误，这和备份 Open File 有关，常常是因为创建“Snapshot”的 VSP/VSS 缓存文件空间不足造成的。</p>
<p>可以在 Client 上查看到相应的 Log，形式如下：</p>
<pre class="output">
bpbkar
6:00:14.156 AM: [452.976] <2> tar_base::V_vTarMsgW: ERR - Snapshot Error while reading file: Volume{43877774-d2zz-4rar-r5id-fg9i49fuje7815}\Accounts\Akerfeldt\data\Amm.txt
6:00:14.171 AM: [452.976] <2> tar_base::V_vTarMsgW: FTL - Backup operation aborted!
6:00:14.218 AM: [452.976] <2> tar_base::V_vTarMsgW: INF - EXIT STATUS 156: snapshot error encountered
</pre>
<p><b>解决办法：</b></p>
<p>1. 首先确定是否需要备份 Client 上的 Open file 文件，如果不需要可以关闭这个功能。NetBackup 默认是打开这个功能的。</p>
<ol>如何确认是否以及使用了 VSS 或 VSP 功能</p>
<li>Within the NetBackup Administration Console, expand Host Properties in the hand pane
<li>Within Host Properties, click Master Server and then the double-click the name of the Master Server in the right pane
<li>Click on the Client Attributes section
<li>If the client in question is listed here, click on the client name. If it is not listed, add and click on the client name.
<li>Click the Windows Open File Backup tab
<li>Ensure that Enable Windows Open File Backups for this client is not selected if open file backups are not required
</ol>
</p>
<p>2. 如果需要备份 open file，造成 snapshot error 的一个可能的原因是因为 VSP 或 VSS 的缓存大小设置问题。</p>
<p>如何去配置缓存大小？</p>
<ol>对于 VSP</p>
<li>Within the NetBackup Administration Console, expand Host Properties in the left pane
<li>Within Host Properties, click Clients and then double-click the name of the client in the right pane
<li>Expand the Windows Client section and click on VSP to display cache settings
</ol>
<p class="hint"><b>Attention!!!</b></p>
<p>Make sure the Customize the cache sizes check box is not selected. With this not selected, NetBackup automatically determines the best VSP cache file sizes. In most cases, NetBackup will be able to create a large enough VSP cache file for backups if this is not selected. <br />
If errors still occur with this not selected, it is possible to increase the initial VSP cache size and maximum VSP cache size manually. These settings vary depending on the client&#8217;s requirements. Use caution when manually specifying sizes for the Initial and Maximum Cache Size, since these settings will be used regardless of volume size. <br />
Refer the NetBackup System Administrator&#8217;s Guide for more information on changing the configuration of VSP cache file sizes. If backups still abort with error status 156 after making changes to the VSP cache file size configuration, there may not be enough free disk space on the affected client. Free up as much disk space on the drives of the affected client as possible.
</p>
<ol>对于 Volume Shadow Copy (VSS)  (Windows 2003 Only):</p>
<li>In Windows, right-click My Computer and select Manage
<li>In the console tree, right-click Shared Folders, select All Tasks, and then Configure Shadow Copies
<li>Select the volume on which to make changes, and then click the Settings button
<li>In the Settings dialog box, change the Maximum Size setting to either No Limit or a size large enough to suit the requirements of the installation and usage of VSS
</ol>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/09/1030/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

