<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2348008606738078916</id><updated>2024-09-04T12:00:06.839-07:00</updated><category term="dd linux unix performance"/><category term="linux command line doc files open"/><category term="linux command line port iptables red hat"/><title type='text'>Linux Troubleshooting</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7219852545215139323</id><published>2013-07-28T23:03:00.004-07:00</published><updated>2013-07-28T23:30:55.328-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7219852545215139323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2013/07/poornima-kshirasagar-there-is-no-doubt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7219852545215139323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7219852545215139323'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2013/07/poornima-kshirasagar-there-is-no-doubt.html' title=''/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-2004173811014808754</id><published>2012-04-03T17:28:00.001-07:00</published><updated>2012-04-03T17:29:27.328-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux command line port iptables red hat"/><title type='text'>How to open ports in Red Hat Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1. Edit vi /etc/sysconfig/iptables&lt;br /&gt;
2. Add -A RH -INPUT -m state --state NEW -m tcp -p tcp --dport &lt;i&gt;&lt;b&gt;port number&lt;/b&gt; &lt;/i&gt;-j ACCEPT&lt;br /&gt;
Change &#39;port number&#39; to desired port number &lt;br /&gt;
3. save and exit&lt;br /&gt;
4. restart iptables with &#39;service iptables restart&#39;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/2004173811014808754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2012/04/how-to-open-ports-in-red-hat-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/2004173811014808754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/2004173811014808754'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2012/04/how-to-open-ports-in-red-hat-linux.html' title='How to open ports in Red Hat Linux'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-4574332271070271525</id><published>2011-12-17T20:31:00.000-08:00</published><updated>2011-12-17T20:31:40.278-08:00</updated><title type='text'>when we mounting chroot /mnt/sysimage we are getting below error, chroot: cannot run command &#39;/bin/sh&#39; :No such file or directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span id=&quot;Page:form:CaseCommentEditors:j_id336:43:View&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;# ls /bin/sh 

If the command returns no file or directory again, then run

# ls /bin/bash

If this command returns the path of /bin/bash then recreate the symlink from /bin/sh to /bin/bash as such:

# ln -s /bin/sh /bin/bash&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/4574332271070271525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/12/when-we-mounting-chroot-mntsysimage-we.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/4574332271070271525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/4574332271070271525'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/12/when-we-mounting-chroot-mntsysimage-we.html' title='when we mounting chroot /mnt/sysimage we are getting below error, chroot: cannot run command &#39;/bin/sh&#39; :No such file or directory'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7675265795001898110</id><published>2011-12-08T22:03:00.001-08:00</published><updated>2011-12-08T22:03:41.441-08:00</updated><title type='text'>Why do I get this error &#39;/dev/st0: inappropriate ioctl for device&#39;</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;When I run the command mt -f /dev/st0 status, it produces /dev/st0:inappropriate ioctl for device. How do I fix this issue?&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7675265795001898110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/12/why-do-i-get-this-error-devst0.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7675265795001898110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7675265795001898110'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/12/why-do-i-get-this-error-devst0.html' title='Why do I get this error &#39;/dev/st0: inappropriate ioctl for device&#39;'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-5106547811524116547</id><published>2011-12-06T20:38:00.000-08:00</published><updated>2011-12-08T22:04:00.279-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux command line doc files open"/><title type='text'>How do I open doc files from command line in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Doc files can be opened following default tools.&lt;br /&gt;
&lt;br /&gt;
1. gnome-open&lt;br /&gt;
2. oowriter&lt;br /&gt;
3. xdg-open&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
#gnome-open test.doc&lt;br /&gt;
#oowriter test1.doc&lt;br /&gt;
#xdg-open test2.doc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/5106547811524116547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/12/how-do-i-open-doc-files-from-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/5106547811524116547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/5106547811524116547'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/12/how-do-i-open-doc-files-from-command.html' title='How do I open doc files from command line in linux'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-4935907207672964580</id><published>2011-05-10T18:15:00.000-07:00</published><updated>2011-12-08T22:04:19.140-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dd linux unix performance"/><title type='text'>How to measure linux performance</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Check with dd command in unix/linux systems... for example&lt;br /&gt;
&lt;br /&gt;
#time dd if=/dev/zero of=/dev/null bs=1024k count=10000000&lt;br /&gt;
10000000+0 records in&lt;br /&gt;
10000000+0 records out&lt;br /&gt;
10485760000000 bytes (10 TB) copied, 359.587 seconds, 29.2 GB/s&lt;br /&gt;
&lt;br /&gt;
real&amp;nbsp;&amp;nbsp;&amp;nbsp; 5m59.615s&lt;br /&gt;
user&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m4.403s&lt;br /&gt;
sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5m54.958s&lt;br /&gt;
&lt;br /&gt;
#top&lt;br /&gt;
#ps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/4935907207672964580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/05/how-to-measure-linux-performance.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/4935907207672964580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/4935907207672964580'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2011/05/how-to-measure-linux-performance.html' title='How to measure linux performance'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7790477871633310912</id><published>2010-11-10T18:19:00.000-08:00</published><updated>2010-11-10T18:19:09.263-08:00</updated><title type='text'>CIFS VFS: cifs_mount failed w/return code = -101</title><content type='html'>CIFS VFS: Error connecting to socket. Aborting operation&lt;br /&gt;
&amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -101</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7790477871633310912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/cifs-vfs-cifsmount-failed-wreturn-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7790477871633310912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7790477871633310912'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/cifs-vfs-cifsmount-failed-wreturn-code.html' title='CIFS VFS: cifs_mount failed w/return code = -101'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-5717254107611841078</id><published>2010-11-03T18:43:00.000-07:00</published><updated>2010-11-03T18:43:48.367-07:00</updated><title type='text'>how to redirect strace to text file</title><content type='html'>how to redirect strace to text file&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;#strace -o filename command&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;For example:&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;strace -o strace1.txt  ls  &lt;/pre&gt;&lt;pre class=&quot;caseCommentStyle publicComment&quot;&gt;&amp;nbsp;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/5717254107611841078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/how-to-redirect-strace-to-text-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/5717254107611841078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/5717254107611841078'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/how-to-redirect-strace-to-text-file.html' title='how to redirect strace to text file'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-1542325744050568114</id><published>2010-11-02T18:24:00.000-07:00</published><updated>2010-11-02T18:24:27.814-07:00</updated><title type='text'>read and edit initrd image contents</title><content type='html'>1. Make temporary directory&lt;br /&gt;
&lt;br /&gt;
#mkdir /tmp/initrd&lt;br /&gt;
2. Copy initrd image to destination directory&lt;br /&gt;
#cp /source/directory/initrd-version.img /tmp/initrd&lt;br /&gt;
3. unzip and use cpio &lt;br /&gt;
#gzip -dc initrd-2.6.18-164.6.1.el5.img | cpio -ivd</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/1542325744050568114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/read-and-edit-initrd-image-contents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/1542325744050568114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/1542325744050568114'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/read-and-edit-initrd-image-contents.html' title='read and edit initrd image contents'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-6663062525056966647</id><published>2010-11-01T23:01:00.001-07:00</published><updated>2010-11-01T23:01:46.402-07:00</updated><title type='text'>blocked FC remote port time out</title><content type='html'>logs shows &#39;blocked FC remote port time out&#39; errors</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/6663062525056966647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/blocked-fc-remote-port-time-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/6663062525056966647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/6663062525056966647'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/11/blocked-fc-remote-port-time-out.html' title='blocked FC remote port time out'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-5283420269873469753</id><published>2010-10-26T21:44:00.000-07:00</published><updated>2010-10-26T21:44:03.638-07:00</updated><title type='text'>SIOCADDRT: No such device or SIOCADDRT: Network is unreachable</title><content type='html'>1. Check &#39;ifconfig ethx&#39; to determine ip address has been assigned. If not assign ip address</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/5283420269873469753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/10/siocaddrt-no-such-device-or-siocaddrt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/5283420269873469753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/5283420269873469753'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/10/siocaddrt-no-such-device-or-siocaddrt.html' title='SIOCADDRT: No such device or SIOCADDRT: Network is unreachable'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-313258479466445521</id><published>2010-10-20T20:06:00.000-07:00</published><updated>2010-10-21T22:56:46.694-07:00</updated><title type='text'>Write protecting the kernel read-only data</title><content type='html'>There was a bug in previous version, please update to the latest version. That should get rid of these error messages</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/313258479466445521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/10/write-protecting-kernel-read-only-data.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/313258479466445521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/313258479466445521'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/10/write-protecting-kernel-read-only-data.html' title='Write protecting the kernel read-only data'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-2155361653704678484</id><published>2010-10-11T18:54:00.000-07:00</published><updated>2010-10-11T18:54:14.042-07:00</updated><title type='text'>upgrade from RHEL4 to RHEL5</title><content type='html'>Upgrading between major versions is not support. Install a required version from scratch.</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/2155361653704678484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/10/upgrade-from-rhel4-to-rhel5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/2155361653704678484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/2155361653704678484'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/10/upgrade-from-rhel4-to-rhel5.html' title='upgrade from RHEL4 to RHEL5'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-8995632977982021718</id><published>2010-09-05T18:10:00.000-07:00</published><updated>2010-09-05T18:10:16.618-07:00</updated><title type='text'>linux bonding does not double bandwidth</title><content type='html'>&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_12__2606&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_8__2606&quot;&gt;For 1G Nic, the maximum theoretical speed limit is 128MB/s. &lt;br /&gt;
In real world you get much lesser, adding the protocol overhead like we have scp, wget and other protocols. &lt;br /&gt;
If you are currently using mode 0. &lt;br /&gt;
In mode 0 there is chances for packet re-ordering. Which can delay the speed. &lt;br /&gt;
There may be slight improvement if you use mode 4.&lt;br /&gt;
With mode 4 the incoming connection is controlled by switch. So there will be no packet re-order issues or packet drops.&lt;br /&gt;
Even if you use mode 4, you cannot achieve 2G speed for a single connection. You can enjoy 2G bandwidth for multiple connections.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_12__2606&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_8__2606&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_12__2606&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_8__2606&quot;&gt;There is a assumption that configuration of bonding with multiple network cards gives double bandwidth. That is not at all true.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_12__2606&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_8__2606&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/8995632977982021718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/09/linux-bonding-does-not-double-bandwidth.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/8995632977982021718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/8995632977982021718'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/09/linux-bonding-does-not-double-bandwidth.html' title='linux bonding does not double bandwidth'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7674199641944666050</id><published>2010-08-05T17:17:00.000-07:00</published><updated>2010-08-10T18:30:16.114-07:00</updated><title type='text'>GFS2 lockdump analysis</title><content type='html'>G:&amp;nbsp; s:EX n:2/1fda70 f:Dy t:EX d:UN/132055446000 l:0 a:0 r:5&lt;br /&gt;
&amp;nbsp;H: s:EX f:H e:0 p:1405 [httpd] gfs2_write_begin+0x61/0x33e [gfs2]&lt;br /&gt;
&amp;nbsp;H: s:EX f:W e:0 p:31819 [umount] gfs2_write_inode+0x57/0x152 [gfs2]&lt;br /&gt;
&lt;br /&gt;
The content of the file is a series of lines. Each line starting with G: represents one glock, and the following lines, indented by a single space, represent an item of information relating to the glock immediately before them in the file&lt;br /&gt;
&lt;br /&gt;
Lines in the &lt;code class=&quot;filename&quot;&gt;debugfs&lt;/code&gt; file starting with H: (holders) represent lock requests either granted or waiting to be granted&lt;br /&gt;
&lt;br /&gt;
The flags field on the holders line f: shows which: The &#39;W&#39; flag refers to a waiting request, the &#39;H&#39; flag refers to a granted request&lt;br /&gt;
&lt;br /&gt;
The glocks which have large numbers of waiting requests are likely to be those which are experiencing particular contention.&lt;br /&gt;
&lt;br /&gt;
Having identified a glock which is causing a problem, the next step is to find out which inode it relates to. The glock number (n: on the G: line) indicates this. It is of the form &lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;type&lt;/code&gt;&lt;/em&gt;/&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;number&lt;/code&gt;&lt;/em&gt; and if &lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;type&lt;/code&gt;&lt;/em&gt; is 2, then the glock is an inode glock and the &lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;number&lt;/code&gt;&lt;/em&gt; is an inode number. To track down the inode, you can then run &lt;code class=&quot;command&quot;&gt;find -inum &lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;number&lt;/code&gt;&lt;/em&gt;&lt;/code&gt; where &lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;number&lt;/code&gt;&lt;/em&gt; is the inode number converted from the hex format in the glocks file into decimal.&lt;br /&gt;
&lt;br /&gt;
If the glock that was identified was of a different type, then it is most likely to be of type 3: (resource group). If you see significant numbers of processes waiting for other types of glock under normal loads, then please report this to Red Hat support.&lt;br /&gt;
&lt;br /&gt;
f you do see a number of waiting requests queued on a resource group lock there may be a number of reason for this. One is that there are a large number of nodes compared to the number of resource groups in the filesystem. Another is that the filesystem may be very nearly full (requiring, on average, longer searches for free blocks). The situation in both cases can be improved by adding more storage and using the &lt;code class=&quot;command&quot;&gt;gfs2_grow&lt;/code&gt; command to expand the filesystem.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The W flag indicates that this is waiting for a glock&lt;br /&gt;
UN (unlocked) state&lt;br /&gt;
SH (shared) lock</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7674199641944666050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/08/gfs2-lockdump-analysis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7674199641944666050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7674199641944666050'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/08/gfs2-lockdump-analysis.html' title='GFS2 lockdump analysis'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7935958279374468635</id><published>2010-08-02T18:30:00.000-07:00</published><updated>2010-08-02T18:30:54.988-07:00</updated><title type='text'>du command usage</title><content type='html'>1. du -hs *&amp;nbsp; (shows linux directory size)&lt;br /&gt;
2. du * | sort -n (finding large files with sort option)</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7935958279374468635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/08/du-command-usage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7935958279374468635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7935958279374468635'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/08/du-command-usage.html' title='du command usage'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-1245640076620028819</id><published>2010-07-02T17:46:00.000-07:00</published><updated>2010-07-02T17:46:30.079-07:00</updated><title type='text'>bash: fork: Resource temporarily unavailable</title><content type='html'>The error is generated because of recursive defunct processes going on in the memory and is unable to allocate specific amount of memory for the newly created process. Basically the general structure of process generation is as followed. &lt;br /&gt;
&lt;br /&gt;
This is the normal life of a program. &lt;br /&gt;
fork()INIT-&amp;gt;exec()-&amp;gt;RUN-&amp;gt;exit()-&amp;gt;ZOMBIE-&amp;gt;done &lt;br /&gt;
&lt;br /&gt;
INIT(fork) &lt;br /&gt;
The program is started by a parent process, an action called fork() &lt;br /&gt;
The fork makes a copy(the child) of the calling process(the parent). &lt;br /&gt;
exec() The child then issues an exec() system call which replaces the new &lt;br /&gt;
process with the intended executable file. &lt;br /&gt;
&lt;br /&gt;
SRUN/URUN (system/user run space) the new child program now runs. Now the parent is either waiting(in a SLEEP) for the child to finish or checks for the childs completion or the system notifys the parent on exit &lt;br /&gt;
of the child process. &lt;br /&gt;
&lt;br /&gt;
exit() &lt;br /&gt;
The child exits and returns the resources(memory) to the system. &lt;br /&gt;
ZOMBIE At this point the child has terminated and is in ZOMBIE. THIS IS NORMAL!! It will stay in this state until the parent process acknowledges receipt of the appropriate signal or terminates. &lt;br /&gt;
&lt;br /&gt;
If the parent process has died unexpectedly or something else has prevented acknowledgment from the parent then process ID #1 (init) takes over and becomes the childs parent until reboot. &lt;br /&gt;
&lt;br /&gt;
So... &lt;br /&gt;
A zombie does not tie up memory but it still has a slot in the process table. I/O devices can get locked out. &lt;br /&gt;
&lt;br /&gt;
You can&#39;t kill a ZOMBIE process because......IT&#39;S ALREADY DEAD!!!&lt;br /&gt;
&lt;br /&gt;
So finally try to check these defunct processes going on server You can do this by giving the ps -dfa command and killing manually. If this work you can start by simply relogin into the shell and if not you will need a reboot to the server in order to refresh the memory states.   &lt;!-- / message --&gt;                          &lt;!-- controls --&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/1245640076620028819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/07/bash-fork-resource-temporarily.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/1245640076620028819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/1245640076620028819'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/07/bash-fork-resource-temporarily.html' title='bash: fork: Resource temporarily unavailable'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7045037499062423851</id><published>2010-06-29T17:58:00.000-07:00</published><updated>2010-06-29T17:58:32.700-07:00</updated><title type='text'>packet drops in Linux</title><content type='html'>&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;Packet drops can happen at two layers. one at the NIC level or at the Network stack level.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;Check &#39;ifconfig&#39; output.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;RX packets:297126179 errors:0 dropped:3981 overruns:0 frame:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TX packets:233589229 errors:0 dropped:0 overruns:0 carrier:0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;That means &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;packets drops at the NIC level. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;These are most likely caused by exhaustion of the RX ring buffer. Increase the size of the ethernet device ring buffer.&lt;br /&gt;
&lt;br /&gt;
First inspect the output of &quot;ethtool -g eth0&quot;. &amp;nbsp;If the &quot;Pre-set maximums&quot; are more than the what&#39;s listed in the current hardware settings it&#39;s recommend to increase this number. &amp;nbsp;As an example:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # ethtool -g eth0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Ring parameters for eth0:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Pre-set maximums:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RX: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1020&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RX Mini: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RX Jumbo: &amp;nbsp; &amp;nbsp; &amp;nbsp; 16320&lt;br /&gt;
&amp;nbsp; &amp;nbsp; TX: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 255&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Current hardware settings:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RX: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 255&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RX Mini: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RX Jumbo: &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; TX: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 255&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To increase the RX ring buffer to 4080 you would run &quot;ethtool -G eth0 rx 1020&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_29__963&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_17__963&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7045037499062423851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/packet-drops-in-linux.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7045037499062423851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7045037499062423851'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/packet-drops-in-linux.html' title='packet drops in Linux'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-7970920945373321048</id><published>2010-06-27T17:08:00.001-07:00</published><updated>2010-06-27T17:08:22.213-07:00</updated><title type='text'>when we bring the node back , failback is not happening</title><content type='html'>&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_6__184&quot;&gt;&lt;span class=&quot;x4&quot; id=&quot;NoteDetailText_2__184&quot;&gt;when poweroff &amp;nbsp;command is given through terminal , fail over is working &amp;nbsp;but when we bring the node back , failback is not happening? &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/7970920945373321048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/when-we-bring-node-back-failback-is-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7970920945373321048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/7970920945373321048'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/when-we-bring-node-back-failback-is-not.html' title='when we bring the node back , failback is not happening'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-8133927525094316332</id><published>2010-06-20T18:25:00.000-07:00</published><updated>2010-06-20T18:25:11.585-07:00</updated><title type='text'>kernel panic due to openafs filesystem</title><content type='html'>By the looks of the logs kernel panic occurred due to &#39;openafs&#39; file system corruption.</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/8133927525094316332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/kernel-panic-due-to-openafs-filesystem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/8133927525094316332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/8133927525094316332'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/kernel-panic-due-to-openafs-filesystem.html' title='kernel panic due to openafs filesystem'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-3964618311120880403</id><published>2010-06-15T21:59:00.000-07:00</published><updated>2010-10-21T22:52:07.277-07:00</updated><title type='text'>configure guest virtual machines to use SAN storage using libvirt</title><content type='html'>&lt;h2&gt;&lt;/h2&gt;Provision a new logical unit on iSCSI or fibre channel storage. Use virsh to trigger a scan for it, and confirm that it appears correctly. &lt;br /&gt;
To discover logical units on a particular HBA, create a pool for that HBA using: &lt;br /&gt;
&lt;code&gt;virsh pool-create hbapool.xml&lt;/code&gt; &lt;br /&gt;
where hbapool.xml contains: &lt;br /&gt;
&lt;pre&gt;&lt;pool type=&quot;scsi&quot;&gt;
  &lt;name&gt;host6&lt;/name&gt;
  &lt;source&gt;&lt;adapter name=&quot;host6&quot;&gt;&lt;/adapter&gt;&lt;target&gt;&lt;path&gt;/dev/disk/by-id&lt;/path&gt;
  &lt;/target&gt;&lt;/source&gt;&lt;/pool&gt;&lt;/pre&gt;Confirm that all the appropriate logical units are visible as volumes with: &lt;br /&gt;
&lt;code&gt;virsh vol-list host6&lt;/code&gt; &lt;br /&gt;
After creating the pool, add a new logical unit on a target that&#39;s visible on that host and refresh the pool with: &lt;br /&gt;
&lt;code&gt;virsh pool-refresh host6&lt;/code&gt; &lt;br /&gt;
and confirm that the new storage is visible.  Note that the refresh code only scans for new LUs on existing targets and does not issue a LIP to discover new targets as that would be disruptive to I/O. &lt;br /&gt;
&lt;h2&gt;&amp;nbsp;&lt;/h2&gt;&lt;h2&gt;&lt;br /&gt;
&lt;/h2&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/3964618311120880403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/configure-guest-virtual-machines-to-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/3964618311120880403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/3964618311120880403'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/configure-guest-virtual-machines-to-use.html' title='configure guest virtual machines to use SAN storage using libvirt'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-6588155953688408728</id><published>2010-06-10T00:29:00.000-07:00</published><updated>2010-06-10T00:34:00.227-07:00</updated><title type='text'>backup and restore partition table</title><content type='html'>Backing up partition table.&lt;br /&gt;&lt;br /&gt;dd if=/dev/device of=/path/to/backup bs=512 count=1&lt;br /&gt;&lt;br /&gt;Restore&lt;br /&gt;&lt;br /&gt;dd if=/path/to/backup of=/dev/device bs=512 count=1&lt;br /&gt;&lt;br /&gt;You can make sure data is intact using &#39;hexdump&#39;.&lt;br /&gt;&lt;br /&gt;hexdump /path/to/backup</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/6588155953688408728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/backup-and-restore-partition-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/6588155953688408728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/6588155953688408728'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/backup-and-restore-partition-table.html' title='backup and restore partition table'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-4518270364201574892</id><published>2010-06-08T01:09:00.000-07:00</published><updated>2010-06-08T01:13:59.715-07:00</updated><title type='text'>gfs_controld mount: not in default fence domain</title><content type='html'>&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_3__870&quot;&gt;&lt;span id=&quot;NoteDetailText_1__870&quot; class=&quot;x4&quot;&gt;The above logs indicate that either means that the fence daemon was not running, the node was not a full member of cluster, or the node had joined the cluster in an unstable state. If any node did not join fence domain would cause to shared file systems hung.&lt;br /&gt;&lt;br /&gt;To confirm the above run the following commands:&lt;br /&gt;&lt;br /&gt; # group_tool dump fence | grep members&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;cman_tool services&lt;br /&gt;&lt;br /&gt; type             level name     id       state      &lt;br /&gt; fence            0     default  00000000 JOIN_START_WAIT&lt;br /&gt; [1]&lt;br /&gt; dlm              1     clvmd    00000000 none &lt;br /&gt;&lt;br /&gt;If the state is &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;UpdateSR&quot;&gt;&lt;span id=&quot;SRDetailsSubTabRN&quot;&gt;&lt;span id=&quot;SRHistoryTabxRN&quot;&gt;&lt;span id=&quot;SRLogxRN&quot;&gt;&lt;span id=&quot;ActivityTextFLRN_3__870&quot;&gt;&lt;span id=&quot;NoteDetailText_1__870&quot; class=&quot;x4&quot;&gt;JOIN_START_WAIT&quot; the above description of the problem is correct.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/4518270364201574892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/gfscontrold-mount-not-in-default-fence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/4518270364201574892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/4518270364201574892'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/06/gfscontrold-mount-not-in-default-fence.html' title='gfs_controld mount: not in default fence domain'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-2240959819959991639</id><published>2010-05-31T20:13:00.000-07:00</published><updated>2010-11-01T01:55:28.358-07:00</updated><title type='text'>How to locate all the files recursively which is having a specific pattern?</title><content type='html'>&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;find / -type f -exec grep -H &#39;pattern&#39; {} \; &lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;find . -name &#39;pattern&#39;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;color: #333333; font-size: 85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;For files containing a specific pattern, you can use grep with -r option.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;display: block; padding-left: 6em;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;   eg. grep -r &#39;pattern&#39; *                          &lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;color: #333333; font-size: 85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;To find all files which contain &quot;pattern&quot;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt; find . -type f -print0 | xargs -0 grep -l &quot;pattern&quot; &lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;color: #333333; font-size: 85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;find ./ -iname &#39;*substring*&#39;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;grep -r &quot;pattern&quot;  /&lt;br /&gt;
&lt;br /&gt;
the above command will look for the pattern from root directory. Other wise you can mention the path from where you want to search. &lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;color: #333333; font-size: 85%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;color: #333333; font-family: arial;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;find . -name &quot;*pattern*&quot; -exec grep -l otherpattern {} +&lt;br /&gt;
&lt;br /&gt;
With the plus, grep will be given as many filenames as the system can handle rather than one file at a time, reducing the number of instances of gre&lt;/span&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/2240959819959991639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/05/how-to-locate-all-files-recursively.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/2240959819959991639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/2240959819959991639'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/05/how-to-locate-all-files-recursively.html' title='How to locate all the files recursively which is having a specific pattern?'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2348008606738078916.post-444740298404875116</id><published>2010-05-30T18:05:00.001-07:00</published><updated>2010-05-30T20:35:47.890-07:00</updated><title type='text'>ttloop: peer died: EOF</title><content type='html'>How to get rid of messages ttloop: peer died: EOF&lt;br /&gt;&lt;br /&gt;There are possible reasons to it&lt;br /&gt;&lt;br /&gt;1. May be faulty network card&lt;br /&gt;2. Port scanning&lt;br /&gt;3. Someone trying to connect to the host</content><link rel='replies' type='application/atom+xml' href='http://linux-troubleshooting.blogspot.com/feeds/444740298404875116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/05/ttloop-peer-died-eof.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/444740298404875116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2348008606738078916/posts/default/444740298404875116'/><link rel='alternate' type='text/html' href='http://linux-troubleshooting.blogspot.com/2010/05/ttloop-peer-died-eof.html' title='ttloop: peer died: EOF'/><author><name>HappyLiving</name><uri>http://www.blogger.com/profile/04621415909853650307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>