<?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>RedHatVN Network &#187; kernel</title>
	<atom:link href="http://redhatvn.net/tag/kernel/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vmware Linux Guest Add a New Hard Disk Without Rebooting Guest</title>
		<link>http://redhatvn.net/vmware-linux-guest-add-a-new-hard-disk-without-rebooting-guest</link>
		<comments>http://redhatvn.net/vmware-linux-guest-add-a-new-hard-disk-without-rebooting-guest#comments</comments>
		<pubDate>Tue, 07 Sep 2010 07:15:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1285</guid>
		<description><![CDATA[As a system admin, I need to use additional hard drives for to provide more storage space or to separate system data from user data. This procedure, adding physical block devices to virtualized guests, describes how to add a hard drive on the host to a virtualized guest using VMWare software running Linux as guest. [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/vmware-linux-guest-add-a-new-hard-disk-without-rebooting-guest"></g:plusone></div><p>As a system admin, I need to use  additional hard drives for to provide more storage space or to separate  system data from user data. This procedure, adding physical block  devices to virtualized guests, describes how to add a hard drive on the  host to a virtualized guest using VMWare software running Linux as  guest.</p>
<p>It is possible to add or remove a SCSI device explicitly, or to  re-scan an entire SCSI bus without rebooting a running Linux VM guest.   This how to is tested under Vmware Server and Vmware Workstation v6.0  (but should work with older version too). All instructions are tested on  RHEL, Fedora, CentOS and Ubuntu Linux guest / hosts operating systems.<br />
<span id="more-1285"></span></p>
<h2>Step # 1: Add a New Disk To Vm Guest</h2>
<p>First, you need to add hard disk by visiting vmware hardware settings menu.<br />
Click on VM &gt; Settings<br />
<img title="Vmware Virtual Machine Settings " src="http://redhatvn.net/wp-content/uploads/virtual-machine-settings-1.png" alt="Fig.01: Vmware Virtual Machine Settings "  width="300" height="200"  /><br />
Fig.01: Vmware Virtual Machine Settings</p>
<p>Alternatively you can press CTRL + D to bring settings dialog box.</p>
<p>Click on Add+ to add new hardware to guest:<br />
<img title="VMWare adding a new hardware" src="http://redhatvn.net/wp-content/uploads/vmware-add-hardware-wizard-2.png" alt="Fig.02: VMWare adding a new hardware"  width="300" height="200"  />Fig.02: VMWare adding a new hardware</p>
<p>Select hardware type Hard disk and click on Next<br />
<img title="VMware Adding a new disk wizard " src="http://redhatvn.net/wp-content/uploads/vmware-add-hardware-anew-disk-3.png" alt="Fig.03 VMware Adding a new disk wizard " width="300" height="200" />Fig.03 VMware Adding a new disk wizard</p>
<p>Select create a new virtual disk and click on Next<br />
<img title="Vmware Wizard Disk " src="http://redhatvn.net/wp-content/uploads/vmware-add-hardware-4.png" alt="Fig.04: Vmware Wizard Disk "  width="300" height="200" />Fig.04: Vmware Wizard Disk</p>
<p>Set virtual disk type to SCSI and click on Next<br />
<img title="Vmware Virtual Disk" src="http://redhatvn.net/wp-content/uploads/add-hardware-5.png" alt="Fig.05: Vmware Virtual Disk"  width="300" height="200" />Fig.05: Vmware Virtual Disk</p>
<p>Set maximum disk size as per your requirements and click on Next<br />
<img title="Finalizing Disk Virtual Addition" src="http://redhatvn.net/wp-content/uploads/vmware-final-disk-file-add-hdd-6.png" alt="Fig.06: Finalizing Disk Virtual Addition  "  width="300" height="200" />Fig.06: Finalizing Disk Virtual Addition</p>
<p>Finally, set file location and click on Finish.</p>
<h2>Step # 2: Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM</h2>
<p>A rescan can be issued by typing the following command:<br />
<code>echo "- - -" &gt; /sys/class/scsi_host/<strong>host#</strong>/scan<br />
fdisk -l<br />
tail -f /var/log/message</code><br />
Sample outputs:<br />
<img title="Linux Vmware Rescan New Scsi Disk Without Reboot" src="http://redhatvn.net/wp-content/uploads/vmware-linux-rescan-hard-disk.png" alt="Linux Vmware Rescan New Scsi Disk Without Reboot"  width="300" height="200" />Fig.01:Linux Vmware Rescan New Scsi Disk Without Reboot</p>
<p>Replace host# with actual value such as host0. You can find scsi_host value using the following command:<br />
<code># ls /sys/class/scsi_host</code><br />
Output:</p>
<blockquote><p>host0</p></blockquote>
<p>Now type the following to send a rescan request:<br />
<code>echo "- - -" &gt; /sys/class/scsi_host/<strong>host0</strong>/scan<br />
fdisk -l<br />
tail -f /var/log/message</code><br />
Sample Outputs:</p>
<blockquote><p>Jul 18 16:29:39 localhost kernel:   Vendor: VMware,   Model: VMware Virtual S  Rev: 1.0<br />
Jul 18 16:29:39 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02<br />
Jul 18 16:29:39 localhost kernel:  target0:0:1: Beginning Domain Validation<br />
Jul 18 16:29:39 localhost kernel:  target0:0:1: Domain Validation skipping write tests<br />
Jul 18 16:29:39 localhost kernel:  target0:0:1: Ending Domain Validation<br />
Jul 18 16:29:39 localhost kernel:  target0:0:1: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 127)<br />
Jul 18 16:29:39 localhost kernel: SCSI device sdb: 2097152 512-byte hdwr sectors (1074 MB)<br />
Jul 18 16:29:39 localhost kernel: sdb: Write Protect is off<br />
Jul 18 16:29:39 localhost kernel: sdb: cache data unavailable<br />
Jul 18 16:29:39 localhost kernel: sdb: assuming drive cache: write through<br />
Jul 18 16:29:39 localhost kernel: SCSI device sdb: 2097152 512-byte hdwr sectors (1074 MB)<br />
Jul 18 16:29:39 localhost kernel: sdb: Write Protect is off<br />
Jul 18 16:29:39 localhost kernel: sdb: cache data unavailable<br />
Jul 18 16:29:39 localhost kernel: sdb: assuming drive cache: write through<br />
Jul 18 16:29:39 localhost kernel:  sdb: unknown partition table<br />
Jul 18 16:29:39 localhost kernel: sd 0:0:1:0: Attached scsi disk sdb<br />
Jul 18 16:29:39 localhost kernel: sd 0:0:1:0: Attached scsi generic sg1 type 0<br />
Jul 18 16:29:39 localhost kernel:   Vendor: VMware,   Model: VMware Virtual S  Rev: 1.0<br />
Jul 18 16:29:39 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02<br />
Jul 18 16:29:39 localhost kernel:  target0:0:2: Beginning Domain Validation<br />
Jul 18 16:29:39 localhost kernel:  target0:0:2: Domain Validation skipping write tests<br />
Jul 18 16:29:39 localhost kernel:  target0:0:2: Ending Domain Validation<br />
Jul 18 16:29:39 localhost kernel:  target0:0:2: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 127)<br />
Jul 18 16:29:39 localhost kernel: SCSI device sdc: 2097152 512-byte hdwr sectors (1074 MB)<br />
Jul 18 16:29:39 localhost kernel: sdc: Write Protect is off<br />
Jul 18 16:29:39 localhost kernel: sdc: cache data unavailable<br />
Jul 18 16:29:39 localhost kernel: sdc: assuming drive cache: write through<br />
Jul 18 16:29:39 localhost kernel: SCSI device sdc: 2097152 512-byte hdwr sectors (1074 MB)<br />
Jul 18 16:29:39 localhost kernel: sdc: Write Protect is off<br />
Jul 18 16:29:39 localhost kernel: sdc: cache data unavailable<br />
Jul 18 16:29:39 localhost kernel: sdc: assuming drive cache: write through<br />
Jul 18 16:29:39 localhost kernel:  sdc: unknown partition table<br />
Jul 18 16:29:39 localhost kernel: sd 0:0:2:0: Attached scsi disk sdc<br />
Jul 18 16:29:39 localhost kernel: sd 0:0:2:0: Attached scsi generic sg2 type 0</p></blockquote>
<h3>How Do I Delete a Single Device Called /dev/sdc?</h3>
<p>In addition to re-scanning the entire bus, a specific device can be  added or existing device deleted using the following command:<br />
<code># echo 1 &gt; /sys/block/devName/device/delete<br />
# echo 1 &gt; /sys/block/<strong>sdc</strong>/device/delete</code></p>
<h3>How Do I Add a Single Device Called /dev/sdc?</h3>
<p>To add a single device explicitly, use the following syntax:</p>
<blockquote><p># echo &#8220;scsi add-single-device &lt;H&gt; &lt;B&gt; &lt;T&gt; &lt;L&gt;&#8221; &gt; /proc/scsi/scsi</p></blockquote>
<p>Where,</p>
<ul>
<li>&lt;H&gt; : Host</li>
<li>&lt;B&gt; : Bus (Channel)</li>
<li>&lt;T&gt; : Target (Id)</li>
<li>&lt;L&gt; : LUN numbers</li>
</ul>
<p>For e.g. add /dev/sdc with host # 0, bus # 0, target # 2, and LUN # 0, enter:<br />
<code># echo "scsi add-single-device 0 0 2 0"&gt;/proc/scsi/scsi<br />
# fdisk -l<br />
# cat /proc/scsi/scsi</code><br />
Sample Outputs:</p>
<blockquote><p>Attached devices:<br />
Host: scsi0 Channel: 00 Id: 00 Lun: 00<br />
  Vendor: VMware,  Model: VMware Virtual S Rev: 1.0<br />
  Type:   Direct-Access                    ANSI SCSI revision: 02<br />
Host: scsi0 Channel: 00 Id: 01 Lun: 00<br />
  Vendor: VMware,  Model: VMware Virtual S Rev: 1.0<br />
  Type:   Direct-Access                    ANSI SCSI revision: 02<br />
Host: scsi0 Channel: 00 Id: 02 Lun: 00<br />
  Vendor: VMware,  Model: VMware Virtual S Rev: 1.0<br />
  Type:   Direct-Access                    ANSI SCSI revision: 02</pre>
<h2>Step #3: Format a New Disk</h2>
<p>Now, you can create partition using <a href="http://www.cyberciti.biz/faq/linux-disk-format/">fdisk and format it using mkfs.ext3</a> command:<br />
<code># fdisk /dev/sdc<br />
# mkfs.ext3 /dev/sdc3</code></p>
<h2>Step #4: Create a Mount Point And Update /etc/fstab</h2>
<p><code># mkdir /disk3</code><br />
Open /etc/fstab file, enter:<br />
<code># vi /etc/fstab</code><br />
Append as follows:</p>
<pre>/dev/sdc3               /disk3           ext3    defaults        1 2</pre>
<p>Save and close the file.</p>
<h4>Optional Task: Label the partition</h4>
<p>You can label the partition using e2label. For example, if you want to label the new partition /backupDisk, enter<br />
<code># e2label /dev/sdc1 /backupDisk</code></p>
<h2>Conclusion</h2>
<p>The VMware guest now has an additional virtualized storage device.   The procedure works for all physical block devices, this includes  CD-ROM, DVD and floppy devices. Next, time I will write about adding an  additional virtualized storage device using XEN software.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/vmware-linux-guest-add-a-new-hard-disk-without-rebooting-guest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Ketchup to manage your kernel sources</title>
		<link>http://redhatvn.net/using-ketchup-to-manage-your-kernel-sources</link>
		<comments>http://redhatvn.net/using-ketchup-to-manage-your-kernel-sources#comments</comments>
		<pubDate>Tue, 07 Sep 2010 07:44:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1307</guid>
		<description><![CDATA[Today I discovered Ketchup, a little command-line tool to manage your Linux kernel sources. If you&#8217;re one of the weirdos, who is still compiling his kernel manually for whatever reason (like I do), I can only recommend it. Ketchup nicely eases up the entire process of checking for updates and applying them to your system. [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/using-ketchup-to-manage-your-kernel-sources"></g:plusone></div><p>Today I discovered Ketchup, a little command-line tool to manage your  Linux kernel sources. If you&#8217;re one of the weirdos, who is still  compiling his kernel manually for whatever reason (like I do), I can  only recommend it. Ketchup nicely eases up the entire process of  checking for updates and applying them to your system.</p>
<p>Let&#8217;s not hesitate and look at few usage examples&#8230; Want to know what&#8217;s the latest version of a particular kernel-tree?<br />
<span id="more-1307"></span><br />
<code>$ ketchup -s 2.6</code></p>
<blockquote><p>2.6.17.7</p></blockquote>
<p><code>$ ketchup -s 2.6-mm</code></p>
<blockquote><p>2.6.18-rc1-mm2</p></blockquote>
<p>Let&#8217;s play with your kernel sources a bit. First of all, you surely want to check what version you currently got lying around&#8230;</p>
<p><code>$ cd /usr/src/linux</code></p>
<p><code>$ ketchup -m</code></p>
<blockquote><p>2.6.17.6</p></blockquote>
<p>Let&#8217;s assume there is a newer kernel version available and you want  to download it, bunzip it, revert the old patch and apply the new one.  Nothing easier than that:</p>
<p><code># cd /usr/src/linux</code></p>
<p><code># ketchup 2.6-tip</code></p>
<blockquote><p>2.6.17.6 -&gt; 2.6.17.7</p></blockquote>
<p>Applying patch-2.6.17.6.bz2 -R</p>
<p>Applying patch-2.6.17.7.bz2</p>
<p>That&#8217;s really it. It will download the patches, revert and apply them, so all you will have to do is watch and wait</p>
<p>Switching to an entirely different kernel versions is just as easy:</p>
<p><code># cd /usr/src/linux</code></p>
<p><code># ketchup 2.6.16.2</code></p>
<p>Final note: If Ketchup should abort with a gpg error, then it  couldn&#8217;t verify the patch&#8217;s or kernel&#8217;s signature. Either add the 2.6  public key to your keyring (this is the proper solution) or call Ketchup  with an additional -G parameter (this will override signature  checking). I&#8217;d suggest the former, which is really easy to do by  downloading it from a public pgp server:</p>
<p><code># gpg --keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E</code></p>
<p>Have fun compiling,</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/using-ketchup-to-manage-your-kernel-sources/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat / CentOS IPv6 Network Configuration</title>
		<link>http://redhatvn.net/red-hat-centos-ipv6-network-configuration</link>
		<comments>http://redhatvn.net/red-hat-centos-ipv6-network-configuration#comments</comments>
		<pubDate>Thu, 26 Aug 2010 04:23:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1248</guid>
		<description><![CDATA[Q. How do I configure static IPv6 networking under RHEL 5.x / Fedora / CentOS Linux? A. Red Hat / CentOS / Fedora RHEL support IPv6 out of box. All you have to do is update two files and turn on networking. You need to update and configure following files for IPv6 configuration: /etc/sysconfig/network : [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/red-hat-centos-ipv6-network-configuration"></g:plusone></div><p>Q. How do I configure static IPv6 networking under RHEL 5.x / Fedora / CentOS Linux?<br />
A.  Red Hat / CentOS / Fedora RHEL support IPv6 out of box. All you have to do is update two files and turn on networking.<br />
<span id="more-1248"></span><br />
You need to update and configure following files for IPv6 configuration:</p>
<ol>
<li><strong>/etc/sysconfig/network</strong> : Turn on networking in this file.</li>
<li><strong>/etc/sysconfig/network-scripts/ifcfg-eth0</strong> : Set default IPv6 router IP and server IP address in this file.</li>
</ol>
<p>Open /etc/sysconfig/network file, enter:<br />
<code># vi /etc/sysconfig/network</code><br />
Append following line:</p>
<blockquote><p>NETWORKING_IPV6=yes</p></blockquote>
<p>Open /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file)<br />
<code># vi /etc/sysconfig/network-scripts/ifcfg-eth0</code><br />
Append following config directives for IPv6:</p>
<blockquote><p>IPV6INIT=yes<br />
IPV6ADDR=&lt;IPv6-IP-Address&gt;<br />
IPV6_DEFAULTGW=&lt;IPv6-IP-Gateway-Address&gt;</p></blockquote>
<p>Here is my sample file with mix of IPv4 and IPv6 assigned to eth0:</p>
<blockquote><p>DEVICE=eth0<br />
BOOTPROTO=static<br />
ONBOOT=yes<br />
HWADDR=00:30:48:33:bc:33<br />
IPADDR=202.54.1.5<br />
GATEWAY=202.54.1.3<br />
NETMASK=255.255.255.248<br />
IPV6INIT=yes<br />
IPV6ADDR=2607:f0d0:1002:0011:0000:0000:0000:0002<br />
IPV6_DEFAULTGW=2607:f0d0:1002:0011:0000:0000:0000:0001</p></blockquote>
<p>Where,</p>
<ul>
<li><strong>NETWORKING_IPV6=yes|no</strong> &#8211;  Enable or disable global IPv6 initialization.</li>
<li><strong>IPV6INIT=yes</strong> &#8211;  Enable or disable IPv6 configuration for all interfaces.</li>
<li><strong>IPV6ADDR=2607:f0d0:1002:0011:0000:0000:0000:0002</strong> &#8211;   Specify a primary static IPv6 address here.</li>
<li><strong>IPV6_DEFAULTGW=2607:f0d0:1002:0011:0000:0000:0000:0001</strong> &#8211; Add a default route through specified gateway.</li>
</ul>
<p>Save and close the file. Restart networking:<br />
<code># service network restart</code><br />
Verify your configuration by pinging ipv6 enabled site such as ipv6.google.com:<br />
<code>$ ping6 ipv6.google.com</code><br />
Sample output:</p>
<blockquote><p>PING ipv6.google.com(2001:4860:b002::68) 56 data bytes<br />
64 bytes from 2001:4860:b002::68: icmp_seq=1 ttl=59 time=93.2 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=2 ttl=59 time=95.0 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=3 ttl=59 time=94.2 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=4 ttl=59 time=95.2 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=5 ttl=59 time=94.8 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=6 ttl=59 time=95.1 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=7 ttl=59 time=93.3 ms<br />
64 bytes from 2001:4860:b002::68: icmp_seq=8 ttl=59 time=93.8 ms</p>
<p>&#8212; ipv6.google.com ping statistics &#8212;<br />
8 packets transmitted, 8 received, 0% packet loss, time 7010ms<br />
rtt min/avg/max/mdev = 93.268/94.376/95.268/0.799 ms</p></blockquote>
<p>Traces path to a network host, enter:<br />
<code>$ traceroute6 ipv6.google.com</code><br />
Print default IPv6 routing table, enter:<br />
<code>$ route -n -A inet6</code><br />
Sample output:</p>
<blockquote><p>Kernel IPv6 routing table<br />
Destination                                 Next Hop                                Flags Metric Ref    Use Iface<br />
::1/128                                     ::                                      U     0      42531       1 lo<br />
::62.41.14.144/128                          ::                                      U     0      0        1 lo<br />
::127.0.0.1/128                             ::                                      U     0      0        1 lo<br />
::/96                                       ::                                      U     256    0        0 sit0<br />
2001:470:1f04:55a::2/128                    ::                                      U     0      15201       1 lo<br />
2001:470:1f04:55a::/64                      ::                                      U     256    0        0 sit1<br />
fe80::4833:22f4/128                         ::                                      U     0      0        1 lo<br />
fe80::212:3fff:fe75:fa0d/128                ::                                      U     0      0        1 lo<br />
fe80::/64                                   ::                                      U     256    0        0 eth0<br />
fe80::/64                                   ::                                      U     256    0        0 sit1<br />
ff00::/8                                    ::                                      U     256    0        0 eth0<br />
ff00::/8                                    ::                                      U     256    0        0 sit1<br />
::/0                                        ::                                      U     1      0        0 sit1
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/red-hat-centos-ipv6-network-configuration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Speed Your File System</title>
		<link>http://redhatvn.net/how-to-speed-your-file-system</link>
		<comments>http://redhatvn.net/how-to-speed-your-file-system#comments</comments>
		<pubDate>Fri, 22 Jan 2010 08:09:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1107</guid>
		<description><![CDATA[Every time a file is read from your Linux ext3 partition it writes back a attribute to the file detailing the last access time. There are very few programs that actually use this to operate and it slows everything down. Disabling atime and diratime on your Linux ext3 file systems can improve disk performance up [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/how-to-speed-your-file-system"></g:plusone></div><p>Every time a file is read from your Linux ext3 partition it writes  back a  attribute to the file detailing the last access time. There are  very few  programs that actually use this to operate and it slows  everything down.</p>
<p>Disabling atime and diratime on your Linux ext3 file systems can  improve disk  performance up to 40%!<br />
<span id="more-1107"></span><br />
<em><strong>WARNING:</strong> If you  are using  programs such as tmpwatch, mutt, or mail-notify this  configuration change could  cause those programs that make specific use  of atime not to work.</em></p>
<ol>
<li>Start a terminal.</li>
<li>Switch to root using the “su -” command.</li>
<li>Backup your fstab – “cp /etc/fstab /etc/fstab.old”.</li>
<li>Open your /etc/fstab in the editor of your choice (nano, kate or  gedit  recommended). This can be done by issuing the command “nano  /etc/fstab”, “kate  /etc/fstab”, or “gedit /etc/fstab”.</li>
<li>Locate the partitions that contain your / and /home file systems, as  well as  any other file system you want to optimize. Examples include  /dev/hda2 and  /dev/hda3, or /dev/sda2 and /dev/sda3.</li>
<li>In the fourth section (just before the two numbers at the end of the  line)  you will see the options section of the fstab.</li>
<li>Enter “,noatime,nodiratime” after the existing options for each  partition  you wish to optimize.</li>
<li>Save the fstab file.</li>
<li>Reboot.</li>
</ol>
<p>Enjoy your newly optimized Linux ext3 file system. And if you don’t  believe  it is 40% <a href="http://kerneltrap.org/node/14148">see this  post at  kerneltrap.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-speed-your-file-system/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to umount when the device is busy</title>
		<link>http://redhatvn.net/how-to-umount-when-the-device-is-busy</link>
		<comments>http://redhatvn.net/how-to-umount-when-the-device-is-busy#comments</comments>
		<pubDate>Fri, 15 Jan 2010 05:50:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1082</guid>
		<description><![CDATA[You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you what was keeping the drive busy? Here we are in 2008, I’m using Ubuntu Gutsy, and [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/how-to-umount-when-the-device-is-busy"></g:plusone></div><p>You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you what was keeping the drive busy? Here we are in 2008, I’m using Ubuntu Gutsy, and that message hasn’t changed in all the years I’ve used Linux.<br />
<span id="more-1082"></span></p>
<blockquote><p>
<code># umount /media/disk/<br />
umount: /media/disk: device is busy<br />
umount: /media/disk: device is busy</code>
</p></blockquote>
<p>First thing you’ll do will probably be to close down all your terminals and xterms but here’s a better way. You can use the fuser command to find out which process was keeping the device busy:</p>
<blockquote>
<p><code># fuser -m /dev/sdc1<br />
/dev/sdc1:             538<br />
# ps auxw|grep 538<br />
donncha    538  0.4  2.7 219212 56792 ?        SLl  Feb11  11:25 rhythmbox</code>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-umount-when-the-device-is-busy/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
