<?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>totalnetsolutions.net &#187; Linux</title>
	<atom:link href="http://www.totalnetsolutions.net/category/tech/oss/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.totalnetsolutions.net</link>
	<description>totalnetsolutions.net - Complete Networking Solutions for business</description>
	<lastBuildDate>Thu, 26 Jan 2012 04:05:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dynamic MTU in Debian/Ubuntu</title>
		<link>http://www.totalnetsolutions.net/2011/10/05/dynamic-mtu-in-debianubuntu/</link>
		<comments>http://www.totalnetsolutions.net/2011/10/05/dynamic-mtu-in-debianubuntu/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 19:53:00 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/?p=85</guid>
		<description><![CDATA[I know it&#8217;s probably an unusual situation, but in the lab we have Jumbo frames turned on for all the servers and test boxes. It makes a huge difference copying ISOs between hosts, and doing network backups. However, my Kubuntu laptop isn&#8217;t always in the lab network. This means that I almost never remember to [...]]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s probably an unusual situation, but in the lab we have Jumbo frames turned on for all the servers and test boxes.  It makes a huge difference copying ISOs between hosts, and doing network backups.  However, my Kubuntu laptop isn&#8217;t always in the lab network.  This means that I almost never remember to change the MTU when I&#8217;m back in the office, OR I remember in the middle of a transfer, when it&#8217;s already too late to gain the benefits.</p>
<p>So I wrote a little script, and put it in /etc/network/if-up.d/ named &#8220;jumbo-frames.sh&#8221;.  The if-*.d/ structure is designed for exactly this purpose: run a script when an interface comes up.  The basic premise is: If I&#8217;m plugged into a wired network (eth0) in the lab (domain or IP address match certain parameters), then set the MTU to 9000 (jumbo frame support), otherwise assume the network has a normal MTU (1500).  This allows the system to reconfigure on the fly if I put it to sleep and go visit a customer.</p>
<p>Here&#8217;s the code:<br />
<code><br />
#!/bin/sh<br />
# Set support for jumbo frames when at home on wired network, else do not.<br />
# Determine home network based on IP address and DNS-determined name.<br />
# $IFACE should be set by the caller.</p>
<p>PATH=/sbin:/bin:/usr/sbin:/usr/bin</p>
<p>IFC=/sbin/ifconfig<br />
INT="eth0"<br />
MTU=9000<br />
DEFMTU=1500<br />
#name of the DNS domain to assume as "home"<br />
HOMED="totalnetsolutions.net"<br />
#IP Subnet to assume as "home" if DNS test fails<br />
HOMEN="10.0.0."</p>
<p>test -x $IFC || exit 0</p>
<p># Don't make changes to the wireless (wlan) or loopback (lo) interfaces<br />
if [ "$IFACE" != "$INT" ]; then<br />
    exit 0<br />
fi</p>
<p># if dhcpd is still working on writing our resolv.conf, just wait a while (it's a hack, but it works).<br />
test -f /etc/resolv.conf || sleep 15</p>
<p>DOM=`awk '/search/ { print $2 }' /etc/resolv.conf`<br />
NET=`ip addr show dev $IFACE | awk '/inet / { print $2 }' | awk -F. '{ print $1 "." $2 "." $3 "." }'`</p>
<p>if [ "$DOM" = "$HOMED" ]; then<br />
    $IFC $IFACE mtu $MTU<br />
elif [ "$NET" = "$HOMEN" ]; then<br />
    $IFC $IFACE mtu $MTU<br />
else<br />
    $IFC $IFACE mtu $DEFMTU<br />
fi<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2011/10/05/dynamic-mtu-in-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Create a dummy / empty / blank krb5.keytab file</title>
		<link>http://www.totalnetsolutions.net/2011/07/07/howto-create-a-dummy-empty-blank-krb5-keytab-file/</link>
		<comments>http://www.totalnetsolutions.net/2011/07/07/howto-create-a-dummy-empty-blank-krb5-keytab-file/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 03:29:39 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[howto technology linux]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/?p=80</guid>
		<description><![CDATA[We had an issue recently where we needed a dummy krb5.keytab file for an operation prior to creating the real keytab: echo -e "\0005\0002\c" >/etc/krb5.keytab]]></description>
			<content:encoded><![CDATA[<p>We had an issue recently where we needed a dummy krb5.keytab file for an operation prior to creating the real keytab:<br />
<code>echo -e "\0005\0002\c" >/etc/krb5.keytab</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2011/07/07/howto-create-a-dummy-empty-blank-krb5-keytab-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ypcat passwd: No such map passwd.byname. Reason: No such map in server&#8217;s domain</title>
		<link>http://www.totalnetsolutions.net/2011/05/23/ypcat-passwd-no-such-map-passwd-byname-reason-no-such-map-in-servers-domain/</link>
		<comments>http://www.totalnetsolutions.net/2011/05/23/ypcat-passwd-no-such-map-passwd-byname-reason-no-such-map-in-servers-domain/#comments</comments>
		<pubDate>Mon, 23 May 2011 20:19:23 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/?p=78</guid>
		<description><![CDATA[We ran into this bit of fun while setting up a NIS domain for testing in the lab today: rob@rob-kubuntu3:~$ ypcat -d nisdom -h rhel5-64-2 passwd.byname No such map passwd.byname. Reason: No such map in server's domain It turns out this was a problem with the /var/yp/securenets file, but I&#8217;m still not sure what is [...]]]></description>
			<content:encoded><![CDATA[<p>We ran into this bit of fun while setting up a NIS domain for testing in the lab today:<br />
<code>rob@rob-kubuntu3:~$ ypcat -d nisdom -h rhel5-64-2 passwd.byname<br />
No such map passwd.byname. Reason: No such map in server's domain<br />
</code><br />
It turns out this was a problem with the <strong>/var/yp/securenets</strong> file, but I&#8217;m still not sure <strong>what</strong> is wrong.  The man page for ypserv shows:</p>
<blockquote><p>       A sample securenets file might look like this:</p>
<p>              # allow connections from local host &#8212; necessary<br />
              host 127.0.0.1<br />
              # same as 255.255.255.255 127.0.0.1<br />
              #<br />
              # allow connections from any host<br />
              # on the 131.234.223.0 network<br />
              255.255.255.0   131.234.223.0
</p></blockquote>
<p>So we set up our securenets to look like this:</p>
<blockquote><p>
host 127.0.0.1<br />
255.255.255.0 10.10.10.0
</p></blockquote>
<p>And tried to connect to the server:<code><br />
rob@rob-kubuntu3:~$ ip addr show dev wlan0 |grep "inet "<br />
    inet 10.10.10.210/24 brd 10.10.10.255 scope global wlan0<br />
rob@rob-kubuntu3:~$ ypcat -d nisdom -h rhel5-64-2 passwd.byname<br />
No such map passwd.byname. Reason: No such map in server's domain<br />
rob@rob-kubuntu3:~$ ping -c1 rhel5-64-2<br />
PING rhel5-64-2 (10.10.10.213) 56(84) bytes of data.<br />
64 bytes from rhel5-64-2 (10.10.10.213): icmp_req=1 ttl=64 time=0.823 ms</p>
<p>--- rhel5-64-2 ping statistics ---<br />
1 packets transmitted, 1 received, 0% packet loss, time 0ms<br />
rtt min/avg/max/mdev = 0.823/0.823/0.823/0.000 ms</code></p>
<p>Removing the /var/yp/securenets file allowed us access, so it wasn&#8217;t firewall or rpc or portmap issues, to the best I can determine.  Adding &#8220;host 10.10.10.210&#8243; also worked and allowed the client access.  So what&#8217;s wrong with the format / man page?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2011/05/23/ypcat-passwd-no-such-map-passwd-byname-reason-no-such-map-in-servers-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retaining mid-pipeline exit status</title>
		<link>http://www.totalnetsolutions.net/2011/02/10/retaining-mid-pipeline-exit-status/</link>
		<comments>http://www.totalnetsolutions.net/2011/02/10/retaining-mid-pipeline-exit-status/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 18:40:03 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/?p=47</guid>
		<description><![CDATA[I had a Bourne Shell (sh) script I needed to capture the exit status of, but it was being run through “tee” to capture a log file, so “$?” always returned the exit status of “tee”, not the script. In a nutshell, it went something like this: #!/bin/sh DO_LOG=$1 LOGNAME="`hostname`.out" if [ "$DO_LOG" -eq "1" [...]]]></description>
			<content:encoded><![CDATA[<p>I had a Bourne Shell (sh) script I needed to capture the exit status of, but it was being run through “tee” to capture a log file, so “$?” always returned the exit status of “tee”, not the script. In a nutshell, it went something like this:<br />
<code>#!/bin/sh<br />
DO_LOG=$1<br />
LOGNAME="`hostname`.out"<br />
if [ "$DO_LOG" -eq "1" ]; then<br />
# Logging is turned on, so relaunch ourself with logging disabled, and tee the output to the logfile<br />
sh $0 0 | tee $LOGNAME<br />
exit $?<br />
fi<br />
#... Do lots of things in the script<br />
exit $ERRORCODE</code></p>
<p>Now, the important thing here is that the script sets very specific error codes (we have 16 defined) based on different error states, so that a tool like HP Opsware can give us different reports based on the exit status. When run with “0″ for no logging, this works great, but it requires the controlling tool to capture logs, and not all do (especially cheap “for” loops in a shell script.)</p>
<p>But when run with logging enabled, all of the fancy error code handling (45 lines of subroutines’ worth) gets lost, because “$!” is equal to the status code of the “tee” command. Bash scripters out there will say “but what about $PIPESTATUS ?” If we could use bash, the code would be:<br />
<code>#!/bin/sh<br />
DO_LOG=$1<br />
LOGNAME="`hostname`.out"<br />
if [ "$DO_LOG" -eq "1" ]; then<br />
# Logging is turned on, so relaunch ourself with logging disabled, and tee the output to the logfile<br />
sh $0 0 | tee $LOGNAME<br />
exit ${PIPESTATUS[0]}<br />
fi<br />
#... Do lots of things in the script<br />
exit $ERRORCODE</code></p>
<p>(Note the single line change in the conditional exit.)</p>
<p>But, I don’t have the luxury of bash (thanks AIX and FreeBSD and Solaris 8), so we needed to get fancy…<br />
<code>#!/bin/sh<br />
DO_LOG=$1<br />
LOGNAME="`hostname`.out"<br />
if [ "$DO_LOG" -eq "1" ]; then<br />
# Logging is turned on, so relaunch ourself with logging disabled, and tee the output to the logfile<br />
cp /dev/null $LOGNAME<br />
tail -f $LOGNAME &#038;<br />
TAILPID=$!<br />
sh $0 0 >> $LOGNAME 2>&#038;1<br />
RETURNCODE=$?<br />
kill TAILPID<br />
exit $RETURNCODE<br />
fi<br />
#... Do lots of things in the script<br />
exit $ERRORCODE</code></p>
<p>In this last example, we’re creating the empty logfile by copying /dev/null to the logname, then starting a backgrounded “tail” command on the empty file. Because we haven’t disconnected STDOUT in the backgrounding, we will still get the screen output we desire from “tail”. The script now only writes *its* output, with redirected STDOUT and STDERR, to the log file, which is already being tailed to the actual screen. At the end of the script, we capture the true exit code, clean up the tail ugliness, and exit with the desired status code.</p>
<p>This does have a serious downside that if the script encounters and error and exits, the “tail” is left running indefinitely on Linux and Solaris, since the kernel there will simply scavenge the process to be owned by init. So, if you take this method, be very careful to capture all errors you may possibly encounter. Or, just use a better scripting tool. <img src='http://www.totalnetsolutions.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2011/02/10/retaining-mid-pipeline-exit-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn off console beep on Ubuntu 9.04</title>
		<link>http://www.totalnetsolutions.net/2009/05/04/turn-off-console-beep-on-ubuntu-9-04/</link>
		<comments>http://www.totalnetsolutions.net/2009/05/04/turn-off-console-beep-on-ubuntu-9-04/#comments</comments>
		<pubDate>Mon, 04 May 2009 18:53:56 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/?p=54</guid>
		<description><![CDATA[It used to be that you could edit /etc/modprobe.d/blacklist and add “blacklist pcspkr” to turn off the console beeps entirely on Ubuntu / Kubuntu.  As of 9.04, the module is now called “snd_pcsp”. So, to turn off console (not X terminal, but tty) beeps, you can do one of the following: 1) (This is my [...]]]></description>
			<content:encoded><![CDATA[<p>It used to be that you could edit /etc/modprobe.d/blacklist and add  “blacklist pcspkr” to turn off the console beeps entirely on Ubuntu /  Kubuntu.  As of 9.04, the module is now called “snd_pcsp”.</p>
<p>So, to turn off console (not X terminal, but tty) beeps, you can do one of the following:<br />
1) (This is my preference)<br />
<code><br />
echo blacklist snd_pcsp &gt;&gt; /etc/modprobe.d/blacklist.conf<br />
</code></p>
<p>2) (I’ve done this, but it doesn’t affect all software)<br />
<code><br />
for i in 1 2 3 4 5 6<br />
do<br />
setterm -blength 0 &gt; /dev/tty$i<br />
done</code></p>
<p>3) (Only works per shell if ~/.inputrc is included)<br />
<code><br />
echo set bell-style visible &gt;&gt; ~/.inputrc<br />
</code></p>
<p>Enjoy more-sane editing from ttyX in the future!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2009/05/04/turn-off-console-beep-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare Workstation and Ubuntu 8.10</title>
		<link>http://www.totalnetsolutions.net/2009/01/02/vmware-workstation-and-ubuntu-8-10/</link>
		<comments>http://www.totalnetsolutions.net/2009/01/02/vmware-workstation-and-ubuntu-8-10/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 19:04:03 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/?p=57</guid>
		<description><![CDATA[I just finished my upgrade from Kubuntu 8.04 to 8.10 this past week (since I had downtime from work, I could afford to break things for a few days).  The upgrade went great, and I’ll write about it shortly, once I get used to the newness. Anyways; Workstation 6.5 has been giving me problems.  Because [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished my upgrade from Kubuntu 8.04 to 8.10 this past week  (since I had downtime from work, I could afford to break things for a  few days).  The upgrade went great, and I’ll write about it shortly,  once I get used to the newness.</p>
<p>Anyways; Workstation 6.5 has been giving me problems.  Because of the  newness of KDE4, I initially thought it was a KDE problem, but it turns  out it’s something between Workstation 6.5 and Ubuntu 8.10.  I just ran  the “adapt –dist-upgrade-devel” command from the Ubuntu wiki to  upgrade, and upon reboot, I couldn’t “ctrl-alt-ins” or “ctrl-alt-del” to  log into my Windows VM, my “Windows/Start” key on the keyboard wouldn’t  respond, and my arrow keys wouldn’t work.  Incredibly, when I’d hit the  “down” arrow, I’d get the Windows Start menu pop up!!</p>
<p>Fix is easy, edit /etc/vmware/config and add the line below like:<br />
<code><br />
sudo vim /etc/vmware/config<br />
:$<br />
A  (that's vi-command for "go to the end of the file, and start writing a new line")<br />
xkeymap.nokeycodeMap = true<br />
</code></p>
<p>Have to restart your VMs for this change to take effect.  Thanks to <a href="http://www.yellow-bricks.com/2008/11/19/vmware-workstation-ubuntu-ctrl-alt-ins-not-working/" target="_blank">Duncan Epping</a> for this fix (he posted it in the forums, where I found it).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2009/01/02/vmware-workstation-and-ubuntu-8-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://www.totalnetsolutions.net/2007/11/02/fedora-core-7-php-can%e2%80%99t-send-mail/</link>
		<comments>http://www.totalnetsolutions.net/2007/11/02/fedora-core-7-php-can%e2%80%99t-send-mail/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 06:33:16 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/2007/11/02/fedora-core-7-php-can%e2%80%99t-send-mail/</guid>
		<description><![CDATA[Im hunting down an issue on Fedora Core 7 where PHP5 cant send mail using sendmail or postfix. In /var/log/httpd/access_log we are getting sh: /usr/sbin/sendmail: Permission denied every time the mail() function is accessed, and postfix never sees any connection. This is being caused by SELinux blocking Apache from transitioning from the httpd role to [...]]]></description>
			<content:encoded><![CDATA[<p>Im hunting down an issue on Fedora Core 7 where PHP5 cant send mail using sendmail or postfix. In /var/log/httpd/access_log we are getting <code>sh: /usr/sbin/sendmail: Permission denied</code> every time the <code>mail()</code> function is accessed, and postfix never sees any connection. This is being caused by SELinux blocking Apache from transitioning from the httpd role to the mta role &#8211; Im just not sure what the *best* way to fix it is yet. I havent seen many posts about this, so stay tuned &#8211; I expect to have a fix tomorrow afternoon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2007/11/02/fedora-core-7-php-can%e2%80%99t-send-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Disk Utilization, Pt. 2</title>
		<link>http://www.totalnetsolutions.net/2007/10/26/linux-disk-utilization-pt-2/</link>
		<comments>http://www.totalnetsolutions.net/2007/10/26/linux-disk-utilization-pt-2/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 05:10:50 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/2007/10/26/linux-disk-utilization-pt-2/</guid>
		<description><![CDATA[Previously I mentioned some issues I had been having on Kubuntu Feisty Fawn with disk utilization seemingly caused by unflushed disk buffers. I alluded to believing that my laptop-mode.conf parameters were at fault. With my recent upgrade of that same laptop to Kubuntu Gutsy Gibbon, I kept the laptop-mode.conf file a bit closer to the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.totalnetsolutions.net/2007/10/05/linux-disk-utilization/" target="_blank">Previously</a> I mentioned some issues I had been having on Kubuntu Feisty Fawn with disk utilization seemingly caused by unflushed disk buffers. I alluded to believing that my laptop-mode.conf parameters were at fault.</p>
<p>With my recent upgrade of that same laptop to Kubuntu Gutsy Gibbon, I kept the laptop-mode.conf file a bit closer to the maintaners version. There are some changes to the dirty-writeback-centiseconds and the dirty-background-ratio values from what I posted, and my issue seems to have gone away. Ive been able to go back to running my Windows 2003 SBS server with a Centrify DirectControl lab environment and a RHEL 4 Oracle 10g server attached at the same time.</p>
<p>The configuration files that work MUCH better are attached here:</p>
<p><a href="http://www.totalnetsolutions.net/wp-content/uploads/2007/11/laptop-modeconf.txt" title="laptop-mode.conf">laptop-mode.conf</a></p>
<p><a href="http://www.totalnetsolutions.net/wp-content/uploads/2007/11/cpufreqdconf.txt" title="cpufreqd.conf">cpufreqd.conf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2007/10/26/linux-disk-utilization-pt-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare Workstation 6 &#8211; Kernel 2.6.22 on Ubuntu Gutsy</title>
		<link>http://www.totalnetsolutions.net/2007/10/17/vmware-workstation-6-kernel-2622-on-ubuntu-gutsy/</link>
		<comments>http://www.totalnetsolutions.net/2007/10/17/vmware-workstation-6-kernel-2622-on-ubuntu-gutsy/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 17:37:48 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/2007/10/17/vmware-workstation-6-kernel-2622-on-ubuntu-gutsy/</guid>
		<description><![CDATA[I upgraded my Dell D620 from Feisty to Gutsy this weekend, which included an upgrade to kernel 2.6.22. Every time theres a kernel upgrade, VMWare Workstation needs to be reconfigured with vmware-config.pl. This isnt an issue normally, but today it was. Thanks to Chris Hope with Electric Toolbox I was able to fix the problem [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded my Dell D620 from Feisty to Gutsy this weekend, which included an upgrade to kernel 2.6.22. Every time theres a kernel upgrade, VMWare Workstation needs to be reconfigured with vmware-config.pl. This isnt an issue normally, but today it was. Thanks to <a href="http://www.electrictoolbox.com/vmware-config-failed-opensuse-103/" onclick="javascript:urchinTracker ('/outgoing/www.electrictoolbox.com/vmware-config-failed-opensuse-103/');" target="_blank">Chris Hope with Electric Toolbox</a> I was able to fix the problem quick and easy.</p>
<p>For completeness the error I was getting was the same:<br />
<code>/tmp/vmware-config1/vmnet-only/userif.c:630: error: const struct sk_buff has no member named h</code><br />
when trying to build the VMNet module &#8211; VMMon built and inserted perfectly. Downloaded 6.0.1 and installed it, and Im back and in the game.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2007/10/17/vmware-workstation-6-kernel-2622-on-ubuntu-gutsy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux disk utilization</title>
		<link>http://www.totalnetsolutions.net/2007/10/05/linux-disk-utilization/</link>
		<comments>http://www.totalnetsolutions.net/2007/10/05/linux-disk-utilization/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 06:46:13 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.totalnetsolutions.net/2007/10/05/linux-disk-utilization/</guid>
		<description><![CDATA[On my Ubuntu Dell D620 laptop (which dual-boots into Windows XP occasionally), I run some pretty demanding software. Sometimes. As a systems architect, I spend a lot of time in standard Information Worker tools &#8211; email, office suite, web browser for white papers and product reviews. For me, OpenOffice.org, Evolution, and Firefox work great. I [...]]]></description>
			<content:encoded><![CDATA[<p>On my Ubuntu Dell D620 laptop (which dual-boots into Windows XP occasionally), I run some pretty demanding software. Sometimes. As a systems architect, I spend a lot of time in standard Information Worker tools &#8211; email, office suite, web browser for white papers and product reviews. For me, OpenOffice.org, Evolution, and Firefox work great. I even like Evolutions Exchange plugin better than Outlook &#8211; everything updates on my Windows Mobile phone just like Outlook, its faster than Outlook, and it threads my messages. I love message threading for all the reasons that it was invented.</p>
<p>However, because I mostly design Windows networks, I also run VMWare Workstation 6 with the following VMs: Windows XP Pro joined to primary domain (full workstation with Office 2003, Visio, Outlook (and EMC EmailExtender plugins), Windows Admin Pack, Resource Kit, SQL Enterprise Manager, and Exchange Admin Pack), Windows Vista Enterprise, Windows 2003 DC, Exchange, SQL server, Windows XP Pro joined to VM domain, RHEL 4, RHEL 5, and a Live-CD system that I often use to test bootable CDs. And a sysprepd Windows install.</p>
<p>All that, plus Evolution caching my email and Firefox being disk-happy (did you ever strace -p $(pgrep firefox) -e trace=open,close,read,write? Its busier than Evolution during an offline mail check!), means my 7200 RPM 160GB SATA disk gets hammered. Me also using laptop-mode-tools changing my vm.dirty_writeback_* settings and read/write cache isnt helping either, Im sure.</p>
<p><span id="more-35"></span>Today and yesterday I ran into an issue where my disk would begin a sync that would last 10-20 minutes, leaving me unable to work the entire time that was happening. Hunting down WHAT was causing this, however, was even more frusterating than it happening (If I shut down any of the 3 above-mentioned programs, the problem went away &#8211; it only happened with all 3 open). In Windows, you can open Task Manager, go to the Process tab, click View-&gt; Columns and add IO Write Bytes and IO Read Bytes and watch the numbers count up. Or you can use Perfmon and look at IO reads/writes/bytes per second or total, and know immediately whats causing all your disk IO pain. I still dont know how to do this in Linux.</p>
<p>First, any hunt for disk utilization and Linux on Google directs you to hundreds of sites, forums, and blogs evangelizing the wonders of df for disk utilization. Yes, its really nice to know how much free space I have on my hard drives- thats why I have SuperKaramba to tell me. But when a problem hits and leaves me unable to work, its useless.</p>
<p>iostat -k 1? is great &#8211; youll know immediately which disk is being used, and how hard. But on a laptop with a single disk, you already know.</p>
<p>top sorted by process-state will show you whats in waiting on IO state, but not whats CAUSING the IO thats causing everything else to wait.</p>
<p>sar seems to be the only tool that can provide per-process IO stats, but it has to be pre-set up to write to a log. And I cant begin to guess how well that will work when my disk is at 100% utilization (peaked at 120tps today).</p>
<p>So if anyone knows of any way to know whats causing disk IO in a right now fashion, please comment or email me. And if youre curious more about my problem:</p>
<ol>
<li>Only happens when VMWare (with a guest), firefox, and Evolution are all running.</li>
<li>VMWare with multiple guests runs fine, and never has this issue.</li>
<li><code>rauch@lt00-bofh:~$ free<br />
total       used       free     shared    buffers     cached<br />
Mem:       3348960    1099216    2249744          0      68668     533124<br />
-/+ buffers/cache:     497424    2851536<br />
Swap:      6000268          0    6000268</code></li>
<li>Happens with Laptop_mode disabled or enabled, on AC or on battery</li>
<li>sync causes the exact same symptoms, leading me to believe that somehow Im getting a LOT more dirty pages than my parameters are set at.</li>
<li><code>dirty_background_ratio<br />
1<br />
dirty_expire_centisecs<br />
60003<br />
dirty_ratio<br />
60<br />
dirty_writeback_centisecs<br />
60003</code></li>
<li>For now, I just close Firefox when I have VMWare open, which means I spend a lot more time in IE than I want to.</li>
</ol>
<p>As a final note, Ive updated my <a href="http://www.totalnetsolutions.net/2007/08/22/evdo-on-debian-ubuntu/" target="_blank">Linux EVDO post here</a> with my new built-in cards info.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.totalnetsolutions.net/2007/10/05/linux-disk-utilization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

