<?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>my examined life &#187; linux saves</title>
	<atom:link href="http://www.myexaminedlife.com/index.php/tag/linux-saves/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myexaminedlife.com</link>
	<description>"The Unexamined Life is Not Worth Living" - Socrates</description>
	<lastBuildDate>Thu, 22 Oct 2009 20:16:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rebuilding source rpms</title>
		<link>http://www.myexaminedlife.com/index.php/2008/09/rebuilding-source-rpms/</link>
		<comments>http://www.myexaminedlife.com/index.php/2008/09/rebuilding-source-rpms/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 20:39:15 +0000</pubDate>
		<dc:creator>moorcito</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux saves]]></category>

		<guid isPermaLink="false">http://www.null-o.com/?p=10</guid>
		<description><![CDATA[There are a few Dell servers that I administer at work. these servers are running SLES 9 SP2, but they don't have the Dell hardware management agents installed, so given that these are production servers we won't see any hardware issues until it's too late. But, I couldn't install the management agents because the running [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few Dell servers that I administer at work. these servers are running SLES 9 SP2, but they don't have the Dell hardware management agents installed, so given that these are production servers we won't see any hardware issues until it's too late. But, I couldn't install the management agents because the running kernel is a security update version pushed out by Novell and I need the kernel source files which, of course weren't installed along with the kernel.</p>
<p>The kernel source on the SP2 CD is too old, and the one on the SP3 CD is too new, so for a long while the only way to get the agent installed would be for me to upgrade to SP3 since I couldn't find the source file for the kernel anywhere. This wouldn't be a problem except that upgrading to SP3 would require a reboot to start running the newer kernel, and a reboot means downtime which means scheduling the reboot for the middle of the night, or a Saturday, which happen to be times that I'd rather not be working.</p>
<p>All that changed today, when I came across the source rpm for the running kernel on Novell's website. That gave me the ability to rebuild the source rpm into a binary rpm and install the binary rpm on all the servers running said kernel. Now, I can installed the dell management agents without any downtime, or discomfort to my personal life.</p>
<p>Here is the relevant command:</p>
<p><code>rpmbuild --nodeps --rebuild --clean <em>source.src.rpm</em></code></p>
<p>You can then find the binary rpm in /usr/src/packages/RPMS/ on a SuSE machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myexaminedlife.com/index.php/2008/09/rebuilding-source-rpms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full harddrive</title>
		<link>http://www.myexaminedlife.com/index.php/2008/03/full-harddrive/</link>
		<comments>http://www.myexaminedlife.com/index.php/2008/03/full-harddrive/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 22:13:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[linux saves]]></category>

		<guid isPermaLink="false">http://null-o.com/?p=4</guid>
		<description><![CDATA[A few weeks back, I was just about to walk out the door for the day when I got an alarm message that our website had gone down. After feverishly try to ssh into the sever only to have it hang after I entered my password, I ran to the server room to get to [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks back, I was just about to walk out the door for the day when I got an alarm message that our website had gone down. After feverishly try to ssh into the sever only to have it hang after I entered my password, I ran to the server room to get to the console. Now, the person who I replaced setup these <a href="http://www.novell.com/products/server/">SLES</a> servers to boot into runlevel 5, which means that the console has a nifty graphical login prompt. In my opinion, that's great for a laptop/desktop, but not for a server, especially a production server.</p>
<p>After trying to login only to have it hang, I killed the X session (ctrl-alt-backspace) and noticed a message about /tmp being out of space, and right away I knew that the hard drive had filled up for some reason or another. </p>
<p>But at times like these thank goodness for single user mode. I've never actually had a harddrive fill up on my before, so this was a good learning experience. To boot into single user mode in GRUB you type <code>single</code> at the prompt, and for LILO you type <code>linux single</code>. Then the system boots up, mounts the file system as read-only and you enter the root password. What I didn't know at the time was that the filesystem is mounted read-only, so after a minute of googleing I found this command to remount as read-write: <code>mount -o remount,rw /</code></p>
<p>Once the file system was remounted read-write, all that was left was the trivial task of freeing up enough space to bring up the server and go home. Luckily, I found an old 22GB tar file to delete.</p>
<p>After analysis the next day, I discovered over 90GB of heapdump/javacore files from WebSphere Commerce that was the cause of the hard drive filling up. Apparently, whenever WebSphere runs out of memory or has problems it dumps the contents of memory into a heapdump file on the hard drive, and there were close to 1000 heapdumps at around 120MB a pop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myexaminedlife.com/index.php/2008/03/full-harddrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Searching for large files in linux</title>
		<link>http://www.myexaminedlife.com/index.php/2008/02/large-files/</link>
		<comments>http://www.myexaminedlife.com/index.php/2008/02/large-files/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 23:18:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[linux saves]]></category>

		<guid isPermaLink="false">http://null-o.com/?p=3</guid>
		<description><![CDATA[At work, I recently took over the linux administration of some 30 servers. I've been using linux off and on since 2000, so to be able to do linux admin work in a corporate setting has been quite enjoyable and it's a career path I've been wanting to head down for a long time. There's [...]]]></description>
			<content:encoded><![CDATA[<p>At work, I recently took over the linux administration of some 30 servers. I've been using linux off and on since 2000, so to be able to do linux admin work in a corporate setting has been quite enjoyable and it's a career path I've been wanting to head down for a long time. There's been a little bit of a learning curve, since I'm used to <a href="http://www.slackware.com">Slackware</a> and these servers are running various releases (7,9,10) of <a href="http://www.novell.com/products/server">SuSE Linux Enterprise Server</a>, but all in all it hasn't been too bad.</p>
<p>Currently, we have two machines running under VMware, six Lintel boxes, and about 20 or so servers running under z/VM on our big mainframe. The one thing that I still haven't wrapped my head around is how almost all of the hard disks on the z/VM guests are almost entirely filled up. For example, the other day, the websphere admin came to me and asked why the root partition of the big money making websphere server was 100% full. I wasn't surprised, since this was probably the seventh or eight time in a month that I've run across this.</p>
<p>This prompted me to google a bash script that would search the file system for files bigger than a given value, and since google never does me wrong, I came across this <a href="http://www.jarrodgoddard.com/linux-web-hosting/a-bash-script-to-find-large-files-on-a-linux-server">site</a>.</p>
<p>That was a nifty find, but for some reason the web software Jarrod is using to power his website wouldn't display a much needed \ and the script wouldn't work. That caused me to dig deep into some of my linux reference manuals to get it working, and I decided to improve it a little. This is what I came up with.</p>
<p><code>#!/bin/bash<br />
# if nothing is passed to the script, show usage and exit<br />
[[ -n "$1" &amp;&amp; -n "$2" ]] || { echo "Usage: findlarge [PATHNAME] [SIZE in KB]"; exit 0 ; }<br />
# simple using find, $1 is the first variable passed to the script<br />
find $1 -type f -size +$2k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myexaminedlife.com/index.php/2008/02/large-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
