<?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>x83.net &#187; Linux</title>
	<atom:link href="http://www.x83.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nginx + php 5.2.17 + php-fpm</title>
		<link>http://www.x83.net/nginx-php-5-2-17-php-fpm/</link>
		<comments>http://www.x83.net/nginx-php-5-2-17-php-fpm/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 12:30:17 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[5.2.17]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-fpm]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=778</guid>
		<description><![CDATA[Download the needed packages and store them in /usr/src: http://us.php.net/distributions/php-5.2.17.tar.gz http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz http://nginx.org/download/nginx-1.1.0.tar.gz Then run : tar -xvzf php-5.2.17.tar.gz gzip -cd php-5.2.17-fpm-0.5.14.diff.gz &#124; sudo patch -d php-5.2.17 -p1 cd php-5.2.17 ./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --enable-pdo --with-curl --disable-debug --with-pic --disable-rpath --enable-inline-optimization --with-bz2 --enable-xml --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-pcre-regex --with-gd --without-pdo-sqlite [...]]]></description>
			<content:encoded><![CDATA[<p>Download the needed packages and store them in /usr/src:</p>
<p>http://us.php.net/distributions/php-5.2.17.tar.gz</p>
<p>http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz</p>
<p>http://nginx.org/download/nginx-1.1.0.tar.gz</p>
<p>Then run :</p>
<p><code>tar -xvzf php-5.2.17.tar.gz<br />
gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | sudo patch -d php-5.2.17 -p1<br />
cd php-5.2.17<br />
./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --enable-pdo --with-curl --disable-debug --with-pic --disable-rpath --enable-inline-optimization --with-bz2 --enable-xml --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-pcre-regex --with-gd --without-pdo-sqlite --with-pdo-mysql --without-sqlite --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-mysql --enable-bcmath --enable-calendar --enable-exif --enable-ftp  --with-gettext --with-imap --with-mysqli --with-openssl --with-kerberos --with-imap-ssl --enable-dbase --with-gmp --enable-shmop --enable-wddx</p>
<p>make all install</code></p>
<p>Note that you can add &#8211;<strong>prefix </strong> to install the binaries in a different location than the default one.</p>
<p>After compilation is done :</p>
<p><code>strip /usr/local/bin/php-cgi<br />
cp sapi/cgi/fpm/php-fpm /etc/init.d/<br />
chmod +x /etc/init.d/php-fpm</p>
<p>cp /usr/src/php-5.2.17/php.ini-recommended /usr/local/lib/php.ini<br />
mkdir /etc/php/<br />
ln -s /usr/local/lib/php.ini /etc/php/php.ini<br />
ln -s /usr/local/etc/php-fpm.conf /etc/php/php-fpm.conf<br />
</code></p>
<p>Make sure you edit <strong>/etc/php/php-fpm.conf</strong> and set the proper user/group (and permissions if its the case).</p>
<p>Then compile Nginx:</p>
<p><code>tar zxvf nginx-1.1.0.tar.gz<br />
./configure --sbin-path=/usr/local/sbin --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module<br />
make &#038;&#038; sudo make install<br />
</code></p>
<p>The same you can modify the <strong>&#8211;prefix</strong>  here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/nginx-php-5-2-17-php-fpm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk 10 nginx reverse proxy configuration in front of Apache</title>
		<link>http://www.x83.net/plesk-10-nginx-reverse-proxy-configuration-in-front-of-apache/</link>
		<comments>http://www.x83.net/plesk-10-nginx-reverse-proxy-configuration-in-front-of-apache/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:40:14 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpdmng]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[plesk 10]]></category>
		<category><![CDATA[reverse proxy]]></category>
		<category><![CDATA[websrvmng]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=769</guid>
		<description><![CDATA[Plesk 10 nginx reverse proxy configuration On older Plesk version ( websrvmng &#8211;set-http-port &#8211;port=8080 Starting with Plesk 10 this is not so easy since you have to edit a php file called /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php. In my case instead of : domain-&#62;physicalHosting-&#62;ipAddress-&#62;address ?&#62;:server-&#62;webserver-&#62;httpsPort : $VAR-&#62;server-&#62;webserver-&#62;httpPort ?&#62;&#62; ServerName "domain-&#62;asciiName ?&#62;:server-&#62;webserver-&#62;httpsPort : $VAR-&#62;server-&#62;webserver-&#62;httpPort ?&#62;" I&#8217;ve set : &#160; &#60;VirtualHost [...]]]></description>
			<content:encoded><![CDATA[<p>Plesk 10 nginx reverse proxy configuration</p>
<p>On older Plesk version (</p>
<p><strong>websrvmng &#8211;set-http-port &#8211;port=8080</strong></p>
<p>Starting with Plesk 10 this is not so easy since you have to edit a php file called <em>/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php</em>. In my case instead of :</p>
<p><code>domain-&gt;physicalHosting-&gt;ipAddress-&gt;address ?&gt;:<!--?php echo $OPT['ssl'] ? $VAR--->server-&gt;webserver-&gt;httpsPort : $VAR-&gt;server-&gt;webserver-&gt;httpPort ?&gt;&gt;<br />
ServerName "<!--?php echo $VAR--->domain-&gt;asciiName ?&gt;:<!--?php echo $OPT['ssl'] ? $VAR--->server-&gt;webserver-&gt;httpsPort : $VAR-&gt;server-&gt;webserver-&gt;httpPort ?&gt;"</code></p>
<p>I&#8217;ve set :</p>
<p>&nbsp;</p>
<p>&lt;VirtualHost &lt;?php echo $OPT['ipAddress']-&gt;escapedAddress ?&gt;:&lt;?php echo $OPT['ssl'] ? 8043 : 8080 ?&gt;&gt;<br />
ServerName &#8220;&lt;?php echo $VAR-&gt;domain-&gt;asciiName ?&gt;:&lt;?php echo $OPT['ssl'] ? 8043 : 8080 ?&gt;&#8221;</p>
<p><span style="font-family: monospace;"><br />
</span></p>
<p>Where 8043 will be the new https port and 8080 will be the http port.</p>
<p>After this change I had to run :</p>
<p><strong>/usr/local/psa/admin/bin/httpdmng &#8211;reconfigure-all</strong></p>
<p>Note that this is only for Plesk 10.x. On 9.x we used to have</p>
<p><strong>/usr/local/psa/admin/sbin/websrvmng &#8211;reconfigure-all</strong></p>
<p>After this make sure that the Apache server has set in its configuration files (/etc/httpd/conf/httpd.conf) Listen 8080 instead of Listen 80. Same thing for the /etc/httpd/conf.d/ssl.conf file, Listen 8043 instead of Listen 443.</p>
<p>Then you need to install nginx (yum install nginx) and download this zip file that these guys provided <a title="zip" href="http://www.grafxsoftware.com/download/nginx/nginx_setup.zip">http://www.grafxsoftware.com/download/nginx/nginx_setup.zip</a>. Furthermore you can check their <a title="Howto" href="http://www.grafxsoftware.com/faq.php/HOW-TO-configure-PLESK-with-NGinx-proxy-reverse/1/1/">http://www.grafxsoftware.com/faq.php/HOW-TO-configure-PLESK-with-NGinx-proxy-reverse/1/1/</a>.</p>
<p>Once downloaded run:</p>
<p><strong>sh generate_nginx_conf.sh</strong></p>
<p>Verify with &#8220;nginx -t&#8221; that there isn&#8217;t any error and finally restart the involved services :</p>
<p><strong>service httpd restart<br />
service nginx restart</strong></p>
<p>Make sure that 8043 and 8080 accept connections. (Note that its not necessary to change the https port).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/plesk-10-nginx-reverse-proxy-configuration-in-front-of-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bulk adding domains in Plesk</title>
		<link>http://www.x83.net/bulk-adding-domains-in-plesk/</link>
		<comments>http://www.x83.net/bulk-adding-domains-in-plesk/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 19:44:54 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[bulk]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=457</guid>
		<description><![CDATA[I had one client that wanted to add 400 domains on 4 Windows servers, each server had like 4-5 public ips, so I had to use 4/5 ip for 100 domains. On Windows this worked fine for me: FOR /L %i IN (0,1,99) DO domain &#8211;create mydomain61%i.INFO -login user61%i -ip IP_address -status enabled -hosting true [...]]]></description>
			<content:encoded><![CDATA[<p>I had one client that wanted to add 400 domains on 4 Windows servers, each server had like 4-5 public ips, so I had to use 4/5 ip for 100 domains.</p>
<p>On Windows this worked fine for me:</p>
<p>FOR /L %i IN (0,1,99) DO domain &#8211;create mydomain61%i.INFO -login user61%i -ip IP_address -status enabled -hosting true -hst_type phys -passwd domainpass -cgi true -php true -dns true -template Default_Domain</p>
<p>Note that you have to add your own template and rename it like Default_Domain. Of course you can script this even more by taking the domains from a list, same for the ip addresses.</p>
<p>On Linux this can be done using the domain.sh script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/bulk-adding-domains-in-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Dante socks proxy</title>
		<link>http://www.x83.net/install-dante-socks-proxy/</link>
		<comments>http://www.x83.net/install-dante-socks-proxy/#comments</comments>
		<pubDate>Mon, 24 May 2010 12:51:07 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dante]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socks]]></category>

		<guid isPermaLink="false">http://www.x83.net/install-dante-socks-proxy/</guid>
		<description><![CDATA[Dante socks install : Download Dante from : ftp://ftp.inet.no/pub/socks/dante-1.2.0.tar.gz tar zxvf dante-1.2.0.tar.gz cd dante-1.2.0 yum install gcc make ./configure make -j4 make install ifconfig -a &#124;  grep inet &#124; awk &#8216;{print $2}&#8217; &#124; awk -F &#8216;:&#8217; &#8216;{print $2}&#8217; &#124; grep -v 127.0.0.1 &#62;  /root/ips for i in `cat ips` ;do echo &#8220;internal: $i port = [...]]]></description>
			<content:encoded><![CDATA[<p>Dante socks install :</p>
<p>Download Dante from : ftp://ftp.inet.no/pub/socks/dante-1.2.0.tar.gz</p>
<p>tar zxvf dante-1.2.0.tar.gz<br />
cd dante-1.2.0<br />
yum install gcc make<br />
./configure<br />
make -j4<br />
make install</p>
<blockquote><p>ifconfig -a |  grep inet | awk &#8216;{print $2}&#8217; | awk -F &#8216;:&#8217; &#8216;{print $2}&#8217; | grep -v 127.0.0.1 &gt;  /root/ips</p></blockquote>
<blockquote><p>for i in `cat ips` ;do echo &#8220;internal: $i port = 6060&#8243; &gt;&gt; /root/sockd.conf ;done</p></blockquote>
<p>Example of sockd.conf :</p>
<blockquote><p>logoutput: stderr<br />
method: username none<br />
external: externalIPtouse<br />
client pass {<br />
from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0<br />
}<br />
pass {<br />
from: 0.0.0.0/0 to: 0.0.0.0/0<br />
method: username<br />
protocol: tcp udp<br />
}
</p></blockquote>
<p>Launch using :</p>
<p>sockd -f /root/sockd.conf -d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/install-dante-socks-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move Windows with screen</title>
		<link>http://www.x83.net/move-windows-with-screen/</link>
		<comments>http://www.x83.net/move-windows-with-screen/#comments</comments>
		<pubDate>Thu, 13 May 2010 11:18:36 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=414</guid>
		<description><![CDATA[change to the window you want to move type (for example) ^a:number 1 ^x is the host key (usually ^a on most machines)  (CTRL+A) :number (typed literally) is the command 1 the number to move the current screen to]]></description>
			<content:encoded><![CDATA[<ul>
<li>change to the window you want to move</li>
<li>type (for example) <strong>^a:number 1</strong></li>
<li><strong>^x</strong> is the host key (usually ^a on most machines)  (CTRL+A)</li>
<li><strong>:number</strong> (typed literally) is the command</li>
<li><strong>1</strong> the number to move the current screen to</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/move-windows-with-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add swap on Linux</title>
		<link>http://www.x83.net/add-swap-on-linux/</link>
		<comments>http://www.x83.net/add-swap-on-linux/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 19:09:46 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[mkswap]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=390</guid>
		<description><![CDATA[[root@host ~]# dd if=/dev/zero of=/swapfile bs=1024 count=1048576 1048576+0 records in 1048576+0 records out [root@host ~]# sync [root@host ~]# mkswap /swapfile Setting up swapspace version 1, size = 1073737 kB [root@host ~]# swapon /swapfile [root@host ~]# echo &#8220;/swapfile swap swap defaults 0 0&#8243; >> /etc/fstab]]></description>
			<content:encoded><![CDATA[<blockquote><p>
[root@host ~]# dd if=/dev/zero of=/swapfile bs=1024 count=1048576<br />
1048576+0 records in<br />
1048576+0 records out<br />
[root@host ~]# sync<br />
[root@host ~]# mkswap /swapfile<br />
Setting up swapspace version 1, size = 1073737 kB<br />
[root@host ~]# swapon /swapfile<br />
[root@host ~]# echo &#8220;/swapfile swap swap defaults 0 0&#8243; >> /etc/fstab</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/add-swap-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to generate interface configs on Linux</title>
		<link>http://www.x83.net/script-to-generate-interface-configs-on-linux/</link>
		<comments>http://www.x83.net/script-to-generate-interface-configs-on-linux/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:26:54 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[DEVICE]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[ifcfg-eth1]]></category>
		<category><![CDATA[IPADDR]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=382</guid>
		<description><![CDATA[Generate ifcfg-eth1 307-366 configs. touch ifcfg-eth1:{307..366} for f in ifcfg-eth1:{307..366}; do cat origfile > &#8220;$f&#8221;; done for f in eth1:{307..366}; do echo &#8220;DEVICE=$f&#8221; >> &#8220;ifcfg-$f&#8221;; done for f in {307..366}; do echo &#8220;IPADDR=aaa.bbb.ccc.$((f-239))&#8221; >> &#8220;ifcfg-eth1:$f&#8221;; done origfile contains: GATEWAY=eee.fff.ggg.hhh TYPE=Ethernet BOOTPROTO=none NETMASK=255.255.255.192]]></description>
			<content:encoded><![CDATA[<p>Generate ifcfg-eth1 307-366 configs. </p>
<blockquote><p>touch ifcfg-eth1:{307..366}<br />
for f in ifcfg-eth1:{307..366}; do cat origfile > &#8220;$f&#8221;; done<br />
for f in eth1:{307..366}; do echo &#8220;DEVICE=$f&#8221; >> &#8220;ifcfg-$f&#8221;; done<br />
for f in {307..366}; do echo &#8220;IPADDR=aaa.bbb.ccc.$((f-239))&#8221; >> &#8220;ifcfg-eth1:$f&#8221;; done
</p></blockquote>
<p>origfile contains:</p>
<blockquote><p>GATEWAY=eee.fff.ggg.hhh<br />
TYPE=Ethernet<br />
BOOTPROTO=none<br />
NETMASK=255.255.255.192</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/script-to-generate-interface-configs-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I find out Linux Disk utilization RHEL/Centos?</title>
		<link>http://www.x83.net/how-do-i-find-out-linux-disk-utilizationrhelcentos/</link>
		<comments>http://www.x83.net/how-do-i-find-out-linux-disk-utilizationrhelcentos/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 20:11:36 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[rhel]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=377</guid>
		<description><![CDATA[iostat syntax for disk utilization report iostat -d -x interval count -d : Display the device utilization report (d == disk) -x : Display extended statistics including disk utilization interval : It is time period in seconds between two samples . iostat 2 will give data at each 2 seconds interval. count : It is [...]]]></description>
			<content:encoded><![CDATA[<p>iostat syntax for disk utilization report</p>
<p>iostat -d -x interval count</p>
<p>      -d : Display the device utilization report (d == disk)<br />
      -x : Display extended statistics including disk utilization</p>
<p>      interval : It is time period in seconds between two samples . iostat 2 will give data at each 2 seconds interval.</p>
<p>      count : It is the number of times the data is needed . iostat 2 5 will give data at 2 seconds interval 5 times</p>
<p>Display 3 reports of extended statistics at 5 second intervals for disk</p>
<p>Type the following command:</p>
<p># iostat -d -x 5 3</p>
<p>Output:</p>
<p>[root@vari Desktop]# iostat -d -x 5 3</p>
<p>Linux 2.6.18-128.7.1.el5xen (vari.taashee.com) 08/26/2009 _i686_ (2 CPU)</p>
<p>Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util</p>
<p>sda 2.41 12.42 3.27 5.37 134.84 142.70 32.13 0.12 14.04 1.83 1.58</p>
<p>Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util</p>
<p>sda 0.00 1.60 0.00 0.40 0.00 16.00 40.00 0.00 0.00 0.00 0.00</p>
<p>Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util</p>
<p>sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00</p>
<p>Where,</p>
<p>    rrqm/s : The number of read requests merged per second that were queued to the hard disk<br />
    wrqm/s : The number of write requests merged per second that were queued to the hard disk<br />
    r/s : The number of read requests per second<br />
    w/s : The number of write requests per second<br />
    rsec/s : The number of sectors read from the hard disk per second<br />
    wsec/s : The number of sectors written to the hard disk per second<br />
    avgrq-sz : The average size (in sectors) of the requests that were issued to the device.<br />
    avgqu-sz : The average queue length of the requests that were issued to the device<br />
    await : The average time (in milliseconds) for I/O requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.</p>
<p>      svctm : The average service time (in milliseconds) for I/O requests that were issued to the device<br />
      %util : Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%.</p>
<p>How do I interpret the output result for optimization?</p>
<p>First you need to note down following values from the iostat output:</p>
<p>   1. The average service time (svctm)<br />
   2. Percentage of CPU time during which I/O requests were issued (%util)<br />
   3. See if a hard disk reports consistently high reads/writes (r/s and w/s)</p>
<p>If any one of these are high, you need to take one of the following action:</p>
<p>      Get high speed disk and controller for file system (for example move from SATA I to SAS 15k disk)<br />
      Tune software or application or kernel or file system for better disk utilization<br />
      Use RAID array to spread the file system</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/how-do-i-find-out-linux-disk-utilizationrhelcentos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to sort folders by size with one command line in Linux</title>
		<link>http://www.x83.net/how-to-sort-folders-by-size-with-one-command-line-in-linux/</link>
		<comments>http://www.x83.net/how-to-sort-folders-by-size-with-one-command-line-in-linux/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 03:35:40 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[max-depth]]></category>
		<category><![CDATA[size]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=347</guid>
		<description><![CDATA[du &#8211;max-depth=1 $PWD &#124; sort -n -r du -H &#8211;max-depth=1 $PWD &#8220;-H&#8221; &#8211; produce human readable format sizes (like: 1K 10M 1G) A good and short one liner using xargs du -s ./* &#124; sort -n&#124; cut -f 2-&#124;xargs -i du -sh {} This will sort the folders according to size and display them in [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>du &#8211;max-depth=1 $PWD | sort -n -r<br />
du -H &#8211;max-depth=1 $PWD</p></blockquote>
<p>&#8220;-H&#8221;  &#8211; produce human readable format sizes (like: 1K 10M 1G)</p>
<p>A good and short one liner using xargs</p>
<blockquote><p>du -s ./* | sort -n| cut -f 2-|xargs -i du -sh {}</p></blockquote>
<p>This will sort the folders according to size and display them in human readable format… to reverse the list<br />
use sort -nr option.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/how-to-sort-folders-by-size-with-one-command-line-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto configure vsftpd</title>
		<link>http://www.x83.net/howto-configure-vsftpd/</link>
		<comments>http://www.x83.net/howto-configure-vsftpd/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 07:03:14 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[chroot_list]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=318</guid>
		<description><![CDATA[yum install vsftpd [root@shifu ~]# cat /etc/vsftpd/vsftpd.conf &#124; grep -v ^# anonymous_enable=NO # disable anonymous account local_enable=YES # enable local users write_enable=YES # enable uploading files local_umask=022 # mask dirmessage_enable=YES xferlog_enable=YES # log messages connect_from_port_20=YES xferlog_std_format=YES idle_session_timeout=600 chroot_list_enable=YES # chroot users into their own dir listen=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES /etc/vsftpd/chroot_list contains a list of all [...]]]></description>
			<content:encoded><![CDATA[<p>yum install vsftpd</p>
<blockquote><p>[root@shifu ~]# cat /etc/vsftpd/vsftpd.conf  | grep -v ^#<br />
anonymous_enable=NO                      # disable anonymous account<br />
local_enable=YES                             # enable local users<br />
write_enable=YES                            # enable uploading files<br />
local_umask=022                             # mask<br />
dirmessage_enable=YES<br />
xferlog_enable=YES                         # log messages<br />
connect_from_port_20=YES<br />
xferlog_std_format=YES<br />
idle_session_timeout=600<br />
chroot_list_enable=YES                     # chroot users into their own dir<br />
listen=YES</p>
<p>pam_service_name=vsftpd<br />
userlist_enable=YES<br />
tcp_wrappers=YES</p>
</blockquote>
<p><strong>/etc/vsftpd/chroot_list</strong> contains a list of all users that will be in chroot</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/howto-configure-vsftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

