<?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>【知行合一】-Poople&#039;s Blog &#187; 系统架构</title>
	<atom:link href="http://99dev.net/archives/category/tech/sys/feed" rel="self" type="application/rss+xml" />
	<link>http://99dev.net</link>
	<description>智巧终归庸俗，雄谋只余虚话</description>
	<lastBuildDate>Wed, 12 Oct 2011 01:19:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vmware Vsphere常见问题收集</title>
		<link>http://99dev.net/archives/1023</link>
		<comments>http://99dev.net/archives/1023#comments</comments>
		<pubDate>Mon, 27 Jun 2011 03:14:16 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1023</guid>
		<description><![CDATA[Q:
在未采用Vcenter Server管理的环境下，在不同ESXi Host之间拷贝/移动虚拟机镜像
A：
1.关闭或者挂起虚拟机镜像
<span class="readmore"><a href="http://99dev.net/archives/1023" title="Vmware Vsphere常见问题收集" target="_blank">阅读全文——共743字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="4"><strong>Q:</strong></font></p>
<p>在未采用Vcenter Server管理的环境下，在不同ESXi Host之间拷贝/移动虚拟机镜像</p>
<p><font size="4"><strong>A：</strong></font></p>
<p>1.关闭或者挂起虚拟机镜像</p>
<p>2.开启ESXi Host的主机登录</p>
<p>在 VMware ESXi 4.1 上输入密码后进入界面控制台，选择 “Troubleshooting Options”，继续选择 “Enable Local Tech Support” 和 “Enable Remote Tech Support (SSH)”，这样就可以同时开启本地 console （非必须）和远程 ssh 登录。</p>
<p>用 ssh 登录 VMware ESXi 后就可以随心所欲了，根目录下就这么些文件和目录，层次清晰，很容易找出虚拟机镜像文件在哪，需要的话把这些镜像文件 scp 拷出来就可以了。</p>
<blockquote><p>~ # ls /vmfs/volumes/datastore1/      <br />Beta-Intelligent.Service.System&#160; ITSM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cst.epfuture.com       <br />CRM.Group&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Test Platform &#8211; Linux&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ios.Files       <br />ISO.Files&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cms.epfuture.com&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="http://www.wenjuanpai.com">www.wenjuanpai.com</a></p>
</blockquote>
<p>得到Shell环境之后，就可以执行Unix/Linux常见的cp、scp和mv指令来操作虚拟机镜像</p>
<p>3.移动虚拟机镜像之后，第一次启动该虚拟机，会出现一个判断对话框&quot;I copied it&quot; or &quot;I moved it&quot;选项。选择&quot;I copied&quot;，则会改变虚拟机的MAC地址和UUID地址；选择&quot;I moved it&quot;，则不做改变。根据系统环境需要选择即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1023/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLServer常见错误汇总</title>
		<link>http://99dev.net/archives/1021</link>
		<comments>http://99dev.net/archives/1021#comments</comments>
		<pubDate>Thu, 23 Jun 2011 02:59:40 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>
		<category><![CDATA[SQLServer]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1021</guid>
		<description><![CDATA[错误15128
create LOGIN example WITH PASSWORD=&#8217;this is password&#8216;;
错误229
把“在数据库里相应的用户权限中，把db_denydatareader的复选框的勾去掉。
]]></description>
			<content:encoded><![CDATA[<p>错误15128</p>
<p>create LOGIN <em>example</em> WITH PASSWORD=&#8217;<em>this is password</em>&#8216;;</p>
<p>错误229</p>
<p>把“在数据库里相应的用户权限中，把db_denydatareader的复选框的勾去掉。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1021/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symantec Backup Exec常见问题收集</title>
		<link>http://99dev.net/archives/1005</link>
		<comments>http://99dev.net/archives/1005#comments</comments>
		<pubDate>Mon, 28 Feb 2011 08:59:44 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1005</guid>
		<description><![CDATA[Q &#8211; 备份Linux，即使是使用增量备份，执行的结果也是全备份。    &#160;&#160;&#160;&#160;&#160; http://www.symantec.com/connect/forums/linux-incrementals-using-modified-time
A &#8211; 新建备份任务，默认地，BE会使用“完全 &#8211; 备份文件 &#8211; 使用存档位（重置存档位）”。该存档位在Linux下不能被正确识别，得不到此标识，BE就默认地进行了全备份。    解决方案 &#8211; 在任务属性里，修改常规选项，把备份方法修改为“完全 &#8211; 使用修改时间”。对应的，增量或者差异备份的任务属性也要修改。
<span class="readmore"><a href="http://99dev.net/archives/1005" title="Symantec Backup Exec常见问题收集" target="_blank">阅读全文——共727字</a></span>]]></description>
			<content:encoded><![CDATA[<p>Q &#8211; 备份Linux，即使是使用增量备份，执行的结果也是全备份。    <br />&#160;&#160;&#160;&#160;&#160; <a title="http://www.symantec.com/connect/forums/linux-incrementals-using-modified-time" href="http://www.symantec.com/connect/forums/linux-incrementals-using-modified-time">http://www.symantec.com/connect/forums/linux-incrementals-using-modified-time</a></p>
<p>A &#8211; 新建备份任务，默认地，BE会使用“完全 &#8211; 备份文件 &#8211; 使用存档位（重置存档位）”。该存档位在Linux下不能被正确识别，得不到此标识，BE就默认地进行了全备份。    <br />解决方案 &#8211; 在任务属性里，修改常规选项，把备份方法修改为“完全 &#8211; 使用修改时间”。对应的，增量或者差异备份的任务属性也要修改。</p>
<p>Q &#8211; </p>
<p>Prerequisite Warning: C++ Compatibility Pack</p>
<p>The installer was unable to determine the version of C++ Compatibility package installed on the computer. The compatibility package is required for this version of the Symantec Backup Exec Remote Agent for Linux or UNIX Servers. Install the appropriate C++ compatibility patch for GNU Compiler Collection (GCC) 3.3, or refer to the following link for more information:    </p>
<p>A -下载必须的GCC库</p>
<p>yum install libstdc++.so.5    </p>
<p>&#160;</p>
<p>Q &#8211; remote Agent for Linux设置为自动启动</p>
<p>A &#8211; </p>
<p>chkconfig &#8211;add VRTSralus.init   <br />chkconfig VRTSralus.init on    </p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1005/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bugzilla常见问题收集</title>
		<link>http://99dev.net/archives/1004</link>
		<comments>http://99dev.net/archives/1004#comments</comments>
		<pubDate>Mon, 28 Feb 2011 08:49:27 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>
		<category><![CDATA[SCM]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1004</guid>
		<description><![CDATA[Q &#8211; 系统迁移之后，有那些参数需要修改？
bugzilla主要有2个配置文件，bugzilla/localconfig和bugzilla/data/params
localconfig 记录数据库连接信息等   params 记录系统运行参数等。例如，更换机器IP之后，需要更改其baseurl参数为新的地址
]]></description>
			<content:encoded><![CDATA[<p>Q &#8211; 系统迁移之后，有那些参数需要修改？</p>
<p>bugzilla主要有2个配置文件，bugzilla/localconfig和bugzilla/data/params</p>
<p>localconfig 记录数据库连接信息等   <br />params 记录系统运行参数等。例如，更换机器IP之后，需要更改其baseurl参数为新的地址</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1004/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu安装BackExec Remote Agent for Linux</title>
		<link>http://99dev.net/archives/997</link>
		<comments>http://99dev.net/archives/997#comments</comments>
		<pubDate>Wed, 16 Feb 2011 12:59:40 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://99dev.net/?p=997</guid>
		<description><![CDATA[把那个RALUS_RMALS_RAMS-4164.5.tar.gz的安装包传输至服务器安装，注意一点，需要新建个目录，把该文件放进去，否则，该文件直接解压的话，将在该目录生成一大堆文件。（symantec怎么会这么制作安装包？不够严谨）
具体过程和手册中所讲一样，不累述了。
安装完成后，需要编辑/etc/VRTSralus/ralus.cfg，加入一下几行，否则BackExec服务器将不能正常发现该Agent。
Software\Symantec\Backup Exec for Windows\Backup Exec\Agent Browser\TcpIp\AdvertisementPort=6101   Software\Symantec\Backup Exec for Windows\Backup Exec\Agents\Advertise Now=1    Software\Symantec\Backup Exec For Windows\Backup Exec\Debug\AgentConfig=0    Software\Symantec\Backup Exec For Windows\Backup Exec\Debug\VXBSAlevel=5    Software\Symantec\Backup Exec for Windows\Backup Exec\Engine\Agents\Advertise All=1    Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Advertise Now=0    Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Advertisement Purge=0    Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Advertising Disabled=0
<span class="readmore"><a href="http://99dev.net/archives/997" title="Ubuntu安装BackExec Remote Agent for Linux" target="_blank">阅读全文——共1009字</a></span>]]></description>
			<content:encoded><![CDATA[<p>把那个RALUS_RMALS_RAMS-4164.5.tar.gz的安装包传输至服务器安装，注意一点，需要新建个目录，把该文件放进去，否则，该文件直接解压的话，将在该目录生成一大堆文件。（symantec怎么会这么制作安装包？不够严谨）</p>
<p>具体过程和手册中所讲一样，不累述了。</p>
<p>安装完成后，需要编辑/etc/VRTSralus/ralus.cfg，加入一下几行，否则BackExec服务器将不能正常发现该Agent。</p>
<p>Software\Symantec\Backup Exec for Windows\Backup Exec\Agent Browser\TcpIp\AdvertisementPort=6101   <br />Software\Symantec\Backup Exec for Windows\Backup Exec\Agents\Advertise Now=1    <br />Software\Symantec\Backup Exec For Windows\Backup Exec\Debug\AgentConfig=0    <br />Software\Symantec\Backup Exec For Windows\Backup Exec\Debug\VXBSAlevel=5    <br />Software\Symantec\Backup Exec for Windows\Backup Exec\Engine\Agents\Advertise All=1    <br />Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Advertise Now=0    <br />Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Advertisement Purge=0    <br />Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Advertising Disabled=0</p>
<p>详细的解释，BackExec的手册中有说明，以上参数用于开启消息发布，和介质服务器通信。</p>
<p>如果添加完以上参数，不能正常通信，请查看beremote进程是否正常。/opt/VRTSralus/bin/VRTSralus.init可以控制beremote进程，如果beremote进程不受该指令控制，可以尝试重启计算机，再刷新介质服务器，以恢复和该agent的通信。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/997/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用FastCopy迁移应用数据</title>
		<link>http://99dev.net/archives/990</link>
		<comments>http://99dev.net/archives/990#comments</comments>
		<pubDate>Fri, 04 Feb 2011 12:36:03 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/990</guid>
		<description><![CDATA[某个应用系统，由于前辈应用系统设计不当，导致以下几个长期存在的问题：
1.IP链路不稳定，经常发生iSCSI丢盘现象，需要重启整个系统才能挂载上。
2.]]></description>
			<content:encoded><![CDATA[<p>某个应用系统，由于前辈应用系统设计不当，导致以下几个长期存在的问题：<br />
1.IP链路不稳定，经常发生iSCSI丢盘现象，需要重启整个系统才能挂载上。<br />
2.容量不足，随时都有溢出的可能。</p>
<p>为了行文的方便，加上以下的环境描述：<br />
Windows 2003；<br />
应用数据类型：SQL Server 2000＋文档数据；<br />
挂载iscsi盘为F盘。</p>
<p><b>实施过程：</b><br />
1.新加入1T的SATA盘一张，用于临时存放数据，挂载为Y盘。<br />
2.保持业务不中断，使用FastCopy的copy(overwrite)功能将数据拷贝至Y盘。此过程持续3-4天。此过程中，产生几条错误记录，均是数据库文件被锁定不能访问，导致该文件不能被拷贝。<br />
3.拷贝数据库文件，以及这三四天内的变化数据。使用FastCopy的diff(data/size)模式。此过程将需要中断服务和数据库，持续3-4个小时。<br />
4.删除iscsi盘的盘符，将其分配给之前的Y盘。<br />
5.断开服务器和存储的连接，启动服务，测试。<br />
6.重新规划存储。</p>
<p><b>总结</b><br />
善用工具，可以使业务中断时间大大缩短，并且保证数据的一致性，规避了Windows系统复制功能”遇到错误即中断”的bug。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/990/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux Server时间校对 &#8211; 优雅式</title>
		<link>http://99dev.net/archives/871</link>
		<comments>http://99dev.net/archives/871#comments</comments>
		<pubDate>Thu, 15 Jul 2010 08:36:58 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[MySQL数据库]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[网络管理]]></category>
		<category><![CDATA[databse]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/871</guid>
		<description><![CDATA[在《解决Linux Server时间不准确的问题》一文中，使用了crontab定期执行ntpdate来校对时间。之后恰巧某博客上的文章，提出一个观点“时钟的跃变，有时候会导致很严重的问题。许多应用程序依赖连续的时钟——毕竟，这是一项常见的假定，即，取得的时间是线性的，一些操作，例如数据库事务， 通常会地依赖这样的事实：时间不会往回跳跃。”时间的瞬变，对于crontab等对时间敏感的系统任务，也是很容易造成错乱的。

优雅的解决方案是，在机器刚开机时，执行ntpupdate直接修改系统时间，然后启动ntpd守护进程，渐进式逼近地调整系统时间，基本可以做到分毫不差。
误差小的时候，ntpd不会直接修改系统时间的，只是对时钟频率进行校正。这种方式好处是系统时间不会有跳变，不会影响像crontab这样程序的运行，缺点是校正需要一定的时间。
<span class="readmore"><a href="http://99dev.net/archives/871" title="Linux Server时间校对 &#8211; 优雅式" target="_blank">阅读全文——共585字</a></span>]]></description>
			<content:encoded><![CDATA[<p>在《解决Linux Server时间不准确的问题》一文中，使用了crontab定期执行ntpdate来校对时间。之后恰巧某博客上的文章，提出一个观点“时钟的跃变，有时候会导致很严重的问题。许多应用程序依赖连续的时钟——毕竟，这是一项常见的假定，即，取得的时间是线性的，一些操作，例如数据库事务， 通常会地依赖这样的事实：时间不会往回跳跃。”时间的瞬变，对于crontab等对时间敏感的系统任务，也是很容易造成错乱的。<br />
<span id="more-871"></span><br />
优雅的解决方案是，在机器刚开机时，执行ntpupdate直接修改系统时间，然后启动ntpd守护进程，渐进式逼近地调整系统时间，基本可以做到分毫不差。</p>
<p>误差小的时候，ntpd不会直接修改系统时间的，只是对时钟频率进行校正。这种方式好处是系统时间不会有跳变，不会影响像crontab这样程序的运行，缺点是校正需要一定的时间。</p>
<p>RHEL系统上，我们常用ntpd来完成该任务；而在Ubuntu系统里，我们则用openntpd来替代它。相对ntpd，openntpd是轻量级的网络时间协议，设置比较简单。<br />
关于ntpd和openntpd的设置，参考以下2篇文章</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NTP 時間伺服器 &nbsp; &nbsp; http://linux.vbird.org/linux_server/0440ntp.php<br />
设定 OpenNTPD &nbsp; &nbsp; http://wiki.debian.org.hk/w/Setup_OpenNTPD</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/871/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]有进程僵死,长期驻留在后台,杀不了</title>
		<link>http://99dev.net/archives/859</link>
		<comments>http://99dev.net/archives/859#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:13:36 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/859</guid>
		<description><![CDATA[故障现象
某Web服务器，突然出现以下问题，php-cgi僵死在进程里，无法重启
www 9463 0.0 0.3 41996 13612 ? D Apr19 1:22 /usr/local/php/bin/php-cgi &#8211;fpm      www 20858 0.0 0.3 40408 12932 ? D May05 1:55 /usr/local/php/bin/php-cgi &#8211;fpm       www 20866 0.0 0.3 40688 13296 ? D May05 1:53 /usr/local/php/bin/php-cgi &#8211;fpm       www 20878 0.0 0.3 40932 13604 ? D May05 1:51 /usr/local/php/bin/php-cgi &#8211;fpm       www 24288 0.0 0.3 40436 12880 ? D Apr15 2:36 /usr/local/php/bin/php-cgi &#8211;fpm       www 26881 0.0 0.3 41596 13712 ? D Apr16 6:11 /usr/local/php/bin/php-cgi &#8211;fpm       www 26921 0.0 0.3 43224 15848 ? D Apr16 5:57 /usr/local/php/bin/php-cgi &#8211;fpm       www 26983 0.0 0.3 42736 14524 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       www 27007 0.0 0.3 42608 14248 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       www 27023 0.0 0.3 42464 15172 ? D Apr16 5:57 /usr/local/php/bin/php-cgi –fpm
<span class="readmore"><a href="http://99dev.net/archives/859" title="[Original]有进程僵死,长期驻留在后台,杀不了" target="_blank">阅读全文——共938字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="4"><strong>故障现象</strong></font></p>
<p>某Web服务器，突然出现以下问题，php-cgi僵死在进程里，无法重启</p>
<blockquote><p>www 9463 0.0 0.3 41996 13612 ? D Apr19 1:22 /usr/local/php/bin/php-cgi &#8211;fpm      <br />www 20858 0.0 0.3 40408 12932 ? D May05 1:55 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 20866 0.0 0.3 40688 13296 ? D May05 1:53 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 20878 0.0 0.3 40932 13604 ? D May05 1:51 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 24288 0.0 0.3 40436 12880 ? D Apr15 2:36 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 26881 0.0 0.3 41596 13712 ? D Apr16 6:11 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 26921 0.0 0.3 43224 15848 ? D Apr16 5:57 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 26983 0.0 0.3 42736 14524 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 27007 0.0 0.3 42608 14248 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 27023 0.0 0.3 42464 15172 ? D Apr16 5:57 /usr/local/php/bin/php-cgi –fpm</p>
</blockquote>
<p><font size="4"><strong>处理过程</strong></font></p>
<p> <span id="more-859"></span>
<p>1. “killall –9 php-cgi”无效</p>
<p>2. “pkill –9 php-cgi”无效</p>
<p>3. reboot操作系统，成功，D状态的php-cgi进程消失</p>
<p><font size="4"><strong>故障分析</strong></font></p>
<blockquote><p>D state 不是zombie进程，Z是zombie </p>
<p>D是uninterruptable sleep，看看dmesg里面是不是io driver出现问题了</p>
</blockquote>
<p><font size="4"><strong>~网上的几篇参考文章</strong></font></p>
<p>1. <a href="http://www.orczhou.com/index.php/2010/05/how-to-kill-an-uninterruptible-sleep-process/" target="_blank">How to kill an `uninterruptible sleep` process</a></p>
<p>2.<a href="http://blog.xupeng.me/2009/07/09/linux-uninterruptible-sleep-state/" target="_blank">Linux进程的Uninterruptible sleep(D)状态</a></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/859/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Colletcion]上亿个小文件如何备份或拷贝？</title>
		<link>http://99dev.net/archives/842</link>
		<comments>http://99dev.net/archives/842#comments</comments>
		<pubDate>Wed, 21 Apr 2010 03:05:16 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[系统架构]]></category>
		<category><![CDATA[网络管理]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/842</guid>
		<description><![CDATA[CCF的讨论,有参考价值,转过来研究一下
服务器上有上亿的25k~40k小文件约4T左右（每天还在不停增加），但磁盘马上要满了
磁盘结构NTFS
用treesize 列目录用了一个晚上，大概8小时
<span class="readmore"><a href="http://99dev.net/archives/842" title="[Colletcion]上亿个小文件如何备份或拷贝？" target="_blank">阅读全文——共468字</a></span>]]></description>
			<content:encoded><![CDATA[<p><b>CCF的讨论,有参考价值,转过来研究一下</b></p>
<p>服务器上有上亿的25k~40k小文件约4T左右（每天还在不停增加），但磁盘马上要满了</p>
<p>磁盘结构NTFS</p>
<p>用treesize 列目录用了一个晚上，大概8小时</p>
<p>用killcopy拷贝到NAS，在收集信息时就崩溃了</p>
<p>现在还没有好的方法处理这些文件</p>
<p>打开磁盘并不慢，因为这些文件被分在不同的目录下，目录也很多</p>
<p><span id="more-842"></span>
<p>A1:</p>
<p>RAR 估计够呛，我感觉 RAR 是先收集文件列表然后开始压缩的，而且还会故意把不同路径文件名相同的放在一起压。我们算一下，假如每个文件路径和相关信息存放在内存里平均需要 512 字节空间，那么收集 10 亿个文件列表就需要 476.8GB 内存，就算更乐观的情况——256 字节一个 file path entry，1 亿文件的列表也需要 23.84GB 内存空间。</p>
<p>这显然不具备实际意义。所以要是真想备份出去就只能用 ghost 之类的磁盘镜像工具了。ghost 出来以后要是想恢复部分文件，可以使用官方的 ghost Explorer。</p>
<p>A2:</p>
<p>这么多小文件，只能用block的方式去操作</p>
<p>以上的思路应该是正解,继续关注此帖,等待更好的解决思路.</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/842/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]sqweb2的502.bad.gateway处理</title>
		<link>http://99dev.net/archives/838</link>
		<comments>http://99dev.net/archives/838#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:46:16 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/838</guid>
		<description><![CDATA[故障现象
访问页面出现(502)bad gateway,或者(403)Access Forbid错误.

部分错误日志
<span class="readmore"><a href="http://99dev.net/archives/838" title="[Original]sqweb2的502.bad.gateway处理" target="_blank">阅读全文——共981字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: 'Heiti SC Light'; font-size: 14px;">故障现象</span></p>
<p style="font: 14.0px 'Heiti SC Light'">访问页面出现(502)bad gateway,或者(403)Access Forbid错误.</p>
<p style="font: 14.0px 'Heiti SC Light'; min-height: 14.0px"></p>
<p style="font: 14.0px 'Heiti SC Light'">部分错误日志</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:30:41 sqweb2 kernel: lockd: server 192.168.96.50 not responding, timed out</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:31:21 sqweb2 last message repeated 10 times</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:32:31 sqweb2 last message repeated 21 times</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:33:41 sqweb2 last message repeated 17 times</p>
<p style="font: 14.0px 'Heiti SC Light'">主交换 CPU在10%左右,MEM在20-30%之间波动</p>
<p style="font: 14.0px 'Heiti SC Light'; min-height: 14.0px"></p>
<p style="font: 14.0px 'Heiti SC Light'"></p>
<p><span id="more-838"></span>
<p><span style="font-family: 'Heiti SC Light'; font-size: 14px;">RedHat的bugzilla有提到该错误</span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">https://bugzilla.redhat.com/show_bug.cgi?id=453094</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">采取的措施</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">1.在sqweb1和sqweb2之间,新加了一条线.NFS共享只走该线路,不经过主交换机.避免在大流量情况下,引起的NFS丢包现象.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">IP配置分别为</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">sqweb1 eth1 192.168.96.201 netmask 255.255.255.252</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">sqweb2 eth2 192.168.96.202 netmask 255.255.255.252</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">2.升级内核</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">原内核</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">Linux sqweb2 2.6.18-92.el5PAE #1 SMP Tue Jun 10 19:22:41 EDT 2008 i686 i686 i386 GNU/Linux</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">新内核</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">Linux sqweb2 2.6.18-164.15.1.el5PAE #1 SMP Wed Mar 17 12:14:29 EDT 2010 i686 i686 i386 GNU/Linux</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">3.在NFS Client的/etc/fstab挂载参数中,<span style="font-family: 'Heiti SC'; color: #FF2B1F; white-space: pre;">#加入了nolock,udp参数,#关闭nfslock service</span></p>
<blockquote>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';"><font color="#FF2B1F" face="'Heiti SC'"><span style="white-space: pre;"><span style="color: #000000;">192.168.96.201:/data/wwwroot /data/wwwroot nfs hard,intr,bg,nolock,udp,ti meo=50 0 0</span></span></font></p>
</blockquote>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">P.S.调试过程中,有发现NFS的缺陷一,不能应用于单网卡多IP,以及单机多网段环境.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">处理结果</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">#NFS相关资料</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">http://www.517sou.net/Article/419.aspx</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">http://linux.vbird.org/linux_server/0330nfs.php</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/838/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

