<?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>夜行人 &#187; Linux</title>
	<atom:link href="http://www.187299.com/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.187299.com</link>
	<description>寻觅生命中的那一片浅草......</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:33:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>rsync_error_deflate</title>
		<link>http://www.187299.com/archives/1648</link>
		<comments>http://www.187299.com/archives/1648#comments</comments>
		<pubDate>Tue, 31 Aug 2010 12:38:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1648</guid>
		<description><![CDATA[Today I check synchronization status of my backup files.There is three files are not synchronizing.I type the rsync command manually to see what happend. rsync -vazu --password-file=/etc/my.pass rsy@192.168.1.130::db_backup /data/backup/ it shows these e... ]]></description>
			<content:encoded><![CDATA[<p>Today I check synchronization status of my backup files.There is three files are not synchronizing.I type the rsync command manually to see what happend.</p>
<p>rsync -vazu --password-file=/etc/my.pass rsy@192.168.1.130::db_backup /data/backup/</p>
<p>it shows  these errors:</p>
<p>deflate on token returned 0 (12912 bytes left)<br />
rsync error: error in rsync protocol data stream (code 12) at token.c(274)<br />
rsync: connection unexpectedly closed (347 bytes received so far) [receiver]<br />
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]<br />
rsync: connection unexpectedly closed (327 bytes received so far) [generator]<br />
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [generator=2.6.8]</p>
<p>After some googles,I find that There is something wrong with the last file in local directory.<br />
Then I delete the last file in local directory and run the rsync command again.It works.All files are synchronizing.</p>
<p>References:</p>
<p>http://www.linuxsir.org/bbs/showthread.php?t=201042</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1648/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bypass a fsck during boot</title>
		<link>http://www.187299.com/archives/1645</link>
		<comments>http://www.187299.com/archives/1645#comments</comments>
		<pubDate>Fri, 20 Aug 2010 12:41:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1645</guid>
		<description><![CDATA[Today,I reboot my CentOS box,It show some errors: An error occurred during the file system check. Dropping you to a shell;the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue): I know what cau... ]]></description>
			<content:encoded><![CDATA[<p>Today,I reboot my CentOS box,It show some errors:</p>
<p>An error occurred during the file system check.<br />
Dropping you to a shell;the system will reboot<br />
when you leave the shell.<br />
Give root password for maintenance<br />
(or type Control-D to continue):</p>
<p>I know what cause this:Yesterday, I remove one partition, but I didn't remove it from /etc/fstab</p>
<p>I don't know the root's password.so what only I can do is clicking Ctl+D,then the system reboot.</p>
<p>During the boot procedure,I edit the grub boot menu, add "single" at the end of kernel line.<br />
After editing, it look likes " kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ single"</p>
<p>I think the system will boot into single user mode.But unfortunately,it show the same errors.</p>
<p>I google with "boot ignore system check",and I find an useful article.It shows that we can<br />
put fastboot at the end of the kernel line.</p>
<p>In the end it should look as follow:<br />
kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ fastboot</p>
<p>Greate!It works.</p>
<p>I ssh to the server and remove the old partition from /etc/fstab</p>
<p>OK,the article's URL is http://www.cyberciti.biz/faq/linux-unix-bypassing-fsck/</p>
<p>http://www.cyberciti.biz/ is a great website,it contains many tips on linux,also it contains many shell scripts makes your system administration work easy.You must add it to your Favorite。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1645/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL：how to ignore errors loading a dump</title>
		<link>http://www.187299.com/archives/1642</link>
		<comments>http://www.187299.com/archives/1642#comments</comments>
		<pubDate>Mon, 09 Aug 2010 05:29:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1642</guid>
		<description><![CDATA[When we load a dump sql file using the following command: mysql -uroot -pdbpassword test &#60; /data/mysql.sql the procedure will stop as it detects an error. How to make procedure ignore the errors and continue anyway? There are two kinds of methond can... ]]></description>
			<content:encoded><![CDATA[<p>When we load a dump sql file using the following command:<br />
mysql -uroot -pdbpassword test &lt; /data/mysql.sql<br />
the procedure will stop as it detects an error.<br />
How to make procedure ignore the errors and continue anyway?<br />
There are two kinds of methond can do that.</p>
<p>The first one:use "-f" option<br />
mysql -uroot -pdbpassword -f test &lt; /data/mysql.sql</p>
<p>The second one:access into mysql,and use the "source" command.<br />
mysql -uroot -pdbpassword test<br />
source /data/mysql.sql<br />
exit</p>
<p>References:</p>
<p>http://forums.mysql.com/read.php?28,78316,78316</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1642/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Ketchup to manage your kernel sources</title>
		<link>http://www.187299.com/archives/1640</link>
		<comments>http://www.187299.com/archives/1640#comments</comments>
		<pubDate>Thu, 05 Aug 2010 06:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1640</guid>
		<description><![CDATA[Today I discovered Ketchup, a little command-line tool to manage your Linux kernel sources. If you're one of the weirdos, who is still compiling his kernel manually for whatever reason (like I do), I can only recommend it. Ketchup nicely eases up the ent... ]]></description>
			<content:encoded><![CDATA[<p>Today I discovered Ketchup, a little command-line tool to manage your Linux kernel sources. If you're one of the weirdos, who is still compiling his kernel manually for whatever reason (like I do), I can only recommend it. Ketchup nicely eases up the entire process of checking for updates and applying them to your system.</p>
<p>Let's not hesitate and look at few usage examples... Want to know what's the latest version of a particular kernel-tree?</p>
<p>$ ketchup -s 2.6</p>
<p>2.6.17.7</p>
<p>$ ketchup -s 2.6-mm</p>
<p>2.6.18-rc1-mm2</p>
<p>Let's play with your kernel sources a bit. First of all, you surely want to check what version you currently got lying around...</p>
<p>$ cd /usr/src/linux</p>
<p>$ ketchup -m</p>
<p>2.6.17.6</p>
<p>Let's assume there is a newer kernel version available and you want to download it, bunzip it, revert the old patch and apply the new one. Nothing easier than that:</p>
<p># cd /usr/src/linux</p>
<p># ketchup 2.6-tip</p>
<p>2.6.17.6 -&gt; 2.6.17.7</p>
<p>Applying patch-2.6.17.6.bz2 -R</p>
<p>Applying patch-2.6.17.7.bz2</p>
<p>That's really it. It will download the patches, revert and apply them, so all you will have to do is watch and wait</p>
<p>Switching to an entirely different kernel versions is just as easy:</p>
<p># cd /usr/src/linux</p>
<p># ketchup 2.6.16.2</p>
<p>Final note: If Ketchup should abort with a gpg error, then it couldn't verify the patch's or kernel's signature. Either add the 2.6 public key to your keyring (this is the proper solution) or call Ketchup with an additional -G parameter (this will override signature checking). I'd suggest the former, which is really easy to do by downloading it from a public pgp server:</p>
<p># gpg --keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E</p>
<p>Have fun compiling,</p>
<p>muesli</p>
<p>From:http://amarok.kde.org/blog/archives/199-Using-Ketchup-to-manage-your-kernel-sources.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1640/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编译内核及制作RPM包</title>
		<link>http://www.187299.com/archives/1632</link>
		<comments>http://www.187299.com/archives/1632#comments</comments>
		<pubDate>Fri, 23 Jul 2010 10:00:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1632</guid>
		<description><![CDATA[一、前言 由于目前部分平台所使用的Linux发行版版本比较低，自带的内核版本远低于主流内核，无法使用到一些优秀的新内核特征，包括对我们比较有用的per-task storage I/O、改善在SMP系统中I/O的... ]]></description>
			<content:encoded><![CDATA[<p>一、前言<br />
由于目前部分平台所使用的Linux发行版版本比较低，自带的内核版本远低于主流内核，无法使用到一些优秀的新内核特征，包括对我们比较有用的per-task storage I/O、改善在SMP系统中I/O的吞吐量、Ext4文件格式、虚拟化支持等。因此决定采用目前最新稳定版内核Linux-2.6.32.6(更新于2010-01-25)进行重新编译，生成一个更加小巧、稳定、安全、高效率的新内核。</p>
<p>二、编译步骤<br />
第一步：</p>
<p>引用</p>
<p># cd /home<br />
# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.5.tar.gz<br />
# tar -zxvf linux-2.6.32.5.tar.gz -C /usr/src<br />
# cd /usr/src<br />
# ln -s linux-2.6.32.5 linux<br />
# cd linux</p>
<p>第二步：</p>
<p>引用</p>
<p># make mrproper (初次编译内核这步也可以省略，方便第二次编译初始用。)<br />
# make menuconfig<br />
# make bzImage &amp;&amp; make modules &amp;&amp; make modules_install(需30~40分钟，具体看服务器配置)<br />
# make install</p>
<p>如需制作RPM内核安装包，运行以下命令，相当于第二步的操作，但不编译本机内核。</p>
<p><span style="color: #ff0000;">补充:在make rpm前，需要保证系统上有rpmbuild命令<br />
#yum -y install rpm-build</span><br />
# make rpm<br />
生成位置：<br />
/usr/src/redhat/RPMS/x86_64/kernel-2.6.32.6-2.x86_64.rpm<br />
/usr/src/redhat/SRPMS/kernel-2.6.32.6-2.src.rpm</p>
<p>三、安装步骤<br />
1、二进制rpm包安装步骤<br />
# rpm -ivh  kernel-2.6.32.6-1.x86_64.rpm<br />
# vi /boot/grub/menu.lst添加以下并修改default项。</p>
<p>引用</p>
<p>title CentOS (2.6.32.6)<br />
root (hd0,0)<br />
kernel /vmlinuz-2.6.32.6 ro root=LABEL=/<br />
initrd /initrd-2.6.32.6.img</p>
<p># cd /lib/modules &amp;&amp; mkinitrd /boot/initrd-2.6.32.6.img 2.6.32.6/<br />
2、RPM源码包安装步骤，好处便是在原有基础上再进行编译，更灵活。</p>
<p>引用</p>
<p># rpm -Uvh kernel-2.6.32.6-2.src.rpm<br />
# rpmbuild -bp --target=$(arch) /usr/src/redhat/SPECS/kernel-2.6.32.6-2.spec<br />
# cd /usr/src/redhat/BUILD/kernel-2.6.32.6-2<br />
# vi Makefile &lt;-- Change "EXTRAVERSION" to avoid kernel overwriting<br />
# cp /lib/modules/2.6.32.6/build/.config .<br />
# make menuconfig<br />
# 重复第二步</p>
<p>四、ChangeLog</p>
<p>引用</p>
<p>2.1、裁减了51M内核模块，目前大小为46M。<br />
2.2、No Forced Preemption(Server)适合服务器环境的禁止内核抢占。<br />
2.3、High Memory Support-&gt;64GB。<br />
2.4、Default I/O scheduer(Deadline)使用Deadline作硬盘存取排程器，非常适合IO较大的数   据库服务器。<br />
2.5、添加Ext4 FileSystem。<br />
2.6、删除Dell laptop support、Toshiba Laptop support。<br />
2.7、开启Netfilter支持。<br />
2.8、Export task/process statistics through netlink(sys task相关选项)。<br />
2.9、Enable extended accounting over taskstats(sys task相关选项)。<br />
2.10、Enable per-task storage I/O accounting(sys task相关选项)。<br />
2.11、Support for Large Block Devices (LBD) - 支持超过 2TB 大小的储存设备。<br />
2.12、Support for Large Single Files (LSF) - 支持处理超过 2TB 大小的文件<br />
2.13、裁减sound card support。<br />
2.14、裁减Bluetooth subsystem support。<br />
2.15、裁减Wireless。<br />
2.16、裁减Kernel hacking 。</p>
<p>如需编译后的RPM包请联系我(文件太大，不好传)。<br />
kernel-2.6.32.6-2.x86_64.rpm(17M)<br />
kernel-2.6.32.6-2.src.rpm(84M)</p>
<p>转载自：http://blog.liuts.com/post/180/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1632/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 系统死机怎么办？</title>
		<link>http://www.187299.com/archives/1630</link>
		<comments>http://www.187299.com/archives/1630#comments</comments>
		<pubDate>Thu, 22 Jul 2010 02:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1630</guid>
		<description><![CDATA[06.9.21 http://lopsa.org/pipermail/discuss/2006-January/000670.html 1. Flash upgrading BIOS of RAID controllers 2. Replacement of RAID controller cards (both of them) 3. Moving RAID cards to different PCI slots 4. Monitored temperatures via lm_sensors un... ]]></description>
			<content:encoded><![CDATA[<p>06.9.21</p>
<p>http://lopsa.org/pipermail/discuss/2006-January/000670.html</p>
<p>1. Flash upgrading BIOS of RAID controllers<br />
2. Replacement of RAID  controller cards (both of them)<br />
3. Moving RAID cards to different PCI  slots<br />
4. Monitored temperatures via lm_sensors until a lockup to verify no  heat<br />
problems<br />
5. Removal of unncessary kernel modules (USB, pcmcia,  etc)<br />
6. Disabling of APIC in BIOS<br />
7. Adjustment of IOMMU memory apeture  hole size in BIOS<br />
8. Booting with various combinations of kernel parameters  “noapic”,<br />
“acpi=0″, “nmi_watchdog=1″<br />
9. Various kernels including minimal  custom compiled ones<br />
10. full fsck bad blocks check of each individual hard  disk in the arrays<br />
(took 2.x days)<br />
11. Discontinued usage of eth0 as it  seemed to be on same interrupt as one<br />
of the RAID controllers.<br />
12. Stood  on one foot while rebooting, while simultaneously sacrificing a<br />
chicken and  burning a copy of MS-Windows (okay not really but if it would<br />
fix it I would  do it!).<br />
13. A full flogging with memtest, although I am skeptical that this  is the<br />
problem…the RAM is ECC and the problem seems to be caused from a  specific<br />
IO pattern.<br />
14. Installing and booting a non-SMP kernel (I’ve  read of similar problems<br />
when using the non smp 3ware driver in an SMP  system….I doubt this is the<br />
answer either as I have tried custom compiled  kernels without any luck)</p>
<p>06.9.10</p>
<p>很多时候，客户现场很恶劣，没有机会进行内核调试，或者最多给你一次修正的机会，要么搞定，要么走人，这种情况下该如何是好呢？只能靠“平时积累＋运气”了，无法控制运气，不过还是有办法增加积累的，比如及时跟踪内核的进展、阅读redhat,  suse, kernel.org的bugzilla等。</p>
<p>06.7.30</p>
<p>使用netconsole可以把内核信息通过网络传输到另一台机器上，也就是说把另一台机器的某个UPD端口作为内核信息输出的对象(比如发送到远端的syslog中)。很容易设置，具体用法见：<br />
/usr/src/linux/Documentation/networking/netconsole.txt</p>
<p>关于串口console的设置，可以参考的这篇Dave  Jones的这篇blog:</p>
<p>http://kernelslacker.livejournal.com/42428.html</p>
<p>05.12.18</p>
<p>死机后应做的一些设置，以便死机再次发生时能多少获得些信息：</p>
<p># turn off tty blackout<br />
# setterm -blank 0</p>
<p># turn on magical sysrq<br />
# sysctl -w kernel.sysrq=1</p>
<p># please do NOT reboot when panic happened<br />
# sysctl -w kernel.panic=0</p>
<p># please do NOT reboot when oops happened<br />
# sysctl -w  kernel.panic_on_oops=0</p>
<p>05.12.17</p>
<p>some references:</p>
<ul>
<li>https://bugzilla.novell.com/bugreporting-faq/oops-reading.txt</li>
<li>https://bugzilla.novell.com/bugreporting-faq/kernel-debugging-intro.txt</li>
<li>http://kerneltrap.org/node/3648</li>
</ul>
<p>05.01.24</p>
<p>今天听说 SUN 要公开他的 DTrace  (http://www.osnews.com/story.php?news_id=9480)，虽然还没有看到，感觉应该是一个很有用的系统分析和调优工具，不过只支持  solaris。不知和 LKST 有什么区别。expecting…</p>
<p>05.01.13<br />
如果问题能够再现，那么问题已经解决 80% 了。对于操作系统核心而言，如果有问题的再现方法，那么可以说是已经解决 99%  了。经常遇到的问题是系统可以正常运行一段时间，然后死机。如果不好再现问题，那么只有根据死机现场遗留的东西来进行分析了。</p>
<p>如果系统没有死干净，比如磁盘中断和文件系统是好的，那么也许能有日志信息保留在文件中，不过这样的好运气我是从来没有遇到过的。如果键盘中断还能响应 (按下  Num Lock，可以看见键盘小灯亮灭)，那么运气就算是足够好了，这时可以祭出 sysrq 大法，同时按下 Alt-Sysrq-T 获得进程系统堆栈信息，按下  Alt-Sysrq-M 获得内存分配信息，按下 Alt-Sysrq-W 获得当前寄存器信息… 详见  linux/Documentation/sysrq.txt。另外，最好关闭终端的自动 blank  功能，这样系统死的时候至少能从屏幕上看到一些信息。设置方法是：</p>
<p># echo 1 &gt; /proc/sys/kernel/sysrq<br />
# setterm -blank</p>
<p>这两个设置最好加到系统启动脚本中 (比如 /etc/rc.d/rc.local)，保证每次启动都能得到运行。</p>
<p>如果很不幸，键盘也死悄悄了，(更为不幸的是，这种情况很常见)，那么也不是只有等死一个办法，这时可以用串口终端 (serial  console)将系统信息发送到另一台系统上，这样可以通过对这些信息分析来定位问题。设置方法如下：</p>
<p>——————————————————————————<br />
准备工作<br />
1. 一台被监视的服务器，一台进行监视工作的PC。<br />
2.  一根串口直连线。</p>
<p>配置<br />
1. 在服务器上，加入一个新的 grub 项目，增加核心参数 “console=ttyS0  console=tty1″，如：<br />
kernel /boot/vmlinuz-2.4.21-9.30AXsmp ro root=LABEL=/1  console=ttyS0 console=tty1</p>
<p>2. 在服务器上，修改 /etc/sysconfig/syslog，加入 klogd 选项 “-c  7″，保证更多内核信息得到输出。如：<br />
KLOGD_OPTIONS=”-x -c 7″</p>
<p>3. 重新启动服务器</p>
<p>4. 用串口直连线连接两台机器，测试：<br />
1) 在PC上运行 “cat /dev/ttyS0″，在服务器上运行 “echo hi &gt;  /dev/ttyS0″，看在 PC 上是否有 “hi” 输出。<br />
2) 在PC上运行 “cat /dev/ttyS0″，在服务器上运行 “echo w  &gt; /proc/sysrq-trigger”，看 PC 上是否有相应内核信息输出。<br />
3) 在PC上运行 “cat  /dev/ttyS0″，在服务器上运行 “modprobe loop”，看 PC 上是否有相应内核信息输出。</p>
<p>5. 如果测试通过，那么在 PC 上运行:<br />
cat /dev/ttyS0 | tee /tmp/result</p>
<p>另外，也可以用 Windows 超级终端获得串口信息。</p>
<p>that’s it.<br />
——————————————————————————</p>
<p>此外，一些核心支持 LKCD, netdump 等调试功能，也可以一试。</p>
<p>剩下的，就只有靠经验和运气了，一般造成 Linux 系统死机的原因有：</p>
<ul>
<li>系统硬件问题 (SCSI 卡，主板，RAID 卡，网卡，硬盘…)</li>
<li>外围硬件问题 (终端切换器，网络…)</li>
<li>软件问题
<ul>
<li>驱动 bug (去找更新的驱动试试)</li>
<li>核心系统 bug (去 LKML 上看看，或换个核心试试)</li>
<li>系统设置</li>
</ul>
</li>
</ul>
<p>最后，google一把。有时候你可以直接输入 “Linux 系统死机怎么办？” 或者 “我的运行 Red Flag Server 2.1 的 Dell  PE6650 经常死机”，看有没有人遇到过和你同样的问题。即使没有找到，也是一个有助于分析问题的信息，至少说明你的系统可能有和其他人不同之处。</p>
<p>调查 Linux 系统死机问题，这既是科学又是艺术，牵扯到众多的硬件软件知识和经验，是一个不断学习的过程，同样，我也会不断更新这篇东西的。</p>
<p>——————————-<br />
05.3.25</p>
<p>当然，需要补充的是，有些时候不是OS的问题，如何判断是否为硬件错误呢？</p>
<p><span style="font-size: x-small;">A number of bugs get reported that really don’t make a lot of  sense.<br />
The cause all sorts of head-scratching among kernel  developers.<br />
Whilst most bug-reporters don’t like to hear that their shiny  new<br />
hardware may be broken/crap, sadly this is the case sometimes.<br />
Here’s  a few tips that may help root-cause hardware problems.- Use the CPU clock speed that the CPU was rated for.<br />
Don’t overclock.  Don’t overclock. Don’t overclock.<br />
Even if Windows XP works fine on your 6GHz  water-cooled Pentium4,<br />
this is no sign of stability. In some cases Linux can  push the<br />
theoretical limits of the machine (by utilising all  available<br />
memory bandwidth for sustained periods of time for  example).<br />
Under such extreme load, the CPU will be generating a lot  more<br />
heat than it will sitting idle on a Windows XP desktop.</p>
<p>- Make sure your power supply is adequate to power all the peripherals<br />
you  have attached. The gotcha here is that whilst it may be adequate<br />
to get the  OS booted, when it’s actually doing some work<br />
(like a big compile, or running  doom), it’s going to use up more<br />
power than it would whilst idling. All of  this power has to come<br />
from somewhere. If the PSU can’t supply enough,  something is going<br />
to be underpowered, which can result in very strange  kernel panics.</p>
<p>- memtest86<br />
Yes it takes ages to run. Sometimes it takes at least a  day<br />
before it shows up that there’s a bit error in some DIMM.<br />
It’s really  worth the time testing though. If you don’t do this<br />
test, and the problem  really is flaky RAM, then the ‘bug’ will<br />
never be fixed.</p>
<p>- Reset BIOS to safe defaults.<br />
A number of times, users have reported  issues that manifest themselves<br />
as really obscure oopses that don’t really  make a lot of sense.<br />
They turned out to be things like ‘CAS timing’ set too  aggressive<br />
on systems with cheap RAM.<br />
(A number of times, these settings  worked fine until the user<br />
added an extra DIMM). Interestingly, this problem  didn’t show up<br />
under memtest86 [although maybe it would if left to run long  enough]</p>
<p>- Check cabling isn’t obscuring airflow.<br />
Fans should be completely  unobstructed, ensuring that air can circulate<br />
throughout the case.</p>
<p>转载自：http://baoz.net/linux-%e7%b3%bb%e7%bb%9f%e6%ad%bb%e6%9c%ba%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f/</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1630/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About Learning Linux</title>
		<link>http://www.187299.com/archives/1627</link>
		<comments>http://www.187299.com/archives/1627#comments</comments>
		<pubDate>Tue, 20 Jul 2010 09:02:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1627</guid>
		<description><![CDATA[Sometimes,my friends ask me how to learn Linux.They want me to recommend them some books and some other study materials. I think the following two books are very good study material.The first one make you know what Linux is. The second one make you know ... ]]></description>
			<content:encoded><![CDATA[<p>Sometimes,my friends ask me how to learn Linux.They want me to recommend them some books and some other study materials.</p>
<p>I think the following two books are very good study material.The first one make you know what Linux is. The second one make you know what can Linux do.Of course, you must do more experiments which mentioned in the books.</p>
<p>1. LINUX：THE TEXTBOOK</p>
<p>http://product.dangdang.com/product.aspx?product_id=9007683&amp;ref=search-1-A</p>
<p>2. 鸟哥的Linux私房菜服务器架设篇（第二版）（附光盘）</p>
<p>http://product.dangdang.com/product.aspx?product_id=20076149&amp;ref=book-02-L</p>
<p>At last, I suggest you build a linux from code source using "Linux From Scratch". This distribution version's offical website is http://www.linuxfromscratch.org/ .The easy install document is http://www.linuxsir.org/bbs/thread322894.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1627/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux中内核的一个不错的参数somaxconn</title>
		<link>http://www.187299.com/archives/1624</link>
		<comments>http://www.187299.com/archives/1624#comments</comments>
		<pubDate>Thu, 15 Jul 2010 05:13:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1624</guid>
		<description><![CDATA[在linux中，/proc/sys/net/core/somaxconn这个参数， 看下其解析： 对于一个TCP连接，Server与Client需要通过三次握手来建立网络连接.当三次握手成功后, 我们可以看到端口的状态由LISTEN转变为ESTABLISHED,接... ]]></description>
			<content:encoded><![CDATA[<p>在linux中，/proc/sys/net/core/somaxconn这个参数，<br />
看下其解析：<br />
对于一个TCP连接，Server与Client需要通过三次握手来建立网络连接.当三次握手成功后,<br />
我们可以看到端口的状态由LISTEN转变为ESTABLISHED,接着这条链路上就可以开始传送数据了.<br />
每一个处于监听(Listen)状态的端口,都有自己的监听队列.监听队列的长度,与如下两方面有关:<br />
- somaxconn参数.<br />
- 使用该端口的程序中listen()函数.<br />
1. 关于somaxconn参数:<br />
定义了系统中每一个端口最大的监听队列的长度,这是个全局的参数,默认值为1024,具体信息为:<br />
Purpose:<br />
Specifies the maximum listen backlog.<br />
Values:<br />
Default: 1024 connections<br />
Range: 0 to MAXSHORT<br />
Type: Connect<br />
Diagnosis:<br />
N/A<br />
Tuning<br />
Increase this parameter on busy Web servers to handle peak connection rates.</p>
<p>看下FREEBSD的解析：<br />
限制了接收新 TCP 连接侦听队列的大小。对于一个经常处理新连接的高负载 web服务环境来说，默认的 128 太小了。 大多数环境这个值建议增加到 1024 或者更多。 服务进程会自己限制侦听队列的大小(例如 sendmail(8) 或者 Apache)， 常常在它们的配置文件中有设置队列大小的选项。大的侦听队列对防止拒绝服务 DoS 攻击也会有所帮助。</p>
<p>转载自：http://jackyrong.javaeye.com/blog/671238</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1624/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables can not start</title>
		<link>http://www.187299.com/archives/1621</link>
		<comments>http://www.187299.com/archives/1621#comments</comments>
		<pubDate>Fri, 09 Jul 2010 07:14:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1621</guid>
		<description><![CDATA[Today,I want to start iptables on my CentOS box for security reason I type service iptables start but there is no output then I type service iptables status it shows Firewall is stopped. After some googles,I solve it type this command system-config-secur... ]]></description>
			<content:encoded><![CDATA[<p>Today,I want to start iptables on my CentOS box for security reason<br />
I type<br />
service iptables start<br />
but there is no output<br />
then I type<br />
service iptables status<br />
it shows<br />
Firewall is stopped.<br />
After some googles,I solve it<br />
type this command<br />
system-config-securitylevel<br />
set Security Level to be  Enabled<br />
hit ok<br />
at last<br />
service iptables start</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1621/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update_Broadcom_NIC_driver_on_CentOS</title>
		<link>http://www.187299.com/archives/1610</link>
		<comments>http://www.187299.com/archives/1610#comments</comments>
		<pubDate>Mon, 05 Jul 2010 12:49:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1610</guid>
		<description><![CDATA[1、build rpm package from source code cd /dist/dist/ wget http://www.broadcom.com/docs/driver_download/NXII/linux-5.2.55.zip cd /dist/src unzip ../dist/linux-5.2.55.zip cd Server/Linux/Driver/ rpm -Uvh netxtreme2-5.2.55-1.src.rpm The source will be inst... ]]></description>
			<content:encoded><![CDATA[<p>1、build rpm package from source code<br />
cd /dist/dist/<br />
wget http://www.broadcom.com/docs/driver_download/NXII/linux-5.2.55.zip<br />
cd /dist/src<br />
unzip ../dist/linux-5.2.55.zip<br />
cd Server/Linux/Driver/<br />
rpm -Uvh netxtreme2-5.2.55-1.src.rpm</p>
<p>The source will be instlled in /usr/src/redhat/SOURCES<br />
The build rules file will be instlled in /usr/src/redhat/SPECS</p>
<p>cd /usr/src/redhat/SPECS<br />
rpmbuild -bb netxtreme2.spec<br />
the package is stored in /usr/src/redhat/RPMS/x86_64/</p>
<p>2、install rpm package<br />
vi update_net_driver.sh</p>
<p>if rpm -Uvh /usr/src/redhat/RPMS/x86_64/netxtreme2-5.2.55-1.x86_64.rpm<br />
then<br />
rmmod  bnx2<br />
modprobe bnx2<br />
fi</p>
<p>save and quit<br />
sh update_net_driver.sh</p>
<p>3、check driver version<br />
ethtool -i eth0<br />
ethtool -i eth1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1610/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
