<?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>Sohail Riaz, Linux and Open Source Blog &#187; Linux</title>
	<atom:link href="http://www.sohailriaz.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sohailriaz.com</link>
	<description>Sohail Riaz, Linux and Open Source Blog</description>
	<lastBuildDate>Sat, 14 Jan 2012 09:40:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Fix Bluetooth in Fedora 15</title>
		<link>http://www.sohailriaz.com/how-to-fix-bluetooth-in-fedora-15/</link>
		<comments>http://www.sohailriaz.com/how-to-fix-bluetooth-in-fedora-15/#comments</comments>
		<pubDate>Thu, 26 May 2011 15:30:38 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=306</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-fix-bluetooth-in-fedora-15/"><img src=""  alt="" title="" /></a>
In this howto I will describe how to fix bluetooth issue in Fedora 15. I updated Fedora 15 last night and found out my bluetooth mouse is not connected. By seeing icon at tray, it shows bluetooth is on but visibility option was faded and by selecting setting everything was faded. That means something was [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto I will describe how to fix bluetooth issue in Fedora 15. I updated Fedora 15 last night and found out my bluetooth mouse is not connected. By seeing icon at tray, it shows bluetooth is on but visibility option was faded and by selecting setting everything was faded. That means something was fishing regarding it. By investigating different fedora forums founds its been a small bug that bluetooth service were not run at startup. To fix this you have to enable the service to run at startup and start the service to use your bluetooth pheriphirals.<span id="more-306"></span></p>
<h3>1) Check Bluetooth Service.</h3>
<blockquote><p>systemctl status bluetooth.service</p>
<p>bluetooth.service &#8211; Bluetooth Manager<br />
Loaded: loaded (/lib/systemd/system/bluetooth.service)<br />
Active: inactive (dead)<br />
CGroup: name=systemd:/system/bluetooth.service</p></blockquote>
<p>It shows my bluetooth is inactive (dead).</p>
<h3>2) Activate Bluetooth Service.</h3>
<p>First priority is to enable the service to be run on every startup, to do this use following command.</p>
<blockquote><p>systemctl enable bluetooth.service</p>
<p>ln -s &#8216;/lib/systemd/system/bluetooth.service&#8217; &#8216;/etc/systemd/system/dbus-org.bluez.service&#8217;<br />
ln -s &#8216;/lib/systemd/system/bluetooth.service&#8217; &#8216;/etc/systemd/system/bluetooth.target.wants/bluetooth.service&#8217;</p></blockquote>
<p>Secondly you need to run the service to have bluetooth working on running system.</p>
<blockquote><p>systemctl start bluetooth.service</p></blockquote>
<p>Here you go, all bluetooth devices will be visible and can connected to your newly installed/updated Fedora 15.</p>
<p>Confused about systemctl command, please look fedora documentation.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=306&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-fix-bluetooth-in-fedora-15/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>How To Fix MySQL Error &#8216;Could not parse relay log event entry&#8217;</title>
		<link>http://www.sohailriaz.com/how-to-fix-mysql-error-could-not-parse-relay-log-event-entry/</link>
		<comments>http://www.sohailriaz.com/how-to-fix-mysql-error-could-not-parse-relay-log-event-entry/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 08:11:57 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=296</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-fix-mysql-error-could-not-parse-relay-log-event-entry/"><img src=""  alt="" title="" /></a>
In this howto i will describe how to fix MySql error &#8216;Could not parse relay log event entry&#8217;. On one of my client database replication cluster we got issue of &#8216;Could not parse relay log event entry&#8217; on slaves. On investigating it found he has deleted some relay log files to free up the space. [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to fix MySql error &#8216;Could not parse relay log event entry&#8217;. On one of my client database replication cluster we got issue of &#8216;Could not parse relay log event entry&#8217; on slaves. On investigating it found he has deleted some relay log files to free up the space. You can see the error in show slave status command on Last_Error field.<span id="more-296"></span></p>
<blockquote><p>[root@server1 ~]# mysql -u root -p<br />
Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 179<br />
Server version: 5.0.77 Source distribution</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt; show slave status\G;<br />
*************************** 1. row ***************************<br />
Slave_IO_State:<br />
Master_Host: 192.168.0.1<br />
Master_User: mysqladmin<br />
Master_Port: 3306<br />
Connect_Retry: 5<br />
Master_Log_File: mysql-bin.000019<br />
Read_Master_Log_Pos: 18816335<br />
Relay_Log_File: mysqld-relay-bin.000153<br />
Relay_Log_Pos: 593<br />
Relay_Master_Log_File: mysql-bin.000019<br />
Slave_IO_Running: No<br />
Slave_SQL_Running: No<br />
Replicate_Do_DB: test1<br />
Replicate_Ignore_DB:<br />
Replicate_Do_Table:<br />
Replicate_Ignore_Table:<br />
Replicate_Wild_Do_Table:<br />
Replicate_Wild_Ignore_Table:<br />
Last_Errno: 0<br />
Last_Error: Could not parse relay log event entry. The possible reasons are: the master&#8217;s binary log is corrupted (you can check this by running &#8216;mysqlbinlog&#8217; on the binary log), the slave&#8217;s relay log is corrupted (you can check this by running &#8216;mysqlbinlog&#8217; on the relay log), a network problem, or a bug in the master&#8217;s or slave&#8217;s MySQL code. If you want to check the master&#8217;s binary log or slave&#8217;s relay log, you will be able to know their names by issuing &#8216;SHOW SLAVE STATUS&#8217; on this slave.<br />
Skip_Counter: 0<br />
Exec_Master_Log_Pos: 18337925<br />
Relay_Log_Space: 479619<br />
Until_Condition: None<br />
Until_Log_File:<br />
Until_Log_Pos: 0<br />
Master_SSL_Allowed: No<br />
Master_SSL_CA_File:<br />
Master_SSL_CA_Path:<br />
Master_SSL_Cert:<br />
Master_SSL_Cipher:<br />
Master_SSL_Key:<br />
Seconds_Behind_Master: NULL<br />
1 row in set (0.00 sec)</p>
<p>ERROR:<br />
No query specified</p></blockquote>
<h3>1) Get Log Filename and Position from Master.</h3>
<p>To fix this we need two values from MySQL Master Server. i.e Master Log File Name and Master Log Position. To achieve this run following command on MySQL Master Server.</p>
<blockquote><p>mysql&gt; show master status\G;<br />
*************************** 1. row ***************************<br />
File: mysql-bin.000020<br />
Position: 5387330<br />
Binlog_Do_DB: test1,test2<br />
Binlog_Ignore_DB:<br />
1 row in set (0.00 sec)</p>
<p>ERROR:<br />
No query specified</p></blockquote>
<h3>2) Fix Slave Server</h3>
<p>To fix slave, first you need to stop slave on it and then run change master command with require values and start slave again to start working.</p>
<blockquote><p>mysql&gt; slave stop<br />
-&gt; ;<br />
Query OK, 0 rows affected, 1 warning (0.00 sec)</p>
<p>mysql&gt; change master to master_log_file=&#8221;mysql-bin.000020&#8243;, master_log_pos=5382560;<br />
Query OK, 0 rows affected (0.03 sec)</p>
<p>mysql&gt; start slave;<br />
Query OK, 0 rows affected (0.00 sec)</p></blockquote>
<p>To check whether slave is OK or not, run slave status command on Slave Server.</p>
<blockquote><p>mysql&gt; show slave status\G;<br />
*************************** 1. row ***************************<br />
Slave_IO_State: Waiting for master to send event<br />
Master_Host: 192.168.1.252<br />
Master_User: mysqladmin<br />
Master_Port: 3306<br />
Connect_Retry: 5<br />
Master_Log_File: mysql-bin.000020<br />
Read_Master_Log_Pos: 5459989<br />
Relay_Log_File: mysqld-relay-bin.000002<br />
Relay_Log_Pos: 77672<br />
Relay_Master_Log_File: mysql-bin.000020<br />
Slave_IO_Running: Yes<br />
Slave_SQL_Running: Yes<br />
Replicate_Do_DB: test1<br />
Replicate_Ignore_DB:<br />
Replicate_Do_Table:<br />
Replicate_Ignore_Table:<br />
Replicate_Wild_Do_Table:<br />
Replicate_Wild_Ignore_Table:<br />
Last_Errno: 0<br />
Last_Error:<br />
Skip_Counter: 0<br />
Exec_Master_Log_Pos: 5459989<br />
Relay_Log_Space: 77672<br />
Until_Condition: None<br />
Until_Log_File:<br />
Until_Log_Pos: 0<br />
Master_SSL_Allowed: No<br />
Master_SSL_CA_File:<br />
Master_SSL_CA_Path:<br />
Master_SSL_Cert:<br />
Master_SSL_Cipher:<br />
Master_SSL_Key:<br />
Seconds_Behind_Master: 0<br />
1 row in set (0.00 sec)</p>
<p>ERROR:<br />
No query specified</p></blockquote>
<p>and you can see that there is no Last error and Seconds_Behind_Master value is 0 indicates we are totally sync with Master.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=296&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-fix-mysql-error-could-not-parse-relay-log-event-entry/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How To Fix Access Points not shown in Fedora 13 (Broadcom driver)</title>
		<link>http://www.sohailriaz.com/how-to-fix-access-points-not-shown-in-fedora-13-broadcom-driver/</link>
		<comments>http://www.sohailriaz.com/how-to-fix-access-points-not-shown-in-fedora-13-broadcom-driver/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 16:55:34 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=292</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-fix-access-points-not-shown-in-fedora-13-broadcom-driver/"><img src=""  alt="" title="" /></a>
In this howto i will describe quick fix for Access Points not shown in Fedora 13 even you install Broadcom wireless driver using rpmfusion.org. For those who doesn&#8217;t know how to install broadcom driver for wireless card, you need to do following steps to install broadcom driver for wireless card.
1) Install RPMFusion Repositories
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe quick fix for Access Points not shown in Fedora 13 even you install Broadcom wireless driver using rpmfusion.org. For those who doesn&#8217;t know how to install broadcom driver for wireless card, you need to do following steps to install broadcom driver for wireless card.<span id="more-292"></span></p>
<h3>1) Install RPMFusion Repositories</h3>
<blockquote><p>rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br />
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</p></blockquote>
<h3>2) Install Broadcom Wireless Card Driver</h3>
<blockquote><p>yum install broadcom-wl kmod-wl</p></blockquote>
<p>reboot the system to get modules get loaded. But when you try to scan using NetworkManager or wlaassistant, it show&#8217;s no wireless access point found. Even they are visible on computer desk available next to you.</p>
<h3>3) Fixing Access Points not showing.</h3>
<p>Its a quick and dirty fix from fedora forums.</p>
<blockquote><p>vi /boot/grub/grub.conf</p></blockquote>
<p>edit your available kernel lines and append intel_iommu=off in the end for kernel parameters.</p>
<blockquote><p>kernel /vmlinuz-2.6.33.5-112.fc13.x86_64 ro root=/dev/mapper/vg_server1-LogVol01 rd_LVM_LV=vg_server1/LogVol01 rd_LVM_LV=vg_server1/LogVol00 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet</p></blockquote>
<p>change to</p>
<blockquote><p>kernel /vmlinuz-2.6.33.5-112.fc13.x86_64 ro root=/dev/mapper/vg_server1-LogVol01 rd_LVM_LV=vg_server1/LogVol01 rd_LVM_LV=vg_server1/LogVol00 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet <strong>intel_iommu=off</strong></p></blockquote>
<p>save the file and reboot the system again to get kernel to load following kernel parameter and bravo you can see the Access Points <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=292&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-fix-access-points-not-shown-in-fedora-13-broadcom-driver/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To Enable root Login at Graphical in Fedora 13</title>
		<link>http://www.sohailriaz.com/how-to-enable-root-login-at-graphical-in-fedora-13/</link>
		<comments>http://www.sohailriaz.com/how-to-enable-root-login-at-graphical-in-fedora-13/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 21:46:34 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=286</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-enable-root-login-at-graphical-in-fedora-13/"><img src=""  alt="" title="" /></a>
In this howto i will describe how to let root user to Graphical Login in Fedora 13. From Fedora 10 it was disable by default to let it login from GUI.We will be configure pam authentication files gdm and gdm-password respectively.
vi /etc/pam.d/gdm
find following line
auth       required    pam_succeed_if.so user != root quiet
comment out by placing # at [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to let root user to Graphical Login in Fedora 13. From Fedora 10 it was disable by default to let it login from GUI.We will be configure pam authentication files gdm and gdm-password respectively.<span id="more-286"></span></p>
<blockquote><p>vi /etc/pam.d/gdm</p></blockquote>
<p>find following line</p>
<blockquote><p>auth       required    pam_succeed_if.so user != root quiet</p></blockquote>
<p>comment out by placing # at beginning to disable this check</p>
<blockquote><p>#auth       required    pam_succeed_if.so user != root quiet</p></blockquote>
<p>save and close the file.</p>
<blockquote><p>vi /etc/pam.d/gdm.password</p></blockquote>
<p>find following line</p>
<blockquote><p>auth       required    pam_succeed_if.so  user != root quiet</p></blockquote>
<p>comment out by placing # at beginning to  disable this check</p>
<blockquote><p>#auth       required    pam_succeed_if.so user  != root quiet</p></blockquote>
<p>save and close the file. Now logout from terminal or GUI and relogin with root from GUI.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=286&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-enable-root-login-at-graphical-in-fedora-13/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How To Install Skype on Fedora 13 (64bit)</title>
		<link>http://www.sohailriaz.com/how-to-install-skype-on-fedora-13-64bit/</link>
		<comments>http://www.sohailriaz.com/how-to-install-skype-on-fedora-13-64bit/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:36:46 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=276</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-install-skype-on-fedora-13-64bit/"><img src="http://www.sohailriaz.com/wp-content/uploads/2010/06/Skype-150x150.png" title="" alt="" /></a>
In this howto i will describe how to install Skype on Fedora 13 64bit. As Skype dont provide 64bit version of Skype for Fedora. We can use i586 version of Skype and to achieve this we need to install i686 libraries. This howto can be used to install Skype on 64bit Fedora 10 &#8211; 11 [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to install Skype on Fedora 13 64bit. As Skype dont provide 64bit version of Skype for Fedora. We can use i586 version of Skype and to achieve this we need to install i686 libraries. This howto can be used to install Skype on 64bit Fedora 10 &#8211; 11 &#8211; 12 &#8211; 13.<span id="more-276"></span></p>
<h3>1) Install Pre-Requisite i686 Packages.</h3>
<p>Pre-requisite contain pulse audio because of to use call in/out.</p>
<blockquote><p>yum -y install libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686</p></blockquote>
<h3>2) Download Skype i586 (fedora10+)</h3>
<blockquote><p>wget http://download.skype.com/linux/skype-2.1.0.81-fc10.i586.rpm</p></blockquote>
<h3>3) Install Skype</h3>
<blockquote><p>rpm -ivh skype-2.1.0.81-fc10.i586.rpm</p></blockquote>
<p>Run it from Applicaition or command line and bravo its running <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://www.sohailriaz.com/wp-content/uploads/2010/06/Skype1.png"><img class="size-full wp-image-278 aligncenter" title="Skype" src="http://www.sohailriaz.com/wp-content/uploads/2010/06/Skype1.png" alt="" width="267" height="506" /></a></p>
<p>Please comment for any questions.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=276&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-install-skype-on-fedora-13-64bit/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>How To Upgrade Fedora 12 to Fedora 13</title>
		<link>http://www.sohailriaz.com/how-to-upgrade-fedora-12-to-fedora-13/</link>
		<comments>http://www.sohailriaz.com/how-to-upgrade-fedora-12-to-fedora-13/#comments</comments>
		<pubDate>Sun, 30 May 2010 07:27:11 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=269</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-upgrade-fedora-12-to-fedora-13/"><img src=""  alt="" title="" /></a>
In this howto i will describe how to upgrade Fedora 12 to Fedora 13. There are graphical and command line method and i will be using command line because it works on all kind of systems i.e Laptop, Desktop or any online server.
1 ) Update RPM Package
First rpm package has to be upgraded.
yum update rpm
2) [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to upgrade Fedora 12 to Fedora 13. There are graphical and command line method and i will be using command line because it works on all kind of systems i.e Laptop, Desktop or any online server.<span id="more-269"></span></p>
<h3>1 ) Update RPM Package</h3>
<p>First rpm package has to be upgraded.</p>
<blockquote><p>yum update rpm</p></blockquote>
<h3>2) Update full system</h3>
<p>Then you need to upgrade full system to have updated Fedora 12 packages</p>
<blockquote><p>yum update</p></blockquote>
<p>clean the yum cache after upgrade.</p>
<blockquote><p>yum clean all</p></blockquote>
<p>and reboot the system.</p>
<blockquote><p>reboot</p></blockquote>
<p>3) Upgrade to Fedora 13 using preupgrade</p>
<p>First you need to install preupgrade (it can be already install but for sure run following install command)</p>
<blockquote><p>yum install preupgrade</p></blockquote>
<p>When installation completes run preupgrade-cli to get list of releases you can update to, you should get Fedora 13 (Goddard) in the list.</p>
<blockquote><p>preupgrade-cli<br />
Loaded plugins: blacklist, whiteout<br />
No plugin match for: rpm-warm-cache<br />
No plugin match for: remove-with-leaves<br />
No plugin match for: auto-update-debuginfo<br />
No plugin match for: presto<br />
Loaded plugins: refresh-packagekit<br />
please give a release to try to pre-upgrade to<br />
valid entries include:<br />
&#8220;Fedora 13 (Goddard)&#8221;<br />
&#8220;Rawhide&#8221;</p></blockquote>
<p>In above output i have Fedora 13 (Goddard) available for upgrade. Now run preupgrade-cli with Fedora 13 to start upgrade process.</p>
<blockquote><p>preupgrade-cli &#8220;Fedora 13 (Goddard)&#8221;</p></blockquote>
<p>When it finish, reboot your system</p>
<blockquote><p>reboot</p></blockquote>
<p>The upgrade will be happen during reboot, so be patient and wait until it get updated and then rebooted.</p>
<p>After reboot you will have Fedora 13 and enjoy the new features.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=269&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-upgrade-fedora-12-to-fedora-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo Add Multiple Bonding Interface</title>
		<link>http://www.sohailriaz.com/howto-add-multiple-bonding-interface/</link>
		<comments>http://www.sohailriaz.com/howto-add-multiple-bonding-interface/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 10:56:38 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=261</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/howto-add-multiple-bonding-interface/"><img src=""  alt="" title="" /></a>
In this howto i will describe how to add multiple bonding interface (teaming multiple ethernet interfaces) in LINUX. You can learn more about bonding from
vi /usr/share/doc/kernel-doc-2.6.18/Documentation/networking/bonding.txt
The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical &#8220;bonded&#8221; interface. The behavior of the bonded interfaces depends upon the mode; generally speaking, [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to add multiple bonding interface (teaming multiple ethernet interfaces) in LINUX. You can learn more about bonding from</p>
<blockquote><p>vi /usr/share/doc/kernel-doc-2.6.18/Documentation/networking/bonding.txt</p></blockquote>
<p>The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical &#8220;bonded&#8221; interface. The behavior of the bonded interfaces depends upon the mode; generally speaking, modes provide either hot standby or load balancing services. Additionally, link integrity monitoring may be performed.<span id="more-261"></span></p>
<p>We have multiple bonding implementation using two or three ethernet card but with single bonding interface and it can be found on internet. Using multiple bonding interfaces are rear and all of them using different method to implement it because the documentation method isn&#8217;t working now. The document says to load multiple bonding modules for multiple bonding interfaces but using -o option within options in /etc/modprobe.conf and its not support by RHEL 5 and later releases. Therefore we will use BONDING_OPTS options in network scripts of bonding interfaces.</p>
<p>As we are implementing one of the biggest Oracle RAC implementation, we need load balancing with fault tolerance of network to access the storage without any point of failure. Therefore we are using bonding mode 2 (balance-xor), This mode provides load balancing and fault tolerance.</p>
<p>All of our servers are with 4 ethernet cards and we connect 2 ethernet interfaces (eth0 and eth1) with switch1 and 2 interfaces (eth2 and eth3) with switch2 to have multiple paths. We will create two bonding interfaces bond0 (eth0 and eth2) and bond1 (eth1, eth3). So if eth0 (from switch1) fails the bond will continue to use eth2 (from switch2) and load balance between two switches.</p>
<h3>1) Load Bonding Driver/Module</h3>
<p>We need to edit <strong>/etc/modprobe.conf</strong> to load bonding module into linux.</p>
<blockquote><p>vi /etc/modprobe.conf</p></blockquote>
<p>add following lines</p>
<blockquote><p>alias bond0 bonding<br />
alias bond1 bonding</p></blockquote>
<h3>2) Configure ethernet interfaces.</h3>
<p>As we discussed we have 4 ethernet interfaces, so we need to put right configuration to team multiple cards in it to work as bond. You need to edit/add following as it is</p>
<blockquote><p>vi /etc/sysconfig/network-scripts/ifcfg-eth0</p></blockquote>
<blockquote><p>DEVICE=eth0<br />
USERCTL=no<br />
ONBOOT=yes<br />
MASTER=bond0<br />
SLAVE=yes<br />
BOOTPROTO=none</p></blockquote>
<blockquote><p>vi /etc/sysconfig/network-scripts/ifcfg-eth1</p></blockquote>
<blockquote><p>DEVICE=eth1<br />
USERCTL=no<br />
ONBOOT=yes<br />
MASTER=bond1<br />
SLAVE=yes<br />
BOOTPROTO=none</p></blockquote>
<blockquote><p>vi /etc/sysconfig/network-scripts/ifcfg-eth2</p></blockquote>
<blockquote><p>DEVICE=eth2<br />
USERCTL=no<br />
ONBOOT=yes<br />
MASTER=bond0<br />
SLAVE=yes<br />
BOOTPROTO=none</p></blockquote>
<blockquote><p>vi /etc/sysconfig/network-scripts/ifcfg-eth3</p></blockquote>
<blockquote><p>DEVICE=eth3<br />
USERCTL=no<br />
ONBOOT=yes<br />
MASTER=bond1<br />
SLAVE=yes<br />
BOOTPROTO=none</p></blockquote>
<h3>3) Configure bonding</h3>
<p>Create bond0 and bond1 scripts under /etc/sysconfig/network-scripts same as ethernet interfaces.</p>
<blockquote><p>touch /etc/sysconfig/network-scripts/ifcfg-bond0<br />
touch /etc/sysconfig/network-scripts/ifcfg-bond1</p></blockquote>
<blockquote><p>vi /etc/sysconfig/network-scripts/ifcfg-bond0</p></blockquote>
<blockquote><p>DEVICE=bond0<br />
BOOTPROTO=none<br />
ONBOOT=yes<br />
USERCTL=no<br />
BONDING_OPTS=&#8221;max_bonds=2 miimon=100 mode=2 primary=eth0&#8243;<br />
NETMASK=255.255.255.0<br />
IPADDR=192.168.0.1</p></blockquote>
<p>Change IPADDR and NETMASK as per your environment.</p>
<blockquote><p>vi /etc/sysconfig/network-scripts/ifcfg-bond1</p></blockquote>
<blockquote><p>DEVICE=bond1<br />
BOOTPROTO=none<br />
ONBOOT=yes<br />
TYPE=Ethernet<br />
USERCTL=no<br />
BONDING_OPTS=&#8221;max_bonds=2 miimon=100 mode=2 primary=eth1&#8243;<br />
NETMASK=255.255.255.0<br />
IPADDR=192.168.0.2</p></blockquote>
<p>Change IPADDR and NETMASK as per your environment. where</p>
<p><strong>max_bonds</strong> = Specifies the number of bonding devices to create for this instance of the bonding driver</p>
<p><strong>miimon</strong> = Specifies the MII link monitoring frequency in milliseconds. This determines how often the link state of each slave is inspected for link failures.</p>
<p><strong>mode</strong> = Specifies one of the bonding policies, and we are using 2 as defined above</p>
<p><strong>primary</strong> = A string (eth0, eth2, etc) specifying which slave is the primary device.  The specified device will always be the active slave while it is available.  Only when the primary is off-line will alternate devices be used</p>
<h3>4) Test</h3>
<p>Restart network init script, it will first load bonding module and then setup bond0 and bond1 interfaces.</p>
<blockquote><p>/etc/init.d/network restart</p>
<p>/etc/init.d/network restart<br />
Shutting down interface bond0:                             [  OK  ]<br />
Shutting down interface bond1:                             [  OK  ]<br />
Shutting down loopback interface:                          [  OK  ]<br />
Bringing up loopback interface:                            [  OK  ]<br />
Bringing up interface bond0:                               [  OK  ]<br />
Bringing up interface bond1:                                [  OK  ]</p></blockquote>
<p>Check interfaces</p>
<blockquote><p>ifconfig</p>
<p>bond0     Link encap:Ethernet  HWaddr 00:24:E8:4A:F8:77<br />
inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1<br />
RX packets:27908 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:18422 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:23044634 (21.9 MiB)  TX bytes:2218142 (2.1 MiB)</p>
<p>bond1     Link encap:Ethernet  HWaddr 00:24:E8:4A:F8:79<br />
inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1<br />
RX packets:70 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:15611 (15.2 KiB)  TX bytes:3524 (3.4 KiB)</p>
<p>eth0      Link encap:Ethernet  HWaddr 00:24:E8:4A:F8:77<br />
UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br />
RX packets:27474 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:18422 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:23013444 (21.9 MiB)  TX bytes:2218142 (2.1 MiB)<br />
Interrupt:106 Memory:d2000000-d2012800</p>
<p>eth1      Link encap:Ethernet  HWaddr 00:24:E8:4A:F8:79<br />
UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br />
RX packets:67 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:15419 (15.0 KiB)  TX bytes:3524 (3.4 KiB)<br />
Interrupt:114 Memory:d4000000-d4012800</p>
<p>eth2      Link encap:Ethernet  HWaddr 00:24:E8:4A:F8:77<br />
UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br />
RX packets:434 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:31190 (30.4 KiB)  TX bytes:0 (0.0 b)<br />
Interrupt:122 Memory:d6000000-d6012800</p>
<p>eth3      Link encap:Ethernet  HWaddr 00:24:E8:4A:F8:79<br />
UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br />
RX packets:3 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:192 (192.0 b)  TX bytes:0 (0.0 b)<br />
Interrupt:130 Memory:d8000000-d8012800</p></blockquote>
<p>Verify bonding actually works</p>
<blockquote><p>cat /proc/net/bonding/bond0<br />
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)</p>
<p>Bonding Mode: fault-tolerance (active-backup)<br />
Primary Slave: eth0<br />
Currently Active Slave: eth0<br />
MII Status: up<br />
MII Polling Interval (ms): 100<br />
Up Delay (ms): 0<br />
Down Delay (ms): 0</p>
<p>Slave Interface: eth0<br />
MII Status: up<br />
Link Failure Count: 0<br />
Permanent HW addr: 00:24:e8:4a:f5:cc</p>
<p>Slave Interface: eth2<br />
MII Status: up<br />
Link Failure Count: 0<br />
Permanent HW addr: 00:24:e8:4a:f5:d0</p></blockquote>
<blockquote><p>cat /proc/net/bonding/bond1<br />
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)</p>
<p>Bonding Mode: fault-tolerance (active-backup)<br />
Primary Slave: eth1<br />
Currently Active Slave: eth1<br />
MII Status: up<br />
MII Polling Interval (ms): 100<br />
Up Delay (ms): 0<br />
Down Delay (ms): 0</p>
<p>Slave Interface: eth1<br />
MII Status: up<br />
Link Failure Count: 0<br />
Permanent HW addr: 00:24:e8:4a:f5:ce</p>
<p>Slave Interface: eth3<br />
MII Status: up<br />
Link Failure Count: 0<br />
Permanent HW addr: 00:24:e8:4a:f5:d2</p></blockquote>
<p>If you have any question please use comments.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 1457px; width: 1px; height: 1px; overflow: hidden;">
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>AR-SA</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <w:DoNotOptimizeForBrowser /> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:Consolas; 	panose-1:2 11 6 9 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-pitch:fixed; 	mso-font-signature:-1610611985 1073750091 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:Arial; 	mso-bidi-theme-font:minor-bidi;} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText 	{mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-link:"Plain Text Char"; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.5pt; 	font-family:Consolas; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-bidi-font-family:Arial; 	mso-bidi-theme-font:minor-bidi;} span.PlainTextChar 	{mso-style-name:"Plain Text Char"; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:"Plain Text"; 	mso-ansi-font-size:10.5pt; 	mso-bidi-font-size:10.5pt; 	font-family:Consolas; 	mso-ascii-font-family:Consolas; 	mso-hansi-font-family:Consolas;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:Arial; 	mso-bidi-theme-font:minor-bidi;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} --> <!--[endif]--></p>
<p class="MsoPlainText">BONDING_OPTS=&#8221;max_bonds=2 miimon=100 mode=1 primary=eth0&#8243;</p>
</div>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=261&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/howto-add-multiple-bonding-interface/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Update PHP on Servers (Centos/Fedora/RHEL)</title>
		<link>http://www.sohailriaz.com/how-to-update-php-on-servers-centosfedorarhel/</link>
		<comments>http://www.sohailriaz.com/how-to-update-php-on-servers-centosfedorarhel/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 11:56:19 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=252</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-update-php-on-servers-centosfedorarhel/"><img src=""  alt="" title="" /></a>
In this howto i will describe how to update PHP rpms on servers to latest version. If you have server running CentOS/Fedora/RHEL, you will noticed that it will use regular rpms of distro to install PHP and to update you have to restrict yourself with distro update of said rpms of PHP, which can be [...]]]></description>
			<content:encoded><![CDATA[<p>In this howto i will describe how to update PHP rpms on servers to latest version. If you have server running CentOS/Fedora/RHEL, you will noticed that it will use regular rpms of distro to install PHP and to update you have to restrict yourself with distro update of said rpms of PHP, which can be not a major update.<span id="more-252"></span></p>
<p>Like in CentOS 5.3 you cannot update PHP version above 5.1.x. I have been using different repositories to update PHP to latest version but most of them break rpm one or two, which may let to unstable Server.</p>
<p>AtomicRocketTurtle (<a href="http://www.atomicrocketturtle.com" target="_blank">http://www.atomicrocketturtle.com/</a>) company i found that regularly updating applications used in CentOS/Fedora/RHEL. You will be seeing that i will be updating PHP from version 5.1.x to 5.2.12, which is latest till this date.</p>
<h3>1) Install AtomicRocketTurtle Repository.</h3>
<p>Pre-requisite of atomicrocketturtle repository is yum, you should be confirm that you have yum install specially on CentOS. Some of the VPS comes without yum installation, so if your server doesnt have yum on CentOS 5.x, use following my post to install yum. <a href="http://www.sohailriaz.com/howto-install-yum-on-centos-52-vps/" target="_blank">http://www.sohailriaz.com/howto-install-yum-on-centos-52-vps/</a></p>
<p>To install atomicrocketturtle repository run following command.</p>
<blockquote><p>wget -q -O &#8211; http://www.atomicorp.com/installers/atomic.sh | sh</p></blockquote>
<p>This script will automatically detect your OS and install approperiate repository.</p>
<h3>2) Update PHP</h3>
<p>First check the available PHP version on atomic repository</p>
<blockquote><p>yum list | grep atomic | grep php</p></blockquote>
<p>Get the list of your install rpm and update following.</p>
<blockquote><p>rpm -qa | grep php<br />
php-cli-5.1.6-23.2.el5_3<br />
php-5.1.6-23.2.el5_3<br />
php-gd-5.1.6-23.2.el5_3<br />
php-pdo-5.1.6-23.2.el5_3<br />
php-common-5.1.6-23.2.el5_3<br />
php-imap-5.1.6-23.2.el5_3<br />
php-xml-5.1.6-23.2.el5_3<br />
php-mbstring-5.1.6-23.2.el5_3<br />
php-mysql-5.1.6-23.2.el5_3</p></blockquote>
<p>It can be different for you, just create the list like below i used for update PHP. I used every package name as i dont want to miss any of the module it has.</p>
<blockquote><p>yum update php php-cli php-gd php-pdo php-common php-imap php-xml php-mbstring php-mysql</p></blockquote>
<p>at end you will see this</p>
<blockquote><p>Updated: php.i386 0:5.2.12-3.el5.art php-cli.i386 0:5.2.12-3.el5.art php-common.i386 0:5.2.12-3.el5.art php-gd.i386 0:5.2.12-3.el5.art php-imap.i386 0:5.2.12-3.el5.art php-mbstring.i386 0:5.2.12-3.el5.art php-mysql.i386 0:5.2.12-3.el5.art php-pdo.i386 0:5.2.12-3.el5.art php-xml.i386 0:5.2.12-3.el5.art<br />
Complete!</p></blockquote>
<p>If you have any question please use comments.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=252&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-update-php-on-servers-centosfedorarhel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>RPM command hangs on RHEL, FEDORA, CentOS</title>
		<link>http://www.sohailriaz.com/rpm-command-hangs-on-rhel-fedora-centos/</link>
		<comments>http://www.sohailriaz.com/rpm-command-hangs-on-rhel-fedora-centos/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 10:02:59 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=249</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/rpm-command-hangs-on-rhel-fedora-centos/"><img src=""  alt="" title="" /></a>
Today i face an issue, which is quite old and i experienced a lot with it and i usually doing reboot to fix it but you cannot reboot your production server. The issue founds on RHEL, Fedora and CentOS system that whenever you run any rpm command i.e trying to install any software or query [...]]]></description>
			<content:encoded><![CDATA[<p>Today i face an issue, which is quite old and i experienced a lot with it and i usually doing reboot to fix it but you cannot reboot your production server. The issue founds on RHEL, Fedora and CentOS system that whenever you run any rpm command i.e trying to install any software or query rpm database, it just stuck after enter and wont do anything.</p>
<p>After diagnosing it, I found up2date is running on my server, so first thing just clear that if something related to rpm is running including yum or up2date, it will lock some files to do any other rpm transaction.</p>
<p>I use kill command to kill the process of up2date but still the problem was same, rpm got stuck / hang and wont do anything further.</p>
<p>Then i issued lsof command to find which files were locked and in used by any old or dead process related to rpm</p>
<blockquote><p>lsof | grep /var/lib/rpm/</p></blockquote>
<p>I found /var/lib/rpm/__db* are locked by some process maybe up2date, so i need to delete them to release rpm database for further transaction.</p>
<blockquote><p>rm -rf /var/lib/rpm/__db*</p></blockquote>
<p>and it works, all the installation/query of rpm working absolutely fine. I hope this will help.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=249&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/rpm-command-hangs-on-rhel-fedora-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Fix page is not locked while installing Solaris 10 in VM</title>
		<link>panic[cpu0]/thread=fec20160: page_unlock: page fe2b5730 is not locked</link>
		<comments>panic[cpu0]/thread=fec20160: page_unlock: page fe2b5730 is not locked#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:28:32 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=245</guid>
		<description><![CDATA[<a href="panic[cpu0]/thread=fec20160: page_unlock: page fe2b5730 is not locked"><img src=""  alt="" title="" /></a>
I encountered an error while installing Solaris 10 under my KVM running on Fedora 12. I get following error after booting Solaris 10 and select Solaris for booting to start installation

panic[cpu0]/thread=xxxxxxxx: page_unlock: page xxxxxxx is not locked

After searching i found that minimal required RAM for installation of Solaris 10 is 768MB and i was using [...]]]></description>
			<content:encoded><![CDATA[<p>I encountered an error while installing Solaris 10 under my KVM running on Fedora 12. I get following error after booting Solaris 10 and select Solaris for booting to start installation</p>
<blockquote>
<p dir="ltr">panic[cpu0]/thread=xxxxxxxx: page_unlock: page xxxxxxx is not locked</p>
</blockquote>
<p dir="ltr">After searching i found that minimal required RAM for installation of Solaris 10 is 768MB and i was using 512MB. So i increase the RAM under my KVM configuration and bingo the installation starts smoothly.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=245&amp;ts=1328437442" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>panic[cpu0]/thread=fec20160: page_unlock: page fe2b5730 is not locked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

