<?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>Digital Journal &#187; Linux</title>
	<atom:link href="http://digitaljournal.sg/wp/?cat=3&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://digitaljournal.sg/wp</link>
	<description>My Digital Journal</description>
	<lastBuildDate>Mon, 20 Oct 2014 00:32:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Rebuild a corrupted RPM database</title>
		<link>http://digitaljournal.sg/wp/?p=156</link>
		<comments>http://digitaljournal.sg/wp/?p=156#comments</comments>
		<pubDate>Sat, 24 Nov 2012 01:45:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[fix corrupted rpm database]]></category>
		<category><![CDATA[rpm database]]></category>
		<category><![CDATA[rpm database corrupted]]></category>
		<category><![CDATA[yum database]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=156</guid>
		<description><![CDATA[Strange things sometimes happen,one of them is a rpm database got corrupted . This means that the computer tells you something is installed and it really is not. i personally encountered this few times before and usually this happens when the ssh session/connection to the server cut off(i used to ssh to the server , [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: left;">Strange things sometimes happen,one of them is a rpm database got corrupted . This means that the computer tells you something is installed and it really is not. i personally encountered this few times before and usually this happens when the ssh session/connection to the server cut off(i used to ssh to the server , and it is behind the vpn connection when i was doing yum update on server and when i re-login again to the server i just kill the yum right away <img src='http://digitaljournal.sg/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , my bad,  better to use screen <img src='http://digitaljournal.sg/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</div>
</p>
<div>the symptom:</div>
<div>If rpm / yum command hangs during operations or you see error messages &#8211; it means your rpm database corrupted.  just backup your current rpm database, remove it and rebuild it most likely will solve the problem</div>
<div><em><strong># rm -f /var/lib/rpm/__db*</strong></em></div>
<div><em><strong># rpm &#8211;rebuilddb</strong></em></div>
<div><em><strong># yum update</strong></em></div>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=156</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send email notification on successful ssh login using ssmtp</title>
		<link>http://digitaljournal.sg/wp/?p=133</link>
		<comments>http://digitaljournal.sg/wp/?p=133#comments</comments>
		<pubDate>Thu, 15 Nov 2012 01:33:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[Send email notification on successful ssh login using ssmtp]]></category>
		<category><![CDATA[ssh login notification]]></category>
		<category><![CDATA[ssmtp tips]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=133</guid>
		<description><![CDATA[Sometime i wants to know who is login and when user login to my server  but i don&#8217;t want to setup and run my own mail server, this can be done easily by using tcpwrapper and ssmtp , first make sure ssmtp is installed # dpkg -l&#124;grep ssmtp iF  ssmtp                                  2.64-4fakesync1                                 extremely simple MTA to [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime i wants to know who is login and when user login to my server  but i don&#8217;t want to setup and run my own mail server, this can be done easily by using tcpwrapper and ssmtp , first make sure ssmtp is installed</p>
<p><strong><em># dpkg -l|grep ssmtp</em></strong><br />
iF  ssmtp                                  2.64-4fakesync1                                 extremely simple MTA to get mail off the sys</p>
<p>&nbsp;</p>
<p>if ssmtp is not installed yet, install it by using</p>
<p><em><strong># apt-get install ssmtp</strong></em></p>
<p>&nbsp;</p>
<p>If you are using Gmail account , change the <em>root</em>, <em>authuser</em>, and <em>authpass</em> options to the email address, username, and password of your email account. If you’re using another mail service you’ll need to change <em>mailhub</em> to the relevant SMTP server.</p>
<p>edit /etc/ssmtp/ssmtp.conf and add these lines</p>
<p><code>--------------------------------------------<br />
root=alert@example.com<br />
mailhub=smtp.example.com:587<br />
rewriteDomain=<br />
hostname=smtp.example.com:587<br />
UseSTARTTLS=YES<br />
UseTLS=YES<br />
AuthUser=alert@example.com<br />
AuthPass=password<br />
AuthMethod=LOGIN<br />
FromLineOverride=YES # optional<br />
--------------------------------------------</code></p>
<p>&nbsp;</p>
<p>Change the &#8216;From&#8217; text by editing /etc/passwd to receive mail from &#8216;root@server1.example.com&#8217; instead of just &#8216;root&#8217;.<br />
<strong># chfn -f root@server1.example.com root</strong><em><br />
</em></p>
<p>edit /etc/ssmtp/revaliases and add this line or add more line for another user<br />
<code>--------------------------------------------<br />
# sSMTP aliases<br />
#<br />
# Format:    local_account:outgoing_address:mailhub<br />
#<br />
# Example: root:your_login@your.domain:mailhub.your.domain[:port]<br />
# where [:port] is an optional port number that defaults to 25.<br />
root:alert@example.com:smtp.example.com:587<br />
--------------------------------------------</code></p>
<p>to test it</p>
<p><em><strong># echo &#8220;test send email using ssmtp|mail -s &#8220;TEST&#8221; alert@example.com</strong></em></p>
<p>&nbsp;</p>
<p>once you are able to receive that test message, proceed to edit /etc/hosts.allow and add these 2 lines, so you will be notified if someone login to your sever</p>
<p><code>--------------------------------------------<br />
SSHD: ALL: spawn (/bin/echo "SSH connection to %H from %h[%a]" | \<br />
/usr/bin/mail -s "SSH Login Alert [server1.example.com]" alert@example.com)<br />
--------------------------------------------</code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=133</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ip_conntrack: table full, dropping packet</title>
		<link>http://digitaljournal.sg/wp/?p=119</link>
		<comments>http://digitaljournal.sg/wp/?p=119#comments</comments>
		<pubDate>Thu, 25 Oct 2012 09:31:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[dropping packet]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ip_conntrack]]></category>
		<category><![CDATA[ip_conntrack: table full]]></category>
		<category><![CDATA[table full]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=119</guid>
		<description><![CDATA[Today i found this message in one of my server, although the server&#8217;s load is quite low. using dmesg , i kept getting this, and it kept coming ip_conntrack: table full, dropping packet I&#8217;d seen this message before, but I headed over to Red Hat&#8217;s site for more details. Generally, the ip_conntrack_max is set to [...]]]></description>
			<content:encoded><![CDATA[<p>Today i found this message in one of my server, although the server&#8217;s load is quite low. using dmesg , i kept getting this, and it kept coming<br />
ip_conntrack: table full, dropping packet</p>
<p>I&#8217;d seen this message before, but I headed over to Red Hat&#8217;s site for more details. Generally, the ip_conntrack_max is set to the total MB of RAM installed multiplied by 16. However, this server had 4GB of RAM, but ip_conntrack_max was set to 65536:</p>
<p><strong><em># cat /proc/sys/net/ipv4/ip_conntrack_max</em></strong><br />
65536</p>
<p>&nbsp;</p>
<p>If you want to check your server&#8217;s current tracked connections, just run the following:</p>
<p><strong><em># cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count</em></strong></p>
<p>&nbsp;</p>
<p>If you want to adjust it, just run the following as root:<br />
<strong><em># echo 131072 &gt; /proc/sys/net/ipv4/ip_conntrack_max</em></strong></p>
<p>&nbsp;</p>
<p>If you want to find out how many sessions are open right now:<br />
<strong><em># wc -l /proc/net/ip_conntrack</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=119</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing LVM Logical Volume</title>
		<link>http://digitaljournal.sg/wp/?p=112</link>
		<comments>http://digitaljournal.sg/wp/?p=112#comments</comments>
		<pubDate>Wed, 17 Oct 2012 09:36:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[increasing lvm fs]]></category>
		<category><![CDATA[reducing lvm fs]]></category>
		<category><![CDATA[resizing LVM Logical Volume]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=112</guid>
		<description><![CDATA[&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Reducing(Offline):: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Scenario: -There is existing LVM partition 50GB in total and has been used up 5GB -We will reduce the LVM partition from 50GB to 10GB -We need to unmount the FS before we can proceed -Please do proper backup before proceed as there might be chances that you would lose your data [...]]]></description>
			<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Reducing(Offline)::<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Scenario:</p>
<p>-There is existing LVM partition 50GB in total and has been used up 5GB<br />
-We will reduce the LVM partition from 50GB to 10GB<br />
-We need to unmount the FS before we can proceed<br />
-<em><strong>Please do proper backup before proceed as there might be chances that you would lose your data</strong></em></p>
<p>&nbsp;</p>
<p>Output from df -h /media/data:</p>
<p>Filesystem                                                     Size  Used Avail Use% Mounted on<br />
/dev/mapper/vgdata-lvdata                       50G  5.0G   42G  11% /media/data</p>
<p>&nbsp;</p>
<p>Example current usage taken from df -h is 5G and wanted to be shrunk to 10G<br />
# umount /dev/vgdata/lvdata<br />
# e2fsck -f /dev/vgdata/lvdata<br />
# resize2fs /dev/vgdata/lvdata 8G<br />
# e2fsck -f /dev/vgdata/lvdata<br />
# lvreduce -L 10G /dev/vgdata/lvdata<br />
# e2fsck -f /dev/vgdata/lvdata<br />
# resize2fs /dev/vgdata/lvdata<br />
# e2fsck -f /dev/vgdata/lvdata<br />
# mount -a</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Increasing(online)::<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Scenario:<br />
-We would like to increase /add in another 5GB to /dev/vgdata/lvdata</p>
<p>lvextend -L +5G /dev/vgdata/lvdata<br />
resize2fs /dev/vgdata/lvdata</p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=112</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log all DNS queries to my DNS server</title>
		<link>http://digitaljournal.sg/wp/?p=81</link>
		<comments>http://digitaljournal.sg/wp/?p=81#comments</comments>
		<pubDate>Mon, 01 Oct 2012 08:30:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[bind dns queries]]></category>
		<category><![CDATA[bind query log]]></category>
		<category><![CDATA[rndc querylog]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=81</guid>
		<description><![CDATA[We can log all the  DNS queries , type this single command (as root) on your DNS server (Bind) &#8212;&#8212;&#8212;&#8212;- rndc querylog &#8212;&#8212;&#8212;&#8212;- once this done, all DNS queries will be logged in /var/log/messages, the results will be similar to Oct 24 03:01:43 ns1 named[30660]: client 200.23.242.196#35545: query: parentsascoaches.net IN MX Oct 24 03:01:43 ns1 [...]]]></description>
			<content:encoded><![CDATA[<p>We can log all the  DNS queries , type this single command (as root) on your DNS server (Bind)<br />
&#8212;&#8212;&#8212;&#8212;-<br />
<strong>rndc querylog</strong><br />
&#8212;&#8212;&#8212;&#8212;-<br />
once this done, all DNS queries will be logged in /var/log/messages, the results will be similar to</p>
<p>Oct 24 03:01:43 ns1 named[30660]: client 200.23.242.196#35545: query: parentsascoaches.net IN MX<br />
Oct 24 03:01:43 ns1 named[30660]: client 80.86.96.1#58395: query: mx1.clients.netdns.net IN A<br />
Oct 24 03:01:43 ns1 named[30660]: client 195.175.39.118#60651: query: abs-pos.com IN MX</p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=81</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to change mysql parameter without restart mysql?</title>
		<link>http://digitaljournal.sg/wp/?p=47</link>
		<comments>http://digitaljournal.sg/wp/?p=47#comments</comments>
		<pubDate>Thu, 27 Sep 2012 10:27:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[change mysql parameter]]></category>
		<category><![CDATA[change mysql parameter without restarting mysqld]]></category>
		<category><![CDATA[no need to restart mysqld after changed parameter]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=47</guid>
		<description><![CDATA[Try these single and simple command from your mysql cli, to change mysql global parameter on the fly (it&#8217;s means no need to restart the service) mysql&#62; set global max_connections=400; you can check the results using this command mysql&#62; show global variables; always be reminded that parameter has been setup using above command will be [...]]]></description>
			<content:encoded><![CDATA[<p>Try these single and simple command from your mysql cli, to change mysql global parameter on the fly (it&#8217;s means no need to restart the service)</p>
<p><em><strong>mysql&gt; set global max_connections=400;</strong></em></p>
<p>you can check the results using this command</p>
<p><em><strong>mysql&gt; show global variables;</strong></em></p>
<p>always be reminded that parameter has been setup using above command will be not persist across restart, you need to put the parameter in /etc/my.cnf so the changes will persist across reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=47</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>compex wlu54G [finally] on centos 5.2</title>
		<link>http://digitaljournal.sg/wp/?p=45</link>
		<comments>http://digitaljournal.sg/wp/?p=45#comments</comments>
		<pubDate>Thu, 27 Sep 2012 10:25:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[compex wlu54g on centos]]></category>
		<category><![CDATA[wlu54G linux kernel module]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=45</guid>
		<description><![CDATA[i got that usb wifi adapter from my sis few months back, thanks sis , but i was figured it out how to make it works on my machine running centos 5.2, it&#8217;s working fine with windows based os Hmmmmm&#8230;from lsusb i got , it&#8217;s a &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Bus 001 Device 002: ID 148f:2570 Ralink Technology, [...]]]></description>
			<content:encoded><![CDATA[<p>i got that usb wifi adapter from my sis few months back, thanks sis <img src='http://digitaljournal.sg/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , but i was figured it out how to make it works on my machine running centos 5.2, it&#8217;s working fine with windows based os Hmmmmm&#8230;from lsusb i got , it&#8217;s a</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Bus 001 Device 002: ID 148f:2570 Ralink Technology, Corp. 802.11g WiFi<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 0 (Defined at Interface level)<br />
bDeviceSubClass 0<br />
bDeviceProtocol 0<br />
bMaxPacketSize0 64<br />
idVendor 0x148f Ralink Technology, Corp.<br />
idProduct 0&#215;2570 802.11g WiFi<br />
bcdDevice 0.01<br />
iManufacturer 1 Ralink<br />
iProduct 2 802.11g WLAN<br />
iSerial 0<br />
bNumConfigurations 1<br />
<output omitted=""><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
i knew that centos has rt2500usb module build in as module in the kernel itself and it&#8217;s loaded automatically when booting up, but the strange thing i cannot associate with any ap that is working fine with other wifi adapter, i thought there must be something wrong with the kernel, because i&#8217;m using a non usual kernel on my machine , it&#8217;s a &#8220;2.6.18-128.1.1.el5.028stab062.3PAE&#8221; , it&#8217;s a openvz kernel , but it was gave the same results when i boot up with standard kernel</output></p>
<p>wlan0: authentication with AP xx:xx:xx:xx:xx:xx timed out<br />
and<br />
something like cannot associate to the AP itself</p>
<p>had several times googling and here are the solutions, quite simple solutions in fact<br />
-)download the new driver, looks like there are some incompatibility/bugs with the current driver,<br />
drivers are downloadable through http://www.ralinktech.com/ralink/Home/Support/Linux.html<br />
and compile it<br />
-)prevents current driver being activated during booting, just simply put the module into /etc/modprobe.d/blacklist, it should be something like this<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
blacklist rt2500usb<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
-)<em><strong>#reboot</strong></em><br />
-)check the module whether the new module/driver brought up after rebooted<br />
rt2570 163712 0<br />
-)check if there any new interface appearing after executed ifconfig -a<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>rausb0 Link encap:Ethernet HWaddr 00:00:00:00:00:00<br />
BROADCAST MULTICAST MTU:1500 Metric:1<br />
RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
wala!!!, all seems to be working perfectly , after it&#8217;s can associated with the AP , and got the ip address by using dhclient</p>
<p>Reference:</p>
<p>http://harusharris.blogspot.sg/2009/08/compex-wlu54g-finally-on-centos-52.html</p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=45</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot your Linux Machine automatically after a kernel panic</title>
		<link>http://digitaljournal.sg/wp/?p=42</link>
		<comments>http://digitaljournal.sg/wp/?p=42#comments</comments>
		<pubDate>Thu, 27 Sep 2012 10:05:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips&Info]]></category>
		<category><![CDATA[kernel panic]]></category>
		<category><![CDATA[linux kernel panic]]></category>
		<category><![CDATA[reboot linux automatically after a kernel panic]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=42</guid>
		<description><![CDATA[Someday and somehow your Linux machine stuck and when you consoling that machine, there is kernel panic message appears on the screen, here&#8217;s little tips , by default the kernel will not reboot after a panic , but this option will cause a kernel reboot after &#8216;N&#8217; seconds Tools required: -)Linux OS running on your [...]]]></description>
			<content:encoded><![CDATA[<p>Someday and somehow your Linux machine stuck and when you consoling that machine, there is kernel panic message appears on the screen, here&#8217;s little tips , by default the kernel will not reboot after a panic , but this option will cause a kernel reboot after &#8216;N&#8217; seconds</p>
<p>Tools required:<br />
-)Linux OS running on your Server/Computer/Notebook with root access<br />
-)5 minutes of less</p>
<p>-)Open your /etc/sysctl.conf file<br />
-)Add this line<br />
<em>kernel.panic = 10</em><br />
-)Save your /etc/sysctl.conf file, you can either reboot your machine or execute this command to reload sysctl to your kernel<br />
<em><strong>sysctl -p</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=42</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kernel panic an Virtuozzo4</title>
		<link>http://digitaljournal.sg/wp/?p=36</link>
		<comments>http://digitaljournal.sg/wp/?p=36#comments</comments>
		<pubDate>Thu, 27 Sep 2012 09:52:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[kernel panic and virtuozzo]]></category>
		<category><![CDATA[kernel panic and virtuozzo4]]></category>
		<category><![CDATA[kernel panic on virtuozzo 4]]></category>
		<category><![CDATA[software raid causing kernel panic]]></category>

		<guid isPermaLink="false">http://digitaljournal.sg/wp/?p=36</guid>
		<description><![CDATA[On 10 Oct 2009, early morning , one of our server was not accessible while our monitoring system keeps altering us, looks like there was something gone wrong happening, yup i was right, called up DC guy and asked them to console in that server, they saw Kernel panic messages on console, yuck&#8230;., this server [...]]]></description>
			<content:encoded><![CDATA[<p>On 10 Oct 2009, early morning , one of our server was not accessible while our monitoring system keeps altering us, looks like there was something gone wrong happening, yup i was right, called up DC guy and asked them to console in that server, they saw Kernel panic messages on console, yuck&#8230;., this server is used to hosts abaout 20 VPSes, hence because of this all off those VPS were also inaccessible , nothing we can do except do hard reboot, and asked DC guy to do so, and few minutes later, that server was back to reality from it&#8217;s deep coma, but when sshed to server, i found server&#8217;s load was about 20 , ALAMAK!!!!, &#8220;calm dawn &#8230;&#8221;, i tried to encouraging myself several times</p>
<p>i found that the software RAID that we are using on that server, was being resynchronizing between all disks in that RAID array, and it&#8217; was very very super duper slow, it&#8217;s only about 4.5KB/Sec!!!! yuck&#8230; , and tried to bring up one of VPS hosted on that server, it was always gives me &#8220;cannot lock VE&#8221; , there was no other options , i need turned off automatic startup for that virtuozzo service when server booting up</p>
<p><em><strong>#chkconfig &#8211;level 345 vz off</strong></em></p>
<p>and initiated &#8220;shutdown -r now&#8221; , not worked, damn!!&#8230;. tried &#8220;shutdown -r -f -n now&#8221; also gave me that the server is shutting down, wait for 3 minutes&#8230;., 10 minutes&#8230;., 25 minutes&#8230;. yuck, enough .. called up data center and ask them to repeat hard reboot sequence , and after rebooted, sshed to server, check for RAID synchronization ,using <em>more /proc/mdstat</em></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Personalities : [raid1]<br />
md0 : active raid1 sdb2[1] sda2[0]<br />
4192896 blocks [2/2] [UU]</p>
<p>md2 : active raid1 sdb3[1] sda3[0]<br />
479998016 blocks [2/2] [UU]<br />
[&gt;....................] resync = 0.7% (3745728/479998016) finish=139.4min speed=56924K/sec</p>
<p>md1 : active raid1 sdb1[1] sda1[0]<br />
4192832 blocks [2/2] [UU]</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Hmmmm&#8230; much much better&#8230;.after RAID synchronization completed, bring up VZ service and all VPSes back up for serving their &#8220;Masters&#8221; fiuuuh&#8230;.</p>
<p>unfortunately it was not solved the problem completely, some of customers that have access to VZ/Power Control Panel , complained that they had problem accessing Plesk Control Panel (8443), login successful but they were always got this error message,</p>
<p>&#8220;Plesk is not allowed&#8221;</p>
<p>quick investigations found that this only affected to customer that using Virtuozzo offline management, by turning this offline management off, there is no issue accessing Plesk Control Panel, but they will lose capability to reboot,shutdown VPS remotely from VZ/Power Control Panel, these are some step by step in how to rectify the issue,</p>
<p>check Vzagagent status and restart it</p>
<p><em><strong>#vzagent_ctl status</strong></em></p>
<p>the results should be similar like this</p>
<p>vzagent (pid 28742 21104 20602 12985 12980 11195 11071 10749 10571 10375 10374 9214 9213 9206 9205 9203 9201 9200 9199 9198 9189 9185 9184 9182 9181 9180 9179 9178 9177 9176 9175 9174 9173 9172 9171 9170 9169 9168 9167 9166 9165 9164 9163 9162 9161 9160 9159 9158 9156 9155 9154 9153 9152 9151 7146 2461) is running&#8230;</p>
<p>and try to restart it</p>
<p><em><strong>#vzagent_ctl restart</strong></em></p>
<p>and if this also does not solve the problem with offline management still active, just try to restart Service Container,</p>
<p><em><strong>#vzctl restart 1</strong></em></p>
<p>otherwise you need to reinstall Service Container (VE 1), fortunately in my case , no need to reinstall that Service Container <img src='http://digitaljournal.sg/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>References:</p>
<p>http://forum.parallels.com/showthread.php?t=84022</p>
<p>http://kb.parallels.com/en/659</p>
]]></content:encoded>
			<wfw:commentRss>http://digitaljournal.sg/wp/?feed=rss2&#038;p=36</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
