<?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>gHacks technology news &#187; system administration</title>
	<atom:link href="http://www.ghacks.net/tag/system-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 16:29:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Troubleshooting a maxed out Linux hard drive</title>
		<link>http://www.ghacks.net/2009/05/29/troubleshooting-a-maxed-out-linux-hard-drive/</link>
		<comments>http://www.ghacks.net/2009/05/29/troubleshooting-a-maxed-out-linux-hard-drive/#comments</comments>
		<pubDate>Fri, 29 May 2009 18:18:48 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[file searching]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=13156</guid>
		<description><![CDATA[Yesterday I sat down at my main desktop PC to do some work and, out of nowhere, error message after error message popped up informing me the hard drive was at 100% capacity which meant the operating system had no room to write to. This baffled me as I was 100% sure there should have [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I sat down at my main desktop PC to do some work and, out of nowhere, error message after error message popped up informing me the hard drive was at 100% capacity which meant the operating system had no room to write to. This baffled me as I was 100% sure there should have been over 60 gigs of space available. My first inclination was to search for larger files that might have grown out of hand &#8211; torrents especially.</p>
<p>After much searching I saw nothing. I even started at the / directory and was coming up with nothing. So naturally I went right to the log files. Believe it or not, it was not in the log files that I discovered where the problem was. Of course I thought I should share this experience with ghacks in order to illustrate how troubleshooting a Linux machine can go.</p>
<p><span id="more-13156"></span>After the futile manual file search for files I went to the logs. The first log I went to (which is the first log I always turn to) <em>dmesg </em>which prints the message buffer from the kernel. To view this you just type <em>dmesg</em> at the terminal window. This was my first strike as the kernel buffer knew nothing of my capacity drive.</p>
<p>My next step was to head on over to <strong>/var/log</strong> and take a peek around any of the log files that might offer up a clue as to why my hard drive was maxed out. My instincts always take me to <strong>/var/log/messages</strong> first. This particular log file keeps track of general system information regarding boot up, networking. Another strike.</p>
<p>At this point I realized I had to take a break and clear some space because the warnings wouldn&#8217;t stop. I doubled checked to make sure the reports were correct by issuing the command:</p>
<p><em>df -h</em></p>
<p>which confirmed that /dev/sda1 was at 100% usage. I managed to free up a couple of gigs of space by deleting some torrents. The errors went away and I could continue working.</p>
<p>My next step was to check the size of my proxy logs and Dansguardian logs. I had to move both systems over to my main desktop and had a feeling those logs needed to be rotated. I was right, but it didn&#8217;t solve my problem. The tiny prox logs weren&#8217;t huge (by any stretch of the imagination), but they were many. So I deleted the older logs and moved on.</p>
<p>I was running out of log files to check and nothing had given me any idea what was going on.</p>
<p><strong>Search and destroy</strong></p>
<p>It was time to go back to the search method. But instead of using the manual method (how long would it take to weed through the ENTIRE Linux file system &#8211; I didn&#8217;t want to know) I opted to employ a little help thanks to the <em>find</em> command. The <em>find</em> command allows you to add switches to your search to indicate file size. In my case I wanted to first see if there were any files larger than 100 MB in size. To do this I will issue the command:</p>
<p><em>find / -size +1000000k -print0 | xargs -0 ls -l</em></p>
<p>as either root or using <em>sudo</em>. What this command does is tell <em>find</em> to search for files &gt; 1000MB and send them to the standard output (that&#8217;s basically the terminal window), and pipe them to xargs so that you can see the detailed list (using &#8220;-l&#8221; of <em>ls</em>).  Because I was starting at the root directory, I knew this would take some time.</p>
<p>It did. But after some time I discovered five files that were each 12 gigs in size in <em>/var/cache/. </em>These files were from a backup program I was working with and forgot to disable. So once a week my entire <strong>/home </strong>directory was being backed up. I deleted the files (recovering sixty gigs of space) and disabled the backup program. Problem solved.</p>
<p><strong>Final thoughts</strong></p>
<p>There are times when even the best logging system available will not tell you what you need to know. At those times you have to employ your best sluething techniques. Fortunately the Linux operating system encourages these types of administration tricks.</p>

	Tags: <a href="http://www.ghacks.net/tag/file-searching/" title="file searching" rel="tag">file searching</a>, <a href="http://www.ghacks.net/tag/find/" title="find" rel="tag">find</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/system-administration/" title="system administration" rel="tag">system administration</a>, <a href="http://www.ghacks.net/tag/xargs/" title="xargs" rel="tag">xargs</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/06/01/let-catfish-search-for-your-files/" title="Let Catfish search for your files (June 1, 2009)">Let Catfish search for your files</a> (6)</li>
	<li><a href="http://www.ghacks.net/2009/03/24/webmin-one-stop-linux-configuration/" title="Webmin: One Stop Linux Configuration (March 24, 2009)">Webmin: One Stop Linux Configuration</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/02/13/searching-for-files-in-linux-via-command-line/" title="Searching for Files in Linux via Command Line (February 13, 2009)">Searching for Files in Linux via Command Line</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/05/29/troubleshooting-a-maxed-out-linux-hard-drive/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Webmin: One Stop Linux Configuration</title>
		<link>http://www.ghacks.net/2009/03/24/webmin-one-stop-linux-configuration/</link>
		<comments>http://www.ghacks.net/2009/03/24/webmin-one-stop-linux-configuration/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 15:58:32 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[linux administration]]></category>
		<category><![CDATA[linux configuration]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[system configuration]]></category>
		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=11444</guid>
		<description><![CDATA[Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well, we were wrong and linuxconf has pretty much died off. Why did linuxconf [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well, we were wrong and linuxconf has pretty much died off. Why did linuxconf die? Because new tools, such as Webmin? came along.</p>
<p>Webmin arrived on the scene in 1997 and pretty much blew away the competition. Webmin is truly a one-stop shop for Linux configuration. It&#8217;s modular so you can add and remove modules as they are needed. Webmin can configure your system, servers, networking, hardware, clusters, you name it!</p>
<p>Even though Webmin is a web-based utility, it does not require a server to be installed or running. Webmin contains its own built-in server so you will not need Apache running. Webmin does have to be running in order to log in.</p>
<p><span id="more-11444"></span>The easiest way to install Webmin is to open up your Add/Remove Software utility, do a search for webmin, and install it. Or you can go to the <a title="Webmin" href="http://www.webmin.com/" target="_blank">Webmin Site</a>, download the the appropriate binary and let your package manager do the work for you. If you are wanting to install Webmin on a headless server you can do the following:</p>
<ul>
<li>Secure shell to your server</li>
<li>Download the correct installation file using the <em>wget</em> command.</li>
<li>Issue the command to install Webmin (such as rpm -ivh webmind-XXX.rpm (where XXX is the release number)</li>
</ul>
<p>After the installation is complete you may have to start Webmin manually (the rpm installation starts the server for you). To start Webmin you will issue the command:</p>
<p><em>/etc/rc.d/init.d/webmin start</em></p>
<p><em>or</em></p>
<p><em>/etc/init.d/webmin start<br />
</em></p>
<p>Once you have started Webmin you log into it with with your browser by pointing it to:</p>
<p><em>http://IP_OR_DOMAIN:10000</em></p>
<p>Where IP_OR_DOMAIN is the IP address or the domain Webmin is installed on. If you are using it for local configuration you can point your browser to <em>http://localhost:10000</em>.</p>
<div id="attachment_11445" class="wp-caption alignleft" style="width: 309px"><a href="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_main.png"><img class="size-medium wp-image-11445" src="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_main-499x216.png" alt="Webmin Main Page" width="299" height="130" /></a><p class="wp-caption-text">Webmin Main Page</p></div>
<p>As you can see, in the image to the left, the default Webmin page is very easy to navigate.Upon installation one of the first links you should click on this page is the Webmin link in the left navigation. When that menu expands you will see a number of entries, of which one is called Webmin Configuration.</p>
<div id="attachment_11446" class="wp-caption alignright" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_configuratin.png"><img class="size-medium wp-image-11446" src="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_configuratin-500x321.png" alt="The Webmin Configuration Page" width="300" height="193" /></a><p class="wp-caption-text">The Webmin Configuration Page</p></div>
<p>Click on the Webmin Configuration option to reveal a number of possible choices. This section is very important because you will configure access, logging, certificates, categories, and a number of other critical features.</p>
<p>Make sure, however, when you make any changes to Webmin that restart the Webmin server. You can restart Webmin by clicking the Restart Webmin button that is at the bottom of the Webmin Configuration page.</p>
<div id="attachment_11447" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_restart.png"><img class="size-medium wp-image-11447" src="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_restart-500x177.png" alt="Controlling Webmin" width="300" height="106" /></a><p class="wp-caption-text">Controlling Webmin</p></div>
<p>In the same area of the restart button there are a few other important options. If you know you are going to be using Webmin for all of your configuration needs you will want to make sure Webmin starts at boot.</p>
<p>Another important screen to visit, before you jump into various modules, is the Webmin Users screen. In this screen you can define groups and users and their various permissions for the Webmin system. Here you can define what modules a user or group has access to which can be very handy.</p>
<p>Once you get beyond Webmin basic configuration it is time to poke around the various modules. In later articles I will discuss some of the best of the Webmin modules.</p>
<p><strong>Final Thoughts</strong></p>
<p>Webmin is one of the most powerful administration tools available. If you haven&#8217;t experienced the power that is Webmin, install it now and see how much power you can have at your fingertips.</p>

	Tags: <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-administration/" title="linux administration" rel="tag">linux administration</a>, <a href="http://www.ghacks.net/tag/linux-configuration/" title="linux configuration" rel="tag">linux configuration</a>, <a href="http://www.ghacks.net/tag/system-administration/" title="system administration" rel="tag">system administration</a>, <a href="http://www.ghacks.net/tag/system-configuration/" title="system configuration" rel="tag">system configuration</a>, <a href="http://www.ghacks.net/tag/webmin/" title="webmin" rel="tag">webmin</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/05/29/troubleshooting-a-maxed-out-linux-hard-drive/" title="Troubleshooting a maxed out Linux hard drive (May 29, 2009)">Troubleshooting a maxed out Linux hard drive</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/03/27/configure-a-linux-firewall-with-webmin/" title="Configure a Linux Firewall with Webmin (March 27, 2009)">Configure a Linux Firewall with Webmin</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/03/24/webmin-one-stop-linux-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
