<?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; 其他Linux技术</title>
	<atom:link href="http://99dev.net/archives/category/tech/linux-tech/feed" rel="self" type="application/rss+xml" />
	<link>http://99dev.net</link>
	<description>智巧终归庸俗，雄谋只余虚话</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:52:36 +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>[Collection]Vmware环境下，克隆Linux系统引发的网卡配置丢失问题</title>
		<link>http://99dev.net/archives/867</link>
		<comments>http://99dev.net/archives/867#comments</comments>
		<pubDate>Fri, 18 Jun 2010 07:48:59 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/867</guid>
		<description><![CDATA[系统环境 – Vmware WorkStation 7(同系列其他产品，如ESX/Esxi类似)
客户机操作系统 – Ubunt Linux Server 9.10

搭建测试环境，为了快速部署，使用Vmware的Clone功能，快速复制出许多客户机。
<span class="readmore"><a href="http://99dev.net/archives/867" title="[Collection]Vmware环境下，克隆Linux系统引发的网卡配置丢失问题" target="_blank">阅读全文——共707字</a></span>]]></description>
			<content:encoded><![CDATA[<blockquote><p>系统环境 – Vmware WorkStation 7(同系列其他产品，如ESX/Esxi类似)</p>
<p>客户机操作系统 – Ubunt Linux Server 9.10</p>
</blockquote>
<p>搭建测试环境，为了快速部署，使用Vmware的Clone功能，快速复制出许多客户机。</p>
<p>启动后发现个问题，除了源客户机，其他副本客户机，网络功能都不正常，具体表现为</p>
<ol>
<li>ifconfig输出的网络配置，只有lo，没有eth0 </li>
<li>“ifconfig –a”输出的网络配置中,eth0已经被自动修改为eth1了 </li>
<li>/etc/udev/rules.d/70-persistent-net.rules中，有eth0和eth1的详细定义。eth0为源客户机copy过来的；eth1为虚拟机自动生成的新网卡，定义区块的ATTR{address}记录着新网卡的mac(在虚拟机目录的VMX文件中，也能找到该mac地址) </li>
</ol>
<p> <span id="more-867"></span>
<ol><font size="5"><strong>故障分析</strong></font></ol>
<ol>为了避免同网段相同mac地址引发的广播风暴，Vmware自动添加了一块新网卡。Ubuntu识别并驱动了该网卡，却没有自动配置它，因此，出现上文那一幕。解决步骤Ubuntu Linux相关的网络配置</ol>
<ul>
<li>/etc/udev/rules.d/70-persistent-net.rules</li>
<li>/etc/network/interfaces</li>
</ul>
<p><font size="5"><strong>解决的思路有2个</strong></font></p>
<ul>
<li>删除/修改/etc/udev/rules.d/70-persistent-net.rules，事实证明，一般情况下，删除最方便，在networking服务重启的时候，会正确识别，并生成新的/etc/udev/rules.d/70-persistent-net.rules</li>
<li>修改interfaces，将其中的eth1统统替换为eth0<font color="#0000ff">(未验证)</font></li>
</ul>
<ol></ol>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/867/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Collection]Adding Date And Time To Your Bash History</title>
		<link>http://99dev.net/archives/861</link>
		<comments>http://99dev.net/archives/861#comments</comments>
		<pubDate>Fri, 11 Jun 2010 03:45:00 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/861</guid>
		<description><![CDATA[多人管理同一台Linux Server，为了方便审计，最好在history内加入操作时间。
It comes in handy particularly if there are multiple people maintaining a given server (so you can see when a command was performed) or even if you are the sole maintainer, but can&#8217;t remember exactly when you did or changed something. 
Edit your /etc/bashrc and append to the bottom:
<span class="readmore"><a href="http://99dev.net/archives/861" title="[Collection]Adding Date And Time To Your Bash History" target="_blank">阅读全文——共746字</a></span>]]></description>
			<content:encoded><![CDATA[<p>多人管理同一台Linux Server，为了方便审计，最好在history内加入操作时间。</p>
<p>It comes in handy particularly if there are multiple people maintaining a given server (so you can see when a command was performed) or even if you are the sole maintainer, but can&#8217;t remember exactly when you did or changed something. </p>
<p>Edit your /etc/bashrc and append to the bottom:</p>
<blockquote><p>export HISTTIMEFORMAT=&quot;%h/%d &#8211; %H:%M:%S &quot;</p>
</blockquote>
<p> <span id="more-861"></span>
<p>From next login instead of: </p>
<p>574&#160; tail -f /var/log/maillog    <br />575&#160; mailq | tail -15     <br />576&#160; tail -f /var/log/maillog     <br />577&#160; less /var/log/maillog </p>
<p>you get: </p>
<p>1002&#160; Apr/30 &#8211; 11:46:16 grep duncan /var/log/maillog    <br />1003&#160; Apr/30 &#8211; 14:17:40 passwd jduncan     <br />1004&#160; Apr/30 &#8211; 14:18:02 smbpasswd jduncan     <br />1005&#160; Apr/30 &#8211; 14:50:28 history 10 </p>
<p>Hope this helps someone;)</p>
<ul>
<ul>
<li>To make it global and permanent to all users, edit /etc/profile and append to the bottom<font color="#0000ff">(已测试通过)</font> </li>
<li>It works also in my Ubuntu box. The file to modify is $HOME/.bashrc<font color="#0000ff">(已测试通过)</font> </li>
</ul>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/861/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]主WEB服务器web service中断以及自动启动项不会up的问题</title>
		<link>http://99dev.net/archives/845</link>
		<comments>http://99dev.net/archives/845#comments</comments>
		<pubDate>Thu, 06 May 2010 01:53:04 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/845</guid>
		<description><![CDATA[# 查看默认的运行级别,Debian系默认运行级别为2,Redhat系默认运行级别为3
[11:34:29.9] root@webserver:/usr/local/webserver/nginx# runlevel
[11:34:31.8] N 2webserverwebserver

<span class="readmore"><a href="http://99dev.net/archives/845" title="[Original]主WEB服务器web service中断以及自动启动项不会up的问题" target="_blank">阅读全文——共2015字</a></span>]]></description>
			<content:encoded><![CDATA[<p># 查看默认的运行级别,Debian系默认运行级别为2,Redhat系默认运行级别为3</p>
<p>[11:34:29.9] root@webserver:/usr/local/webserver/nginx# runlevel</p>
<p>[11:34:31.8] N 2webserverwebserver</p>
<p><span id="more-845"></span>
<p>#运行开机启动项管理器,详细截图见sysv-rc-conf.png</p>
<p>[13:01:32.4] root@webserver:~# sysv-rc-conf</p>
<p>#可以看到存在一些不必要的启动服务,其中包含apache,该服务与nginx冲突</p>
<p>#确保rc.local服务在runlevel2被启用</p>
<p>#之前推测,nginx的https服务和kerio mailserver的https服务相冲突.结合了需求,该WebServer不会挂其他https站点.保留kerio mailserver,重新编译nginx,去掉https选项</p>
<p>[14:13:45.5] root@webserver:~/download/nginx-0.7.61# ./configure &#8211;user=www &#8211;group=www &#8211;prefix=/usr/local/webserver/nginx &#8211;with-http_stub_status_module</p>
<p>[14:14:04.9] root@webserver:~/download/nginx-0.7.61# make</p>
<p>#关闭有冲突的Apache Service</p>
<p>[13:07:10.1] root@webserver:~# /etc/init.d/apache2 stop</p>
<p>#关闭进程,重新安装nginx</p>
<p>[00:16:02.5] root@webserver:~# killall nginx</p>
<p>[00:16:12.6] root@webserver:~# cd /root/download</p>
<p>[00:16:28.7] root@webserver:~/download# cd nginx-0.7.61</p>
<p>[00:16:34.0] root@webserver:~/download/nginx-0.7.61# make install</p>
<p>[00:18:28.7] root@webserver:/usr/local/webserver/nginx/conf# nginx</p>
<p>#启动,测试rc.local是否成功执行</p>
<p>[00:26:00.2] root@webserver:/usr/local/webserver/nginx/conf# reboot</p>
<p>#查看nginx和php进程是否启动</p>
<p>[00:29:42.8] root@webserver:~# ps -aux|grep ngin</p>
<p>[00:29:55.9] www 6401 0.0 0.2 14764 11672 ? S 00:28 0:00 nginx: worker process</p>
<p>&nbsp;&nbsp;</p>
<p>[00:29:55.9] root@webserver:~# ps -aux|grep php</p>
<p>[00:29:59.9] root 6256 0.0 0.0 88624 3708 ? Ss 00:28 0:00 /usr/local/webserver/php/bin/php-cgi &#8211;fpm &#8211;fpm-config /usr/local/webserver/php/etc/php-fpm.conf</p>
<p>#陷阱1</p>
<p>The Mysterious &#8212; MARK &#8211;</p>
<p>All newbie admins asks what this means in /var/log/messages:</p>
<p>Jul 1 16:04:53 windbag &#8212; MARK &#8211;</p>
<p>Jul 1 16:24:53 windbag &#8212; MARK &#8211;</p>
<p>Jul 1 16:44:53 windbag &#8212; MARK &#8211;</p>
<p>That&#8217;s just the syslog daemon letting you know that it is alive and well. You may set the interval to anything you like on Debian by editing /etc/init.d/sysklogd. This sets it to 60 minutes:</p>
<p>SYSLOGD=&#8221;-m 60&#8243;</p>
<p>Then restart the syslog daemon:</p>
<p># /etc/init.d/sysklogd restart</p>
<p>On Red Hat and derivatives, edit /etc/sysconfig/syslog :</p>
<p>SYSLOGD_OPTIONS=&#8221;-m 60&#8243;</p>
<p>Restart syslogd with service syslog restart. Then watch it happen in realtime on any Linux with tail -f /var/log/messages. (You can monitor the changes in any text file with tail.)</p>
<p>#陷阱2</p>
<p>exiting due to signal 15</p>
<p>yslogd: exiting on signal 15 这个看上去是syslogd正常的退出信息</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/845/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>
		<item>
		<title>[Collection]使用密钥登录Linux SSH Server</title>
		<link>http://99dev.net/archives/800</link>
		<comments>http://99dev.net/archives/800#comments</comments>
		<pubDate>Mon, 12 Apr 2010 23:56:55 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[网络管理]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://99dev.net/?p=800</guid>
		<description><![CDATA[在本地主机生成SSH公钥和私钥(这里是用Mac OS X的"终端"工具,其他*Nix以及SSH Client步骤类似)  lin-pooplematoMacBook:~ linpoople$ ssh-keygen  lin-pooplematoMacBook:~ linpoople$ cd .ssh  lin-pooplematoMacBook:.ssh linpoople$ ls  id_rsa id_rsa.pub known_hosts #id_rsa为私钥,留在客户端;id_rsa为公钥,传至服务器端  2.  利用U盘或者FTP等方式,把公钥传至服务器,存放位置为服务器用户的.ssh目录(如果没有该目录,请创建) 


...在服务器上执行一下操作,导入公钥  [lqp@sqdata1 ~]$ cat ~/.ssh/id_rsa.pub &#62;&#62; ~/.ssh/authorized_keys  4.  核实修改.ssh目录(755)和目录下文件的权限(644)(这个貌似还是比较严格的,试过放宽权限,结果认证不了)  [lqp@sqdata1 ~]$ ls -al .ssh/  drwxr-xr-x 2 lqp lqp 4096 04-12 12:45 .  drwx------ 3 lqp lqp 4096 04-12 12:46 ..  -rw-r--r-- 1 lqp lqp 419 04-12 12:45 authorized_keys  -rw-rw-r-- 1 lqp lqp 419 04-12 12:45 id_rsa.pub  -rw-r--r-- 1 lqp lqp 395 04-12 11:35 known_hosts ]]></description>
			<content:encoded><![CDATA[<p>1.在本地主机生成SSH公钥和私钥(这里是用Mac OS X的&#8221;终端&#8221;工具,其他*Nix以及SSH Client步骤类似)</p>
<p>lin-pooplematoMacBook:~ linpoople$ ssh-keygen</p>
<p>lin-pooplematoMacBook:~ linpoople$ cd .ssh</p>
<p>lin-pooplematoMacBook:.ssh linpoople$ ls</p>
<p>id_rsa id_rsa.pub known_hosts #id_rsa为私钥,留在客户端;id_rsa为公钥,传至服务器端</p>
<p>2.利用U盘或者FTP等方式,把公钥传至服务器,存放位置为服务器用户的.ssh目录(如果没有该目录,请创建)</p>
<p><span id="more-800"></span>
<p>3.在服务器上执行一下操作,导入公钥</p>
<p>[lqp@sqdata1 ~]$ cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys</p>
<p>4.核实修改.ssh目录(755)和目录下文件的权限(644)(这个貌似还是比较严格的,试过放宽权限,结果认证不了)</p>
<p>[lqp@sqdata1 ~]$ ls -al .ssh/</p>
<p>drwxr-xr-x 2 lqp lqp 4096 04-12 12:45 .</p>
<p>drwx&#8212;&#8212; 3 lqp lqp 4096 04-12 12:46 ..</p>
<p>-rw-r&#8211;r&#8211; 1 lqp lqp 419 04-12 12:45 authorized_keys</p>
<p>-rw-rw-r&#8211; 1 lqp lqp 419 04-12 12:45 id_rsa.pub</p>
<p>-rw-r&#8211;r&#8211; 1 lqp lqp 395 04-12 11:35 known_hosts</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/800/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]测试Netapp与Windows Server域扩展（基于Linux+NetApp Simulator）</title>
		<link>http://99dev.net/archives/779</link>
		<comments>http://99dev.net/archives/779#comments</comments>
		<pubDate>Sun, 14 Mar 2010 08:18:25 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[网络管理]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/779</guid>
		<description><![CDATA[详细方法官方文档说得很清楚，请移步文章末尾的附件。
#文中提到Data Ontap为Netapp存储的操作系统，基于*Nix定制
几个注意点：
1.需要域控制器上面同时有DNS server。对域控制器不熟的兄弟，可以利用“Windows2003 EE &#8211; 管理工具 &#8211; 管理您的服务器 &#8211; 添加删除角色 -第一台服务器”模式安装。这会把常用的Service都装上，然后移除不需要的服务即可。
<span class="readmore"><a href="http://99dev.net/archives/779" title="[Original]测试Netapp与Windows Server域扩展（基于Linux+NetApp Simulator）" target="_blank">阅读全文——共970字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">详细方法官方文档说得很清楚，请移步文章末尾的附件。</font></span></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">#文中提到Data Ontap为Netapp存储的操作系统，基于*Nix定制</font></span></span></p>
<p><span style="font-size: x-small"><strong><span style="font-size: x-small"><font size="2">几个注意点：</font></span></strong></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"><strong>1.</strong>需要域控制器上面同时有DNS server。对域控制器不熟的兄弟，可以利用“Windows2003 EE &#8211; 管理工具 &#8211; 管理您的服务器 &#8211; 添加删除角色 -第一台服务器”模式安装。这会把常用的Service都装上，然后移除不需要的服务即可。</font></span></span></p>
<p> <span id="more-779"></span><font size="2"></font><span style="font-size: x-small"></span><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"><strong>2.</strong>需要保持Data Ontap和DC服务器时间误差在5分钟以内。否则，客户机登陆CIFS共享时，将会有“权限不足”等的错误提示。同时，NetApp的console界面返回如下信息</font></span></span>
</p>
<blockquote><p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">NTN3600A&gt; Sat Mar 13 11:30:18 GMT [cifs.trace.GSS:error]: AUTH: Unable to acquire filer credentials: (0&#215;96c73a25) Filer and domain time differ by more than 5 minutes.</font></span></span></p>
</blockquote>
<p><span style="font-size: x-small"><font size="2"><span style="font-size: x-small">在Netapp WebUI中调整时间，注意，时区必须选择“PRC”。Data Ontap</span><span style="font-size: x-small">的内核有点诡异，时区选择GMT+8也是不行的。</span></font></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"></font></span></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"><strong>3.</strong>Netapp首次安装，除了3张系统盘，额外的虚拟磁盘，均是不可用。具体表现如下</font></span></span></p>
<blockquote><p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"><strong>a.</strong>启动时，显示如下信息：</font></span></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">“Disk v4.40 Shelf ? Bay ? [NETAPP VD-1000MB-FZ-520 0042] S/N [18084922] has no valid labels. It will be taken out of service to prevent possible data loss.”</font></span></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"><strong>b.</strong>在“Data Ontap &#8211; Storage &#8211; Disk”里显示这几张盘为Broken</font></span></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"><strong>c.</strong>做Aggregates时，会提示“at least 2 spare disks”</font></span></span></p>
</blockquote>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">可以做如下操作来解决这个问题</font></span></span></p>
<blockquote><p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">&gt;priv set diag           <br />*&gt;disk unfail -s v4.19 (where v4.19 is your disk,maybe 4.20,4.21…)            <br />*&gt;disk zero spares</font></span></span></p>
</blockquote>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2"></font></span></span></p>
<p><span style="font-size: x-small"><strong><span style="font-size: x-small"><font size="2">相关工具和文档</font></span></strong></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">1.IBM RedBook:</font></span><a href="http://ftp.99dev.net/Document%ce%c4%b5%b5%d7%ca%c1%cf/Setting%20up%20CIFS%20shares%20and%20joining%20the%20Active%20Dictory.pdf"><span style="font-size: x-small"><font size="2">Setting up CIFS shares and joining the Active Dictory</font></span></a></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">2.</font></span><a href="http://ftp.99dev.net/OS.ISO/7.2.1P1-sim-cdrom-image-v19.iso"><span style="font-size: x-small"><font size="2">模拟器：Netapp Simulator v7.1</font></span></a></span></p>
<p><span style="font-size: x-small"><span style="font-size: x-small"><font size="2">3.模拟器使用文档：</font></span><a href="http://ftp.99dev.net/[Document]%ce%c4%b5%b5%d7%ca%c1%cf/simulator7_3.pdf" target="_blank"><span style="font-size: x-small"><font size="2">Netapp Simulator User Guide v7.1</font></span></a></span></p>
<p><font size="2"></font></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/779/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]打造远程脱机下载器</title>
		<link>http://99dev.net/archives/775</link>
		<comments>http://99dev.net/archives/775#comments</comments>
		<pubDate>Thu, 18 Feb 2010 07:17:57 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[善用佳软]]></category>
		<category><![CDATA[webui pt torrent]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/775</guid>
		<description><![CDATA[一、Windows平台
utorrent 
推荐等级：强力推荐
理由：老牌的BT Client，为国内大多数PT站所支持。设置简单，资源占有率低。WEB管理界面和本机一致，无须重新适应。
<span class="readmore"><a href="http://99dev.net/archives/775" title="[Original]打造远程脱机下载器" target="_blank">阅读全文——共529字</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong><font size="2">一、Windows平台</font></strong></p>
<p><font size="2"><strong>utorrent</strong> </font></p>
<p><font size="2">推荐等级：强力推荐</font></p>
<p><font size="2">理由：老牌的BT Client，为国内大多数PT站所支持。设置简单，资源占有率低。WEB管理界面和本机一致，无须重新适应。</font></p>
<p> <span id="more-775"></span>
<p><a href="http://99dev.net/wp-content/uploads/upload_img/Original_13BD6/image.png"><font size="2"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://99dev.net/wp-content/uploads/upload_img/Original_13BD6/image_thumb.png" width="599" height="297" /></font></a><font size="2"> </font></p>
<p><font size="2">&#160;</font></p>
<p><strong><font size="4">二、Linux平台</font></strong></p>
<p><font size="2"><strong>1.Auzure</strong> </font></p>
<p><font size="2">功能比较强大的客户端，Java程序，略显臃肿。Web管理端以插件形式提供。</font></p>
<p><font size="2">A.<em>Auzure Html Webui</em>&#160;&#160; 基于B/S架构，可以使用“插件安装向导”来完成安装。</font></p>
<p><a href="http://99dev.net/wp-content/uploads/upload_img/Original_13BD6/image_3.png"><font size="2"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://99dev.net/wp-content/uploads/upload_img/Original_13BD6/image_thumb_3.png" width="600" height="182" /></font></a><font size="2"> </font></p>
<blockquote><p><font size="2">B.Azsmrc&#160;&#160; 基于C/S架构，提供更加复杂的管理功能。支持多用户，将你的Auzure打造成真正的脱机下载服务器。</font></p>
<p><font size="2">Server端：请直接使用“插件安装向导安装”</font></p>
<p><font size="2">Client端：</font><a href="http://sourceforge.net/projects/azsmrc/files/" target="_blank"><font size="2">下载地址</font></a></p>
<p><font size="2">使用帮助：</font><a href="http://wiki.vuze.com/w/AzSMRC" target="_blank"><font size="2">Wiki</font></a></p>
</blockquote>
<p><font size="2"><strong></strong></font></p>
<p><font size="2"><strong>2.Transmission</strong> Linux自带，功能略显简单，配合transmission remote可以远程管理。</font></p>
<p><font size="2"><strong>3.Refuse</strong> Python程序，界面和Windows下的utorrent相似，设置简单，无中文版。自带Web管理功能。</font></p>
<p><font size="2"><strong>4.Duluge</strong> 推荐 在Ubuntu8.04上测试，没办法启动daemon，不知何故</font></p>
<p><font size="2"><strong>5.rtorrent</strong> 适合没有X环境的Linux终端使用。Web管理依赖Apache/Lighttpd，配置过程略显繁琐。</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">关键字:webui linux remote</font></p>
<p><font size="2"></font></p>
<p><font size="2"></font></p>
<p><font size="2"></font></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/775/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Collection]Linux+subversion+apache+openssl部署</title>
		<link>http://99dev.net/archives/767</link>
		<comments>http://99dev.net/archives/767#comments</comments>
		<pubDate>Mon, 25 Jan 2010 16:08:54 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/767</guid>
		<description><![CDATA[前几天通宵做完，已经投入使用了。还来不及做下总结，先Mark一下，占个位置，有空再编辑。
几个参考链接
http://subversion.tigris.org/ds/viewMessage.do?dsMessageId=2364143&#38;dsForumId=445
http://blog.csdn.net/mynamesucks/archive/2007/12/03/1913835.aspx
<span class="readmore"><a href="http://99dev.net/archives/767" title="[Collection]Linux+subversion+apache+openssl部署" target="_blank">阅读全文——共254字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="2">前几天通宵做完，已经投入使用了。还来不及做下总结，先Mark一下，占个位置，有空再编辑。</font></p>
<blockquote><p><font size="2">几个参考链接</font></p>
<p><a title="http://subversion.tigris.org/ds/viewMessage.do?dsMessageId=2364143&amp;dsForumId=445" href="http://subversion.tigris.org/ds/viewMessage.do?dsMessageId=2364143&amp;dsForumId=445">http://subversion.tigris.org/ds/viewMessage.do?dsMessageId=2364143&amp;dsForumId=445</a></p>
<p><a title="http://blog.csdn.net/mynamesucks/archive/2007/12/03/1913835.aspx" href="http://blog.csdn.net/mynamesucks/archive/2007/12/03/1913835.aspx">http://blog.csdn.net/mynamesucks/archive/2007/12/03/1913835.aspx</a></p>
<p><a title="http://blog.csdn.net/jlnuboy/archive/2009/10/25/4725140.aspx" href="http://blog.csdn.net/jlnuboy/archive/2009/10/25/4725140.aspx">http://blog.csdn.net/jlnuboy/archive/2009/10/25/4725140.aspx</a></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/767/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]企业NAS存储方案设计和部署</title>
		<link>http://99dev.net/archives/740</link>
		<comments>http://99dev.net/archives/740#comments</comments>
		<pubDate>Wed, 06 Jan 2010 03:22:24 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/740</guid>
		<description><![CDATA[一、硬件选择      存储系统，容易出现瓶颈的子系统，分别是网络、内存、磁盘，最不容易出现瓶颈的子系统为CPU。更多详情参照《服务器性能瓶颈分析》。
参考配置        CPU&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 双核酷睿处理器E7400,2.8GHz及以上         内存&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2GB 内存, 1&#215;1GB, 667MHz, DDR-2         硬盘&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1000GB 3.5英寸, 7200RPM SATA 硬盘*3         网络适配器&#160;&#160; Broadcom 5722 千兆以太网集成控制卡*2（或者同级别Intel系列）         Raid级别&#160;&#160;&#160;&#160; Raid 5         管理系统&#160;&#160;&#160;&#160;&#160; FreeNAS 0.69及以上
<span class="readmore"><a href="http://99dev.net/archives/740" title="[Original]企业NAS存储方案设计和部署" target="_blank">阅读全文——共1495字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="2">一、硬件选择      <br />存储系统，容易出现瓶颈的子系统，分别是网络、内存、磁盘，最不容易出现瓶颈的子系统为CPU。更多详情参照《服务器性能瓶颈分析》。</font></p>
<blockquote><p><font size="2">参考配置        <br />CPU&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 双核酷睿处理器E7400,2.8GHz及以上         <br />内存&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2GB 内存, 1&#215;1GB, 667MHz, DDR-2         <br />硬盘&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1000GB 3.5英寸, 7200RPM SATA 硬盘*3         <br />网络适配器&#160;&#160; Broadcom 5722 千兆以太网集成控制卡*2（或者同级别Intel系列）         <br />Raid级别&#160;&#160;&#160;&#160; Raid 5         <br />管理系统&#160;&#160;&#160;&#160;&#160; FreeNAS 0.69及以上</font></p>
</blockquote>
<p><font size="2">二、相关说明</font></p>
<p> <span id="more-740"></span>
<p><font size="2"></font></p>
<p><font size="2">■文件服务是关键服务，宕机一小时，都会有很大的压力，建议选择品牌服务器。</font></p>
<p><font size="2">■Raid5不建议使用板载Raid，俗称BIOS Raid，功能不够完善。一个功能完善的Raid控制器，应该包括创建/删除，状态监控，故障恢复(Rebuild)功能，板载Raid一般缺乏后二者功能，采用此方案是相当冒险的。(注：Linux主要是使用dmraid 套件搭配 device-mapper 功能，来存取BIOS RAID硬盘。对Raid0和1支持较好)</font></p>
<p><font size="2">因此，推荐外置SATA/SCSI Raid扩展卡。      </p>
<p>■一定要上Raid5，最低要求是hdd×3，但还是建议插满阵列卡的所有slot。       <br />●raid 5只保障了磁盘的安全；如果文件被删除了，怎么办？如果文件被清空保存了，又怎么办？       <br />建议每天做备份（完全备份/增量备份），磁带或者远程都可以。       </p>
<p>●如果文件系统撑满了怎么办？       <br />建议上LVM，这是一项在企业级Unix上应用多年的管理机制了，相当成熟了。       </p>
<p>●要兼顾安全和灵活，可以尝试SUN Solaris的ZFS文件系统，目前Solaris、FreeBSD、FreeNAS都已经支持该文件系统了，其中FreeBSD和FreeNAS的ZFS Support都还未release，建议要采用该文件系统的兄弟，直接上Solaris For x86或者OpenSolaris。ZFS文件系统占用内存稍大，建议上更大的内存。       </p>
<p>■一定要多网卡冗余，单块G网卡有时候会在吞吐量大的时候假死。       <br />多网卡捆绑一个IP，Intel已有软件可以实现，或者是交换机上面做端口捆绑。       <br /></font></p>
<p><font size="2">■存储管理系统的话，如果有较好的*Nix基础，可以采用Linux或者FreeBSD做SoftRaid(mdadm套件)+LVM。 1U的机器的话，LVM就不用做了。1U机器最大只能塞下4张盘，1张放存储管理系统，只有3张可以用于Raid5，相当于实际上只有一个PV，实施LVM是没有什么意义的。      </p>
<p>没有较好的*nix基础的话，<strong><font color="#ff0000">推荐使用FreeNAS系统</font></strong>。这是一个定制过的FreeBSD系统，有友好的WEB管理界面，功能丰富。事实上，笔者也是用这个系统来管理存储的。       <br /></font></p>
<p><font size="2"></font></p>
<p><font size="2">三、FreeNAS安装和配置      <br />■配置手册      <br />■过程截图</font></p>
<p><font size="2">四、挂载和测试      </p>
<p>■如果是使用iSCSI协议(支持*nix及Win系统)       <br />■如果是使用NFS协议(只支持*nix系统)</font></p>
<p><font size="2">五、其他参考</font></p>
<p><font size="2">■Linux中建立和模拟raid故障&#160; </font><a title="http://bbs.zdnet.com.cn/archiver/tid-199958.html" href="http://bbs.zdnet.com.cn/archiver/tid-199958.html"><font size="2">http://bbs.zdnet.com.cn/archiver/tid-199958.html</font></a><font size="2">      <br />■FreeNAS中设置默认路由</font></p>
<blockquote><p><font size="2"><strong>配置文件方式</strong>         <br />/etc/rc.conf         <br />defaultrouter=&quot;10.20.30.1&quot; </font><font size="2">       <br /><strong>CLI方式          <br /></strong># route add default 10.20.30.1</font></p>
</blockquote>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">&#160;</font></p>
<p><font size="2">df&#160;&#160; -&#160;&#160;&#160; 文件系统的使用情况      <br />dd&#160;&#160;&#160;&#160; -&#160;&#160;&#160;&#160; 转换和输出数据       <br />hdparm -&#160;&#160;&#160; 显示和设置硬盘参数       <br />bonnie++ &#8211; 系统IO性能测试       <br />iozone&#160;&#160; -&#160; 系统IO性能测试</font></p>
<p><font size="2"></font></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/740/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Colletction]Vsftpd应用配置Tips</title>
		<link>http://99dev.net/archives/737</link>
		<comments>http://99dev.net/archives/737#comments</comments>
		<pubDate>Tue, 05 Jan 2010 15:05:27 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/737</guid>
		<description><![CDATA[■禁止用户登录shell
在添加用户时，指定shell为/sbin/nlogin即可。经常错误地指为/bin/false，留个记号吧。
对于Ubuntu Server，vsftpd在验证用户阶段，会检查用户的shell是否已经在系统中注册。默认的，/sbin/nologin在系统变量找不到的。需要我们手工添加
 
<span class="readmore"><a href="http://99dev.net/archives/737" title="[Colletction]Vsftpd应用配置Tips" target="_blank">阅读全文——共328字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="2">■禁止用户登录shell</font></p>
<p><font size="2">在添加用户时，指定shell为/sbin/nlogin即可。经常错误地指为/bin/false，留个记号吧。</font></p>
<p><font size="2">对于Ubuntu Server，vsftpd在验证用户阶段，会检查用户的shell是否已经在系统中注册。默认的，/sbin/nologin在系统变量找不到的。需要我们手工添加</font></p>
<p> <span id="more-737"></span>
<p><font size="2"></font></p>
<blockquote><p><font size="2">echo &quot;/sbin/nologin&quot; &gt;&gt; /etc/shells&#160;&#160; </font></p>
</blockquote>
<p><font size="2">使用一下命令添加用户，注意-s选项</font></p>
<blockquote><p><font size="2">usermod -d /home/poopleit -s /sbin/nologin pooplei</font></p>
</blockquote>
<p><font size="2">■</font><font size="2">开启FXP支持（修改vsftpd.conf文件）</font></p>
<blockquote><p>pasv_enable=YES     <br />pasv_promiscuous=YES      <br />port_promiscuous=YES</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/737/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
