<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Cybergavin</title>
	
	<link>http://cybergav.in</link>
	<description>Been there, Done that, Wanna Remember!</description>
	<lastBuildDate>Sun, 15 Jan 2012 05:31:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/cybergavin/it" /><feedburner:info uri="cybergavin/it" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>cybergavin/it</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to Install PHP with FreeTDS on Linux</title>
		<link>http://feedproxy.google.com/~r/cybergavin/it/~3/wRwUS7qMQYA/</link>
		<comments>http://cybergav.in/2012/01/15/how-to-install-php-with-freetds-on-linux/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 05:31:07 +0000</pubDate>
		<dc:creator>mrkips</dc:creator>
				<category><![CDATA[IT Support]]></category>
		<category><![CDATA[install PHP with FreeTDS]]></category>
		<category><![CDATA[install sybase_ct extension]]></category>
		<category><![CDATA[PHP with FreeTDS]]></category>
		<category><![CDATA[sybase_ct]]></category>

		<guid isPermaLink="false">http://cybergav.in/?p=877</guid>
		<description><![CDATA[There are PHP applications which use MSSQL as the back-end database and such applications require FreeTDS to enable PHP code interface with MSSQL. This article describes how to install PHP and FreeTDS on Linux hosts. To compile or not?: Typically, it is recommended to use package managers like yum to install software on Linux platforms. [...]]]></description>
			<content:encoded><![CDATA[<p><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
</p>
<p align="justify">There are PHP applications which use MSSQL as the back-end database and such applications require FreeTDS to enable PHP code interface with MSSQL. This article describes how to install PHP and FreeTDS on Linux hosts. </p>
<p align="justify"><b>To compile or not?:</b> Typically, it is recommended to use package managers like yum to install software on Linux platforms. Using package managers facilitates installation and administration (e.g. updates) of the software. However, when the software requires special options to be set or modules/extensions to be enabled, it may be difficult to obtain software built to suit those requirements. In such cases, it will be required to compile the software from its source. If compiling, then it will be prudent to organize all compiled software in standard locations on the host. </p>
<p>Given below are the implementation steps that were used for installing <strong>PHP 5.3.3</strong> and <strong>FreeTDS 0.91</strong> on <strong>RHEL 6.2</strong>. </p>
<p><b>NOTE:</b> All commands in the examples below must be executed with <strong>root</strong> privileges, unless otherwise stated. </p>
<h3><span class="mw-headline">STEP 1: Create Installation Directory Structure</span></h3>
<ul>
<li>Use the following commands to create an appropriate directory structure for compiled software: </li>
</ul>
<pre>mkdir /opt/src</pre>
<ul>
<li>Use a standard location (e.g. /opt) to install all software compiled from source to facilitate administration (re-compilation, removal, etc.) </li>
</ul>
<h2><span class="mw-headline"></span></h2>
<h3><span class="mw-headline">STEP 2: Download and Unpack Software Source</span></h3>
<ul>
<li>Download software sources (typically *.tar.gz files) and place them in /opt/src </li>
<li>Unpack source software (*.tar.gz) as per the following examples: </li>
</ul>
<pre>tar xfz php-5.3.3.tar.gz
tar xfz freetds-0.91.tar.gz</pre>
<p>The above commands will create directories /opt/src/php-5.3.3 and /opt/src/freetds-0.91 </p>
<h2><span id="Compile_and_Build_FreeTDS" class="mw-headline"></span></h2>
<h3><span class="mw-headline">STEP 3: Compile and Build FreeTDS</span></h3>
<p>Compile and build FreeTDS as per the example below: </p>
<pre>cd /opt/src/freetds-0.91
./configure --prefix=/opt/freetds-0.91
make
make install</pre>
<p><b>NOTE:</b> In order to facilitate administration, you may create a soft link as follows: </p>
<pre>cd /opt
ln -s freetds-0.91 freetds</pre>
<h2><span id="Compile_and_Build_PHP" class="mw-headline"></span></h2>
<h3><span class="mw-headline">STEP 4: Compile and Build PHP</span></h3>
<p>Compile and build PHP as per the example below: </p>
<pre>cd /opt/src/php-5.3.3
./configure --prefix=/opt/php-5.3.3 --with-config-file-path=/opt/php-5.3.3
make
make install</pre>
<p><b>NOTE:</b> In order to facilitate administration, you may create a soft link as follows: </p>
<pre>cd /opt
ln -s php-5.3.3 php</pre>
<h2><span id="Compile_and_Build_the_PHP_Sybase_Extension" class="mw-headline"></span></h2>
<h3><span class="mw-headline">STEP 5: Compile and Build the PHP Sybase Extension</span></h3>
<p>PHP requires the sybase_ct extension to allow PHP code to interface with MSSQL. You may compile and build the sybase_ct extension as follows: </p>
<pre>cd /opt/src/php-5.3.3/ext/sybase_ct
sh ../../scripts/phpize
./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config \
--with-sybase-ct=/opt/freetds
make
make install</pre>
<h2><span id="Enable_the_PHP_Sybase_Extension" class="mw-headline"></span></h2>
<h3><span class="mw-headline">STEP 6: Enable the PHP Sybase Extension</span></h3>
<p>Enable the sybase_ct extension by adding the following line to /opt/php/php.ini </p>
<pre>extension=sybase_ct.so</pre>
<h2><span class="editsection"></span></h2>
<h3><span class="editsection">STEP 7: </span><span id="Verify_the_PHP_.28with_FreeTDS.29_Installation" class="mw-headline">Verify the PHP (with FreeTDS) Installation</span></h3>
<p>If PHP and the sybase_ct extension have been successfully installed, you should be able to view the sybase_ct module when displaying the PHP configuration information as shown below: </p>
<p>Execute the following command (any user): </p>
<pre>php -i | grep sybase_ct</pre>
<p>If you see &quot;sybase_ct&quot; in the output, then it means that PHP and the sybase_ct extension have been successfully installed. </p>
<p><b>NOTE:</b> Since PHP and FreeTDS have been compiled from source and installed in non-standard locations, you must add /opt/php/bin:/opt/freetds/bin to a user&#8217;s PATH environment variable. </p>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 38/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--><!-- Saved in parser cache with key mediawiki:pcache:idhash:23-1!1!0!!en!2 and timestamp 20120115045253 --></p>
<img src="http://feeds.feedburner.com/~r/cybergavin/it/~4/wRwUS7qMQYA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cybergav.in/2012/01/15/how-to-install-php-with-freetds-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://cybergav.in/2012/01/15/how-to-install-php-with-freetds-on-linux/</feedburner:origLink></item>
		<item>
		<title>Unable to load module osad</title>
		<link>http://feedproxy.google.com/~r/cybergavin/it/~3/SS17Xwh5YVY/</link>
		<comments>http://cybergav.in/2012/01/06/unable-to-load-module-osad/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 19:34:57 +0000</pubDate>
		<dc:creator>mrkips</dc:creator>
				<category><![CDATA[IT Support]]></category>
		<category><![CDATA[cannot start osad]]></category>
		<category><![CDATA[no module named hashlib]]></category>
		<category><![CDATA[unable to load module osad]]></category>

		<guid isPermaLink="false">http://cybergav.in/2012/01/06/unable-to-load-module-osad/</guid>
		<description><![CDATA[Problem: The osad service does not start (RHEL 5.7) and throws the following error: Starting osad: Unable to load module osad Background &#38; Analysis: The osad service is required on all Red Hat Network Satellite clients to receive pushed actions from the RHN Satellite Server. For more details on the osad and related services, please [...]]]></description>
			<content:encoded><![CDATA[<p><u><strong><font size="2">Problem:</font></strong></u></p>
<p align="left">The osad service does not start (RHEL 5.7) and throws the following error:</p>
<p align="left"><font color="#ff0000" size="2" face="Courier New">Starting osad: Unable to load module osad</font></p>
<p align="justify"><font size="2"><u><strong>Background &amp; Analysis:</strong></u></font></p>
<p align="justify">The osad service is required on all <a href="http://www.redhat.com/red_hat_network/" target="_blank">Red Hat Network Satellite</a> clients to receive pushed actions from the RHN Satellite Server. For more details on the osad and related services, please refer this <a href="https://fedorahosted.org/spacewalk/wiki/OsadHowTo" target="_blank">Spacewalk</a> (open-source version of RHN Satellite) article.</p>
<p align="justify"><font size="2"><u><strong>Solution:</strong></u></font></p>
<p align="justify">The osad service depends on the <strong>python-hashlibs</strong> package.</p>
<p align="justify"><strong>STEP 1: Install python-hashlibs</strong></p>
<p align="justify">Install python-hashlibs as follows:</p>
<pre lang="bash" escape="true">sudo rpm -ivh &lt;package&gt;</pre>
<p align="justify">where &lt;package&gt;= the name of the python-hashlibs rpm</p>
<p align="justify">Refer the screenshot below:</p>
<p align="justify"><a href="http://cybergav.in/wp-content/uploads/2012/01/osadpythonhaslibdep.png" rel="lightbox[875]"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="osad-python-haslib-dep" border="0" alt="osad-python-haslib-dep" src="http://cybergav.in/wp-content/uploads/2012/01/osadpythonhaslibdep_thumb.png" width="640" height="176" /></a> </p>
<p align="justify"><strong>NOTE:</strong> You may also use a &quot;yum install&quot; if python-haslibs is available in any of your your yum repositories.</p>
<p><font color="#0000ff" size="1">(1) The solution above describes a successful problem-solving experience and may not be applicable to other problems with similar symptoms. </p>
<p>(2) Your rating of this post will be much appreciated as it gives me and others who read this article, an indication of whether this solution has worked for people other than me. Also, feel free to leave comments.</font></p>
<p><font color="#0000ff" size="1">&#160;</font></p>
<img src="http://feeds.feedburner.com/~r/cybergavin/it/~4/SS17Xwh5YVY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cybergav.in/2012/01/06/unable-to-load-module-osad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://cybergav.in/2012/01/06/unable-to-load-module-osad/</feedburner:origLink></item>
		<item>
		<title>How to install Tomcat 6 on RHEL 6</title>
		<link>http://feedproxy.google.com/~r/cybergavin/it/~3/KeOvs2BdWBk/</link>
		<comments>http://cybergav.in/2011/12/09/how-to-install-tomcat-6-on-rhel-6/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 15:24:52 +0000</pubDate>
		<dc:creator>mrkips</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[IT Support]]></category>
		<category><![CDATA[INFO: The APR based Apache Tomcat Native library which allows optimal performance]]></category>
		<category><![CDATA[SEVERE: destroyMBeans: Throwable javax.management.MalformedObjectNameException]]></category>
		<category><![CDATA[tomcat 6 on RHEL 6]]></category>
		<category><![CDATA[tomcat 6 on RHEL 6.2]]></category>
		<category><![CDATA[Tomcat Native Library]]></category>
		<category><![CDATA[tomcat native library on RHEL 6]]></category>

		<guid isPermaLink="false">http://cybergav.in/2011/12/09/how-to-install-tomcat-6-on-rhel-6/</guid>
		<description><![CDATA[Installing software on RHEL platforms using yum is straightforward. However, based on your environment, there could be a few more steps to get there. So, here&#8217;s what I did to install Tomcat 6 on RHEL 6.2: Environment: OS: Red Hat Enterprise Linux Server release 6.2 (Santiago) Yum Repos: Red Hat Enterprise Linux Server (v. 6 [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Installing software on RHEL platforms using yum is straightforward. However, based on your environment, there could be a few more steps to get there. So, here&#8217;s what I did to install Tomcat 6 on RHEL 6.2:</p>
<p><strong><u>Environment:</u></strong> </p>
<p><strong>OS:</strong> Red Hat Enterprise Linux Server release 6.2 (Santiago)</p>
<p><strong>Yum Repos:</strong> Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64), RHN Tools for RHEL (v. 6 for 64-bit x86_64) </p>
<p><strong><u>Implementation:</u></strong> </p>
<p><font size="3"><strong>STEP 1:</strong> Install the Tomcat6 Web Servlet container</font></p>
<pre lang="bash" escape="true">sudo yum groupinstall web-servlet</pre>
<p><font size="3"><strong></strong></font></p>
<p><font size="3"><strong></strong></font></p>
<p><font size="3"><strong></strong></font></p>
<p><font size="3"><strong></strong></font></p>
<p><font size="3"><strong>STEP 2:</strong> Enable the Tomcat6 service</font></p>
<pre lang="bash" escape="true">sudo chkconfig tomcat6 on</pre>
<p align="justify"><font size="3"><strong></strong></font></p>
<p align="justify"><font size="3"><strong></strong></font></p>
<p align="justify"><font size="3"><strong></strong></font></p>
<p align="justify"><font size="3"><strong></strong></font></p>
<p align="justify"><font size="3"><strong>STEP 3:</strong> Change ownership for the Tomcat6 resources</font></p>
<p align="justify">When tomcat6 is installed via STEP 1, a user and group with the same name (<strong>tomcat</strong>) is created. For security, the user is created without an interactive login shell (<font face="Courier New">/sbin/nologin</font>). So, in order to ensure that the application support individuals don&#8217;t require root privileges, you must do the following: </p>
<p align="justify">&#160;</p>
<pre lang="bash" escape="true">sudo chown -R tomcat:tomcat /usr/share/tomcat6
sudo chown -R tomcat:tomcat /etc/tomcat6/*</pre>
</p>
</p>
<p>&#160;</p>
<p align="justify"><strong>NOTE:</strong> By default, the tomcat user is created with <font face="Courier New">umask 022</font> and so individual accounts will require sudo privileges to modify the resources owned by tomcat. This also ensures that all operations on tomcat resources are audited.</p>
<p align="justify">&#160;</p>
<p align="justify"><font size="3"><strong>STEP 4:</strong> Test the Tomcat6 service</font></p>
<p>After doing STEPS 1-3, I started/stopped tomcat6 using the following commands:</p>
<pre lang="bash" escape="true">sudo service tomcat6 start
sudo service tomcat6 stop</pre>
<p align="justify">Tomcat6 started and stopped successfully (and <a href="http://localhost:8080">http://localhost:8080</a> was accessible), but the following two messages in catalina.out bugged me:</p>
<p><font color="#ff8040" face="Courier New">INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib</font></p>
<p align="left"><font color="#ff0000" face="Courier New">SEVERE: destroyMBeans: Throwable javax.management.MalformedObjectNameException: Cannot create object name for org.apache.catalina.connector.Connector@290fd7f6 at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:764) at org.apache.catalina.mbeans.MBeanUtils.destroyMBean(MBeanUtils.java:1416) </font></p>
<p align="left"><font color="#ff0000" face="Courier New">.</font></p>
<p align="justify">The first INFO message was logged whenever tomcat6 was started and the SEVERE message was logged whenever tomcat6 was stopped.</p>
<p align="justify">Getting rid of the INFO message requires installing the Tomcat Native Library (see STEP 5) and it’s recommended that you do this for optimal performance (native code faster than Java bytecode).</p>
<p align="justify">Regarding the SEVERE message, it seems to have been fixed in Tomcat 6.0.25 ( refer <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=48612" target="_blank">Tomcat6 Bug</a> ) and the version I installed using the above steps was 6.0.24. As this error is harmless, I’d wait for 6.0.25.</p>
<p align="justify">&#160;</p>
<p align="justify"><font size="3"><strong>STEP 5:</strong> Install the Tomcat Native Library</font></p>
<p>Unfortunately, the standard RHEL yum repos used in our company (see Environment above) did not contain packages for the Tomcat Native Library. So, here’s what I did to install the library:</p>
<ul>
<li>Install the pre-requisite packages </li>
</ul>
<pre lang="bash" escape="true">sudo yum install apr apr-devel java-1.6.0-openjdk-devel.x86_64 openssl-devel.x86_64</pre>
<p><strong>NOTE:</strong> I required only the above packages, but your requirement may vary based on your existing OS installation. </p>
<ul>
<li>Download the tomcat native library from <a href="http://tomcat.apache.org/native-doc/" target="_blank"><strong>here</strong></a> </li>
<li>Execute the following commands: </li>
</ul>
<pre lang="bash" escape="true"># Extract downloaded tar
tar xvzf tomcat-native-1.1.22-src.tar.gz

# Configure
cd tomcat-native-1.1.22-src/jni/native
sudo ./configure \
--with-apr=/usr/bin/apr-1-config \
--with-java-home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 \
--with-ssl=/usr/include/openssl \
--prefix=/usr/lib64

# Make
sudo make

#Make Install
sudo make install

# The steps above installed the library in /usr/lib64/lib. As the default LD_LIBRARY_PATH
#includes /usr/lib64, you may either change the path or set up links as shown below:

cd /usr/lib64
sudo ln -s lib/libtcnative-1.so.0.1.22 libtcnative-1.so
sudo ln -s lib/libtcnative-1.so.0.1.22 libtcnative-1.so.0
</pre>
<p align="justify">Successful installation of the Tomcat Native library will show something similar to the following in catalina.out when you start the tomcat6 service:</p>
<p><font color="#008000" face="Courier New">INFO: Loaded APR based Apache Tomcat Native library 1.1.22.</font></p>
<p align="justify">I observed that the Tomcat Native Library made quite an improvement to the tomcat6 server start time. Prior to installation, tomcat 6 started in about 144ms and after installation, it took only around 77ms!</p>
<img src="http://feeds.feedburner.com/~r/cybergavin/it/~4/KeOvs2BdWBk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cybergav.in/2011/12/09/how-to-install-tomcat-6-on-rhel-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://cybergav.in/2011/12/09/how-to-install-tomcat-6-on-rhel-6/</feedburner:origLink></item>
		<item>
		<title>How to modify a RHEL cluster configuration file</title>
		<link>http://feedproxy.google.com/~r/cybergavin/it/~3/iSP26mDrU2Y/</link>
		<comments>http://cybergav.in/2011/12/03/how-to-modify-a-rhel-cluster-configuration-file/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 22:02:31 +0000</pubDate>
		<dc:creator>mrkips</dc:creator>
				<category><![CDATA[IT Support]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[/etc/cluster/cluster.conf]]></category>
		<category><![CDATA[ccs_tool]]></category>
		<category><![CDATA[edit cluster.conf manually]]></category>
		<category><![CDATA[modufy cluster.conf]]></category>

		<guid isPermaLink="false">http://cybergav.in/2011/12/03/how-to-modify-a-rhel-cluster-configuration-file/</guid>
		<description><![CDATA[Red Hat Enterprise Linux (RHEL) cluster configuration file is /etc/cluster/cluster.conf NOTE: Red Hat discourages direct editing of the cluster configuration file and recommends using the system-config-cluster GUI. However, if you need to edit the file, here’s a method that works: STEP 1: Edit the&#160; Cluster Configuration file on any one node in the cluster Open [...]]]></description>
			<content:encoded><![CDATA[<p>Red Hat Enterprise Linux (RHEL) cluster configuration file is <font face="Courier New">/etc/cluster/cluster.conf</font></p>
<p><strong>NOTE:</strong> Red Hat discourages direct editing of the cluster configuration file and recommends using the system-config-cluster GUI.</p>
<p>However, if you need to edit the file, here’s a method that works:</p>
<p><font size="3"><strong>STEP 1:</strong> Edit the&#160; Cluster Configuration file on any one node in the cluster</font></p>
<ul>
<li>Open <font face="Courier New">/etc/cluster/cluster.conf</font> using your favourite editor amd make your required changes. </li>
<li>Ensure that you increment the <font face="Courier New">config_version</font> (in line 2) by 1. For example, if the <font face="Courier New">config_version</font> is 45, then make it 46. </li>
<li>Save and close the file </li>
</ul>
<p><font size="3"><strong>STEP 2:</strong> Update the cluster</font></p>
<p>Execute the following command (with root privileges) on the same node used in STEP 1:</p>
<p><font size="2"></font>    <font size="3"></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ccs_tool update <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cluster<span style="color: #000000; font-weight: bold;">/</span>cluster.conf</pre></div></div>

<p></font>
</p>
</p>
<p>The above command will display output similar to the following:</p>
<p><font face="Courier New">Config file updated from version 45 to 46 </font></p>
<p><font face="Courier New">Update complete.</font></p>
<img src="http://feeds.feedburner.com/~r/cybergavin/it/~4/iSP26mDrU2Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cybergav.in/2011/12/03/how-to-modify-a-rhel-cluster-configuration-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://cybergav.in/2011/12/03/how-to-modify-a-rhel-cluster-configuration-file/</feedburner:origLink></item>
		<item>
		<title>How to disable/enable journaling on an ext4 filesystem</title>
		<link>http://feedproxy.google.com/~r/cybergavin/it/~3/MLwe1SC29bs/</link>
		<comments>http://cybergav.in/2011/11/15/how-to-disableenable-journaling-on-an-ext4-filesystem/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 06:05:21 +0000</pubDate>
		<dc:creator>mrkips</dc:creator>
				<category><![CDATA[IT Support]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[disable journal]]></category>
		<category><![CDATA[disable journaling for ext4]]></category>
		<category><![CDATA[ext4 no journal]]></category>
		<category><![CDATA[remove journal for ext4]]></category>

		<guid isPermaLink="false">http://cybergav.in/2011/11/15/how-to-disableenable-journaling-on-an-ext4-filesystem/</guid>
		<description><![CDATA[At times, to meet performance requirements, you would want to disable file system journaling. Given below are steps to do so for an ext4 file system (e.g. /dev/sda1). These steps have been tested on RHEL 5.7). All commands are to be executed with root privileges: STEP 1: Unmount the file system partition whose journaling you [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">At times, to meet performance requirements, you would want to disable <a href="http://en.wikipedia.org/wiki/Journaling_file_system" target="_blank">file system journaling</a>. Given below are steps to do so for an ext4 file system (e.g. /dev/sda1). These steps have been tested on RHEL 5.7). All commands are to be executed with <u>root</u> privileges:</p>
<p><strong><font size="3">STEP 1:</font></strong> <font size="3">Unmount the file system partition whose journaling you wish to disable</font></p>
<p>Use the following command to unmount the partition on /dev/sda1 (let’s say it’s /opt):</p>
<pre>umount /opt</pre>
<p><strong>NOTE:</strong> The command used above is umount and <strong><u>not</u></strong> unmount.</p>
<p><font size="3"><strong></strong></font></p>
<p><font size="3"><strong>STEP 2:</strong> Disable journaling for the file system</font></p>
<p>Use the following command to disable journaling for an ext4 file system:</p>
<pre>tune4fs -O ^has_journal /dev/sda1</pre>
<p>&#160;</p>
<p><font size="3"><strong>STEP 3:</strong> Perform a file system check</font></p>
<p align="justify">Use the following command to perform a file system check. This is not strictly required, but is recommended for checking file system integrity after disabling journaling:</p>
<pre>e4fsck –f /dev/sda1</pre>
<p align="justify">&#160;</p>
<p align="justify"><font size="3"><strong>STEP 4:</strong> Reboot</font></p>
<p align="justify">You may use the following command to reboot the Linux OS:</p>
<pre>shutdown –r now</pre>
<p align="justify">&#160;</p>
<p align="justify"><font size="3"><strong>STEP 5:</strong> Verify that the file system has journaling disabled and the partition is mounted</font></p>
<p align="justify">After the host has rebooted, you may use the following commands to check if journaling is disabled for the filesystem and the partition is mounted:</p>
<pre>dmesg | grep EXT4</pre>
<p align="justify">Expected output similar to: EXT4-fs (dm-3): mounted filesystem without journal </p>
<pre>df -h</pre>
<p>&#160;</p>
<p>In order to re-enable journaling, repeat all the STEPS above, but without the ‘<strong>^</strong>’ in STEP 2.</p>
<img src="http://feeds.feedburner.com/~r/cybergavin/it/~4/MLwe1SC29bs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://cybergav.in/2011/11/15/how-to-disableenable-journaling-on-an-ext4-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://cybergav.in/2011/11/15/how-to-disableenable-journaling-on-an-ext4-filesystem/</feedburner:origLink></item>
	</channel>
</rss>

