<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>random things</title>
	
	<link>http://random.kakaopor.hu</link>
	<description />
	<lastBuildDate>Mon, 12 Dec 2011 13:28:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kakaopor/random" /><feedburner:info uri="kakaopor/random" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Disabling logout window in Gnome on ctrl-alt-delete (on Ubunu and Debian Linux for example)</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/quixu7vtWmg/disabling-logout-window-in-gnome-on-ctrl-alt-delete-on-ubunu-and-debian-linux-for-example</link>
		<comments>http://random.kakaopor.hu/disabling-logout-window-in-gnome-on-ctrl-alt-delete-on-ubunu-and-debian-linux-for-example#comments</comments>
		<pubDate>Mon, 12 Dec 2011 13:28:56 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=236</guid>
		<description><![CDATA[
It was quite annoying every time I hit ctrl-alt-del in Gnome, the Logout window appeared &#8211; instead giving the combination to the active window (virtual machines, VNC, Remote Desktop connections, etc.).


Gladly this is just another global shortcut like any other ones (alt-F1 for menu, for example), therefore it can be disabled the same way: System [...]]]></description>
			<content:encoded><![CDATA[<p>
It was quite annoying every time I hit ctrl-alt-del in Gnome, the Logout window appeared &#8211; instead giving the combination to the active window (virtual machines, VNC, Remote Desktop connections, etc.).
</p>
<p>
Gladly this is just another global shortcut like any other ones (alt-F1 for menu, for example), therefore it can be disabled the same way: <b>System</b> menu &raquo; <b>Preferences</b> &raquo; <b>Keyboard Shortcuts</b>, in the window you can find under <b>Desktop</b> &raquo; <b>Log out</b>. Click on it, and disable it with a backspace.
</p>
<p>
Successfully got rid of an annoyance &#8211; &#8220;great success!&#8221; as my colleague said :)</p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/quixu7vtWmg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/disabling-logout-window-in-gnome-on-ctrl-alt-delete-on-ubunu-and-debian-linux-for-example/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/disabling-logout-window-in-gnome-on-ctrl-alt-delete-on-ubunu-and-debian-linux-for-example</feedburner:origLink></item>
		<item>
		<title>Getting file age in a simple way</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/OlsFU1wYYqE/getting-file-age-in-a-simple-way</link>
		<comments>http://random.kakaopor.hu/getting-file-age-in-a-simple-way#comments</comments>
		<pubDate>Fri, 09 Dec 2011 10:23:55 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=221</guid>
		<description><![CDATA[
I just needed a way to detect regularly if a file has been changed recently. The solution I came up with was this:

now=`date +%s`
mtime=`stat -c %Z /some/file`
if [ $((now - mtime)) -gt 3600 ]; then
&#160;&#160;&#160;&#160;echo "xy seems to be out-of-date."
fi

This checks the current time and the modification time of the file, calculates the difference and [...]]]></description>
			<content:encoded><![CDATA[<p>
I just needed a way to detect regularly if a file has been changed recently. The solution I came up with was this:
</p>
<p><code>now=`date +%s`<br />
mtime=`stat -c %Z /some/file`<br />
if [ $((now - mtime)) -gt 3600 ]; then<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo "xy seems to be out-of-date."<br />
fi</code></p>
<p>
This checks the current time and the modification time of the file, calculates the difference and checks if that&#8217;s greater than 3600 seconds (1 hour), then echoes something if it is greater.
</p>
<p>
This can be written in a more simplest way:
</p>
<p><code>[ $((`date +%s` - `stat -c %Z /some/file`)) -gt 3600 ] &#038;&#038; \<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo "xy seems to be out-of-date."</code></p>
<p>
This way you can easily put it in cron, like this, so it is checked twice a day:
</p>
<p><code>0 9,21 * * * user [ $((`date +\%s` - `stat -c \%Z /some/file`)) -gt 3600 ] &#038;&#038; \<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo "xy seems to be out-of-date."</code></p>
<p>
You can remove the <b>&#8220;\&#8221; at the end of the lines</b> and write the commands in one line. BUT the <b>&#8220;\&#8221;</b>s before the <b>&#8220;%&#8221;</b> have to be there to maintain proper escaping!
</pre>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/OlsFU1wYYqE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/getting-file-age-in-a-simple-way/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/getting-file-age-in-a-simple-way</feedburner:origLink></item>
		<item>
		<title>Lunar date() function for PHP</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/2rqvhMAuQ_I/lunar-date-function-for-php-time-on-the-moon-lst</link>
		<comments>http://random.kakaopor.hu/lunar-date-function-for-php-time-on-the-moon-lst#comments</comments>
		<pubDate>Mon, 28 Feb 2011 23:35:39 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=195</guid>
		<description><![CDATA[
What is the time on the Moon?


A few guys leading a project called LunarClock.org designed a Lunar date and time system, the Lunar Standard Time (LST).


It is a really simple method of the time tracking on the Moon (theoretically of course, as no one lives there &#8211; yet ;)). It based on the good old [...]]]></description>
			<content:encoded><![CDATA[<p>
What is the time on the Moon?
</p>
<p>
A few guys leading a project called <a href="http://lunarclock.org">LunarClock.org</a> designed a Lunar date and time system, the Lunar Standard Time (LST).
</p>
<p>
It is a really simple method of the time tracking on the Moon (theoretically of course, as no one lives there &#8211; <em>yet ;)</em>). It based on the good old scheme of the &#8220;Earth time&#8221;: it has seconds, minutes, hours, <em>cycles</em>, days and years. The only unfamiliar thing is the cycles thing between the hours and days (and the lack of the months). It is necessary in case we stick to the definition of the day: the time between two noons. On the moon it is a really long period, it lasts for about 29.53 days on Earth! It would be a bit strange to say <em>&#8220;it is half past 143&#8243;</em>, so they introduced the cycles. And because the days are so long, 365.25 (or so) of them would be&#8230; a lot of days on Earth, therefore the months are dismissed and the Lunar years are simply 12 Lunar days long &#8211; about 354.36 Earth days. This is so close to our 365.25 days per year!
</p>
<p>
Another interesting thing is the days on Moon have names just as our months. They named the twelve days after <a href="http://en.wikipedia.org/wiki/List_of_Apollo_astronauts#Apollo_astronauts_who_walked_on_the_Moon">the twelve men who walked on the Moon</a> during <a href="http://en.wikipedia.org/wiki/Apollo_program">the Apollo missions</a>. I think this is a nice idea.
</p>
<p>
Well okay, enough of the chit-chat, here is a demo of the PHP class I mentioned in the title:
</p>
<p style="text-align: center;"><strong>The current time on the Moon is 44-09-11 ∇ 14:06:54, Young.</strong></p>
<p>
So this is the current time <em>on the Moon</em>, so far from here, so great differences between the days, but still very familiar.
</p>
<p>
Great job guys from LunarClock.org, I like LST!
</p>
<p>
You can download the PHP function (which can be used almost exactly as the original date() function) from here: <a href="http://dev.kakaopor.hu/stuffs/lunar_date.php.txt">http://dev.kakaopor.hu/stuffs/lunar_date.php.txt</a> (can be freely used/redistributed/modified/etc. of course)<br/><br />
For more about the LST, Lunar Standard Time, see: <a href="http://lunarclock.org/">http://lunarclock.org/</a></p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/2rqvhMAuQ_I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/lunar-date-function-for-php-time-on-the-moon-lst/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/lunar-date-function-for-php-time-on-the-moon-lst</feedburner:origLink></item>
		<item>
		<title>SSH connection timeout, frozen terminal</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/z151-1tk3DQ/ssh-connection-timeout-frozen-terminal</link>
		<comments>http://random.kakaopor.hu/ssh-connection-timeout-frozen-terminal#comments</comments>
		<pubDate>Sat, 13 Nov 2010 23:28:59 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=186</guid>
		<description><![CDATA[
I&#8217;ve just found accidentally a solution for a very rare (at least I&#8217;ve seen it only a few times), but rather annoying SSH client issue (bug?). Sometimes when the SSH connection times out OR after a clean exit from the remote shell, the SSH connection hangs and the terminal remains virtually between the remote and [...]]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;ve just found accidentally a solution for a very rare (at least I&#8217;ve seen it only a few times), but rather annoying SSH client issue (bug?). Sometimes when the SSH connection times out OR after a clean exit from the remote shell, the SSH connection hangs and the terminal remains virtually between the remote and local machine. You&#8217;re unable to do anything on the remote machine as the disconnection is in progress, but you cannot do anything on your local machine yet as the SSH client is still runnig.
</p>
<p>
The solution for this is an SSH escape sequence, the sequence of the enter, tilde and period keys (so you should press enter and then &#8220;~&#8221; followed by &#8220;.&#8221;). This forces the SSH connection to close so your client should exit.
</p>
<p>
Source: <a href="http://superuser.com/questions/98562/way-to-avoid-ssh-connection-timeout-freezing-of-terminal-tab">Way to avoid ssh connection timeout &#038; freezing of terminal tab</a> question on <a href="http://superuser.com/">superuser.com</a>.</p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/z151-1tk3DQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/ssh-connection-timeout-frozen-terminal/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/ssh-connection-timeout-frozen-terminal</feedburner:origLink></item>
		<item>
		<title>Hot-swapping non-hot-swap SATA disks on Linux</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/AKYYusq27aw/hot-swapping-non-hot-swap-disks-on-debian-linux</link>
		<comments>http://random.kakaopor.hu/hot-swapping-non-hot-swap-disks-on-debian-linux#comments</comments>
		<pubDate>Wed, 04 Aug 2010 18:06:46 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hot-swap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sata]]></category>
		<category><![CDATA[scsi]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=158</guid>
		<description><![CDATA[
Once I had a project where I needed to swap two SATA disks every week. Shutting down, swapping, and booting up again took a lot of time, and &#8211; to be honest &#8211; was a bit uncomfortable, so I thought I will try to make the change a little bit hot.


My disks and motherboard AFAIK [...]]]></description>
			<content:encoded><![CDATA[<p>
Once I had a project where I needed to swap two SATA disks every week. Shutting down, swapping, and booting up again took a lot of time, and &#8211; to be honest &#8211; was a bit uncomfortable, so I thought I will try to make the change a little bit <i>hot</i>.
</p>
<p>
My disks and motherboard AFAIK were not hot-swap-compatible, but with some SCSI/SATA commands I was able to have a behavior very similar to that.
</p>
<p><span id="more-158"></span></p>
<p>
The first part of hot-swapping of course is the hardware &#8211; I used mobile racks for this purpose (something like <a href="http://satapower.com/html/sata-mobile-rack-4.jpg">this</a>, but with a separate power switch), but you can simply unplug/plug your disks as well in case you are brave enough to do so. I think the mobile rack is far more safe (I have seen dead hard drives because of an improperly connected power connector).
</p>
<p>
The magic behind the hot-swapping is basically two SCSI commands: <i><b>remove-single-device</b></i> and <i><b>add-single-device</b></i>. With these you are able to tell the SCSI driver to release and to grab the disks again.
</p>
<p>
Be sure to unmount and to have the drive absolutely unused when you tell the driver to release the devices &#8211; it will not check if the drives are in use or not and your kernel may get confused about the disappearing drives. (Believe me, I tried :)
</p>
<p>
One more thing you need to know before using those commands: the host, channel, ID, LUN numbers of your drives. You can find these numbers easily, simply <i>cat /proc/scsi/scsi</i>, or <i>ls /dev/disks/by-path/*</i>.
</p>
<p>
Okay, enough of chattering, here is the Bash script (assuming you have a proper fstab entry for <i>/mnt/swaptest</i>, and the SCSI id of <i>0:0:1:0</i>):
</p>
<p><code><br />
# unmount the file system<br />
umount /mnt/swaptest || exit 1</p>
<p># synchronize the remaining data to the disk if any (this will<br />
# flush the cache on all disks! we might not need this as the<br />
# umount should sync, but it will never hurt)<br />
sync</p>
<p># give time for sync to finish<br />
sleep 5</p>
<p># remove specific host, channel, ID, LUN (this is the magic)<br />
echo "scsi remove-single-device 0 0 1 0" > /proc/scsi/scsi</p>
<p># give a little time for the driver to do its job<br />
sleep 5</p>
<p>echo "Please change disks and press enter."<br />
read tmp</p>
<p># wait a bit to get the drive initialized<br />
sleep 15</p>
<p># and here comes the new disk:<br />
echo "scsi add-single-device 0 0 1 0" >> /proc/scsi/scsi</p>
<p># give a little time for the driver, udev, ...<br />
sleep 15</p>
<p>mount /mnt/swaptest || exit 2</p>
<p>echo "Swap was succesful."<br />
</code></p>
<p>
Basically that&#8217;s all.
</p>
<p>
You might use mdadm to have a RAID-1 array, and have a copy of your system in a safe place, you can handle this easily as well:<br />
<code><br />
# mark the disk as faulty for further remove from the array<br />
mdadm /dev/md0 --fail /dev/sdb1</p>
<p># sleep a bit - sometimes mdadm might need it...<br />
sleep 5</p>
<p># remove the disk from the array<br />
mdadm /dev/md0 --remove /dev/sdb1</p>
<p># synchronize the remaining data to the disk if any<br />
# (this will flush cache on all disks!)<br />
sync</p>
<p># give time for sync to finish<br />
sleep 5</p>
<p># remove specific host,channel,ID,LUN (this is the magic)<br />
echo "scsi remove-single-device 0 0 1 0" > /proc/scsi/scsi</p>
<p># give a little time for the driver to do its job<br />
sleep 5</p>
<p>echo "Please change disks and press enter."<br />
read tmp</p>
<p># wait a bit to get the drive initialized<br />
sleep 15</p>
<p># and here comes the new disk:<br />
echo "scsi add-single-device 0 0 1 0" >> /proc/scsi/scsi</p>
<p># sleep a bit, to give a little time for the driver, udev, ...<br />
sleep 15</p>
<p>mdadm /dev/md0 --add /dev/sdb1 || exit 2</p>
<p>echo "Swap was succesful."<br />
</code></p>
<p>
Of course these swaps can become more complex, using more disks, more RAID arrays, LVM volumes, but these are the basics &#8211; I assume you can figure out the rest :)
</p>
<p>
Oh, and the disclaimer: always have a backup of your data before trying these steps/commands, and I have read not all the drives are capable of doing such things, I personally do not think this can lead to hardware failure but I cannot be certain about it. <b>Please try anything at your own risk.</b></p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/AKYYusq27aw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/hot-swapping-non-hot-swap-disks-on-debian-linux/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/hot-swapping-non-hot-swap-disks-on-debian-linux</feedburner:origLink></item>
		<item>
		<title>Asus Eee 1101HA hangs</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/8EVVZ1TPaq0/asus-eee-1101ha-hangs</link>
		<comments>http://random.kakaopor.hu/asus-eee-1101ha-hangs#comments</comments>
		<pubDate>Fri, 16 Apr 2010 09:50:32 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[eee]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[noapic]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=153</guid>
		<description><![CDATA[
I have just bought an Asus Eee 1101HA and (after compiling a custom kernel with the correct drivers) it is working almost perfectly. Sometimes the whole system just hung and after a keypress the hung had gone and it was OK for a while until the next hang&#8230;


This had been happening in console and under [...]]]></description>
			<content:encoded><![CDATA[<p>
I have just bought an Asus Eee 1101HA and (after compiling a custom kernel with the correct drivers) it is working almost perfectly. Sometimes the whole system just hung and after a keypress the hung had gone and it was OK for a while until the next hang&#8230;
</p>
<p>
This had been happening in console and under X too. I thought it might be a kernel-related issue, some kind of a timer or interrupt problem, maybe timeout.
</p>
<p>
All in all this turned out to be an APIC problem, and the machine is working perfectly with a <b>noapic</b> boot parameter.</p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/8EVVZ1TPaq0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/asus-eee-1101ha-hangs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/asus-eee-1101ha-hangs</feedburner:origLink></item>
		<item>
		<title>LVM boot issue on Debian Linux with initramfs-tools</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/oZ7hIP5Q6ag/lvm-boot-issue-on-debian-linux-with-initramfs-tools</link>
		<comments>http://random.kakaopor.hu/lvm-boot-issue-on-debian-linux-with-initramfs-tools#comments</comments>
		<pubDate>Thu, 11 Feb 2010 08:53:15 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=138</guid>
		<description><![CDATA[
Although the format /dev/[vg_name]/[lv_name] format is easier to read when you got plenty of VGs (compared to /dev/mapper/[vg_name]-[lv_name]), it won&#8217;t work at boot.


This is the few lines of default initramfs script which is responsible for the behaviour described above:
/usr/share/initramfs-tools/scripts/local-top, from line 40:

# Make sure that we have a d-m path
vg=${vg#/dev/mapper/}
if [ "$vg" = "$1" ]; [...]]]></description>
			<content:encoded><![CDATA[<p>
Although the format <b>/dev/[vg_name]/[lv_name]</b> format is easier to read when you got plenty of VGs (compared to <b>/dev/mapper/[vg_name]-[lv_name]</b>), it won&#8217;t work at boot.
</p>
<p>
This is the few lines of default initramfs script which is responsible for the behaviour described above:<br/><br />
<b>/usr/share/initramfs-tools/scripts/local-top</b>, from line <b>40</b>:
</p>
<p><code># Make sure that we have a d-m path<br />
vg=${vg#/dev/mapper/}<br />
if [ "$vg" = "$1" ]; then<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 1<br />
fi<br />
</code></p>
<p>
And it wouldn&#8217;t be enough to remove this check, because there is an another one for the format:
</p>
<p><code># Make sure that the device includes at least one dash<br />
if [ "$(echo -n "$vg" | tr -d -)" = "$vg" ]; then<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 1<br />
fi<br />
</code></p>
<p>
So you have to use the <b>/dev/mapper/[vg_name]-[lv_name]</b> format in GRUB&#8217;s menu.lst (or LILO&#8217;s lilo.conf) to boot from an LVM device. Unless you change the script above, of course :)</p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/oZ7hIP5Q6ag" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/lvm-boot-issue-on-debian-linux-with-initramfs-tools/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/lvm-boot-issue-on-debian-linux-with-initramfs-tools</feedburner:origLink></item>
		<item>
		<title>5853:0001 XEN device</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/mqtATRlDBOM/5853-0001-xen-device</link>
		<comments>http://random.kakaopor.hu/5853-0001-xen-device#comments</comments>
		<pubDate>Fri, 22 Jan 2010 08:36:44 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=132</guid>
		<description><![CDATA[
5853:0001 is a XEN HVM virtual SCSI adapter.


Source: https://code.ticketmaster.com/trac/browser/spine/trunk/lib/Spine/Plugin/SystemInfo.pm?rev=123#L225
]]></description>
			<content:encoded><![CDATA[<p>
5853:0001 is a XEN HVM virtual SCSI adapter.
</p>
<p>
Source: <a href="https://code.ticketmaster.com/trac/browser/spine/trunk/lib/Spine/Plugin/SystemInfo.pm?rev=123#L225">https://code.ticketmaster.com/trac/browser/spine/trunk/lib/Spine/Plugin/SystemInfo.pm?rev=123#L225</a></p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/mqtATRlDBOM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/5853-0001-xen-device/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/5853-0001-xen-device</feedburner:origLink></item>
		<item>
		<title>ORA-19502, ORA-27072 during RMAN restore (Oracle)</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/8b2bHvOs8YE/ora-19502-ora-27072-during-rman-restore-oracle</link>
		<comments>http://random.kakaopor.hu/ora-19502-ora-27072-during-rman-restore-oracle#comments</comments>
		<pubDate>Tue, 12 Jan 2010 21:34:24 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=121</guid>
		<description><![CDATA[
I was trying to load database from an RMAN backup (duplicate database until &#8230;), and the restore process died after some time, and gave me the following error messages (I have tried it several times, with different backups, these repeated randomly):


ORA-19502: write error on file "/path/to/datafile.dbf", blockno 1669073 (blocksize=8192)
ORA-27072: File I/O error
Linux Error: 2: No [...]]]></description>
			<content:encoded><![CDATA[<p>
I was trying to load database from an RMAN backup <i>(duplicate database until &#8230;)</i>, and the restore process died after some time, and gave me the following error messages (I have tried it several times, with different backups, these repeated randomly):
</p>
<p>
<code>ORA-19502: write error on file "/path/to/datafile.dbf", blockno 1669073 (blocksize=8192)<br />
ORA-27072: File I/O error<br />
Linux Error: 2: No such file or directory<br />
</code>
</p>
<p>
<code>ORA-19502: write error on file "/path/to/datafile.dbf", blockno 1831475 (blocksize=8192)<br />
ORA-27072: File I/O error<br />
Linux Error: 13: Permission denied<br />
</code>
</p>
<p>
Long story short, these messages are exotic forms of the boring <b><i>&#8220;Out of disk space&#8221;</i></b> message.
</p>
<p>
And even if you have enough space for the restore, you may need ~+20% spare space. Don&#8217;t know exactly why, but that was needed in my case.
</p>
<p>
Oracle loves disk space and strange messages &#8211; lesson learned.</p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/8b2bHvOs8YE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/ora-19502-ora-27072-during-rman-restore-oracle/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/ora-19502-ora-27072-during-rman-restore-oracle</feedburner:origLink></item>
		<item>
		<title>Bootsplash patch for Linux kernel 2.6.32</title>
		<link>http://feedproxy.google.com/~r/kakaopor/random/~3/n5O9AS1zK7E/bootsplash-patch-for-linux-kernel-2-6-32</link>
		<comments>http://random.kakaopor.hu/bootsplash-patch-for-linux-kernel-2-6-32#comments</comments>
		<pubDate>Sun, 20 Dec 2009 03:56:54 +0000</pubDate>
		<dc:creator>kakaopor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bootsplash]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://random.kakaopor.hu/?p=117</guid>
		<description><![CDATA[
Although the Bootsplash has been superseded by Splashy many of us liked Bootsplash. I was unable to find a patch for 2.6.32, so I made one from the patch for 2.6.30.


http://dev.kakaopor.hu/stuffs/bootsplash-3.1.6a-2.6.32.diff
]]></description>
			<content:encoded><![CDATA[<p>
Although the <a href="http://www.bootsplash.org/">Bootsplash</a> has been superseded by <a href="http://splashy.alioth.debian.org/wiki">Splashy</a> many of us liked Bootsplash. I was unable to find a patch for 2.6.32, so I made one from the patch for 2.6.30.
</p>
<p>
<a href="http://dev.kakaopor.hu/stuffs/bootsplash-3.1.6a-2.6.32.diff">http://dev.kakaopor.hu/stuffs/bootsplash-3.1.6a-2.6.32.diff</a></p>
<img src="http://feeds.feedburner.com/~r/kakaopor/random/~4/n5O9AS1zK7E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://random.kakaopor.hu/bootsplash-patch-for-linux-kernel-2-6-32/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://random.kakaopor.hu/bootsplash-patch-for-linux-kernel-2-6-32</feedburner:origLink></item>
	</channel>
</rss>

