<?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>A Sysadmins blog &#187; linux</title>
	<atom:link href="http://paul.messinthecorner.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://paul.messinthecorner.com</link>
	<description>I once was 404, but now am 200.</description>
	<lastBuildDate>Fri, 23 Oct 2009 09:33:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Re-scan the scsi bus after detecting a missing media changer for the tape drive</title>
		<link>http://paul.messinthecorner.com/2009/re-scan-the-scsi-bus-after-detecting-a-missing-media-changer-for-the-tape-drive/</link>
		<comments>http://paul.messinthecorner.com/2009/re-scan-the-scsi-bus-after-detecting-a-missing-media-changer-for-the-tape-drive/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 09:12:30 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[backups]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[amanda]]></category>
		<category><![CDATA[dell 124T]]></category>
		<category><![CDATA[lto4]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=43</guid>
		<description><![CDATA[Well today ran into a nice problem, the media changer on a Dell 124T had disappeared and the backup server had been neglected for a while. So Amanda was spewing out backup failed reports for a while now. A bit of investigation later found that the media changer had &#8220;gone&#8221;. More poking showed the tape [...]]]></description>
			<content:encoded><![CDATA[<p>Well today ran into a nice problem, the media changer on a Dell 124T had disappeared and the backup server had been neglected for a while. So Amanda was spewing out backup failed reports for a while now. A bit of investigation later found that the media changer had &#8220;gone&#8221;. More poking showed the tape drive still present hmm. </p>
<p>As this media changer and server live in another state (1200km away) and it was Friday night, the chances of getting the tape drive power cycled == 0. Luckily a rescan of the correct SCSI bus resulted in the media changer being found and usable again.</p>
<p>For reference, check out your SCSI devices by running:</p>
<p><code>cat /proc/scsi/scsi</code></p>
<p>In my case the host bus I wanted to re-scan was 1. So running this command tells the controller to rescan all channels, IDs &#038; LUNs..</p>
<p><code>echo "- - - " &gt; /sys/class/scsi_host/host1/scan</code></p>
<p>After this, I was able to interact with the tape changer device via the Amanda tools again.</p>
<p>Note: Always be-careful when running commands that hot add/remove SCSI devices. I have seen some servers crash from this and others lose access to all SCSI devices which required a reboot to fix (Mostly it is okay though).</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2009/re-scan-the-scsi-bus-after-detecting-a-missing-media-changer-for-the-tape-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LSI Megaraid physical device error counters and what SMART errors they imply</title>
		<link>http://paul.messinthecorner.com/2009/lsi-megaraid-physical-device-error-counters/</link>
		<comments>http://paul.messinthecorner.com/2009/lsi-megaraid-physical-device-error-counters/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 03:57:23 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[lsi]]></category>
		<category><![CDATA[megaraid]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[smart]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=41</guid>
		<description><![CDATA[At work we have a number of LSI megaraid controllers &#38; dell perc cards. Today I ran accross a system with a &#8220;Other Error Count: XX&#8221; assigned to the both drives in a raid 1 array. It took some googling but it turns out these are not ciritcal drive media errors, but some other SMART [...]]]></description>
			<content:encoded><![CDATA[<p>At work we have a number of LSI megaraid controllers &amp; dell perc cards. Today I ran accross a system with a &#8220;Other Error Count: XX&#8221; assigned to the both drives in a raid 1 array. It took some googling but it turns out these are not ciritcal drive media errors, but some other SMART errors.</p>
<p>For reference here is a list of the LSI megaraid error codes and the corresponding SMART failure count (Thanks to the dell linux mailing list).</p>
<ul>
<li><em>Predictive Failure Count == Number of SMART errors.</em></li>
<li><em></em><em> Media Error Count == Number of SMART errors related to the drive media.</em></li>
<li><em></em><em>Other Error Count == Number of SMART errors not related to the drive. </em></li>
</ul>
<p>See wikipedia for the <a title="SMART" href="http://en.wikipedia.org/wiki/S.M.A.R.T." target="_blank">SMART</a> error codes.</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2009/lsi-megaraid-physical-device-error-counters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Access as root to your ESX 3.5 Server</title>
		<link>http://paul.messinthecorner.com/2008/ssh-access-as-root-to-your-esx-35-server/</link>
		<comments>http://paul.messinthecorner.com/2008/ssh-access-as-root-to-your-esx-35-server/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 09:04:01 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=30</guid>
		<description><![CDATA[Lately I have been playing with ESX 3.5 and ESXi getting ready for a deployment at $work. Bellow is a tip to people want access using SSH keys to the root account.
As described in RTFM Education&#8217;s ESX guide it is possible to allow root user SSH/SCP/SFTP access to your ESX 3.5 server.
Disabling Auditing on ROOT [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been playing with ESX 3.5 and ESXi getting ready for a deployment at <a href="http://www.anchor.com.au" target="_blank">$work</a>. Bellow is a tip to people want access using SSH keys to the root account.</p>
<p>As described in <a href="http://www.rtfm-ed.co.uk/?p=261" target="_blank">RTFM Education&#8217;s ESX guide</a> it is possible to allow root user SSH/SCP/SFTP access to your ESX 3.5 server.</p>
<blockquote><p>Disabling Auditing on ROOT (Not Recommended)<br />
Note:<br />
• Some applications do not support levitation to a higher plain &#8211; for example<br />
WinSCP. Sure you could use WinSCP to gain access as an ordinary user,<br />
but then you might lack permission to copy the files you need. If you try<br />
to logon as root, WinSCP will give you access denied.<br />
• If you wish to disable the restriction on ROOT not being allowed direct<br />
access using SSH then carry out the following task. I wouldn’t recommend<br />
doing this as you will loose enforcement of your audit trail.<br />
1. nano –w /etc/ssh/sshd_config<br />
2. Locate: PermitRootLogin no<br />
3. Place a # in front of PermitRootLogin no like so: #PermitRootLogin no<br />
4. Exit Nano &amp; Save the file<br />
5. Restart sshd with service sshd restart</p></blockquote>
<p>You just need to modify the SSH daemon configuration. The described step will allow your root account open to logins with a password. In todays internet this is less than a great idea.</p>
<p>Personally, I like console logins as root to some servers using SSH keys. To enable root logins that allow SSH keys but disallow passwords edit your /etc/ssh/sshd_config as follows</p>
<blockquote>
<p style="text-align: left;">1. Change the line readiing &#8220;<code>PermitRootLogin no</code>&#8221; to &#8220;<code>PermitRootLogin without-password</code>&#8220;</p>
<p style="text-align: left;">2. Add the line &#8220;<code>PermitEmptyPasswords no</code>&#8221; underneath.</p>
<p style="text-align: left;">3. Save and exit</p>
<p style="text-align: left;">4. Restart SSHD &#8220;<code>service sshd restart</code>&#8220;</p>
</blockquote>
<p style="text-align: left;">Now you will need to place your ssh public key in the file system path &#8220;/root/.ssh/authorized_keys&#8221;</p>
<p style="text-align: left;">For further security you can restrict what hosts the key can login from. This is done by placing &#8220;from=hostname.domain.com&#8221; in front off the public key. It must all be on the one line.</p>
<p style="text-align: left;">Now you can use your SSH key to authenticate as the root user.</p>
<p style="text-align: left;">This guide assumes you have another user that has SSH access and can &#8220;su&#8221; to root on the ESX host. There is plenty of information in google on how to do that already. It also assumes you have a SSH keypair or can figure out how to generate them.</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2008/ssh-access-as-root-to-your-esx-35-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PECL timezonedb fun</title>
		<link>http://paul.messinthecorner.com/2008/pecl-timezonedb-fun/</link>
		<comments>http://paul.messinthecorner.com/2008/pecl-timezonedb-fun/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 03:08:13 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=17</guid>
		<description><![CDATA[So we have a number of Red Hat based systems where clients use PHP on them. A few clients have requested we update the timezone information on them. Sure no problem.
However &#8220;pecl install timezonedb&#8221; fails with out of memory errors at 8mb, even though the php memory limit is 32mb or even 64mb on my [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">So we have a number of Red Hat based systems where clients use PHP on them. A few clients have requested we update the timezone information on them. Sure no problem.</p>
<p style="text-align: left;">However &#8220;pecl install timezonedb&#8221; fails with out of memory errors at 8mb, even though the php memory limit is 32mb or even 64mb on my own machine.</p>
<p style="text-align: left;">A dirty work around is to install it using</p>
<blockquote style="text-align: left;"><p><span style="color: #000000;"><br />
pecl bundle timezonedb<br />
cd timezonedb<br />
phpize<br />
./configure<br />
make<br />
make install</span></p></blockquote>
<p style="text-align: left;">You will need to ensure you have GCC, make, phpize (from php-devel package) installed though.</p>
<p style="text-align: left;">Currently I have not found a fix or any bugs filled in PECL bug tracker or the Red Hat bug tracker. This is reproducible on CentOS, which is to be expected.</p>
<p style="text-align: left;">I will update this post if I find a way to fix it or a bug ID in any of those trackers.</p>
<p style="text-align: left;"><strong>Update</strong>:</p>
<p style="text-align: left;">Make sure you have at least these packages installed.</p>
<blockquote style="text-align: left;"><p><span style="color: #000000;"><br />
autoconf<br />
automake<br />
libtool<br />
bison<br />
flex<br />
</span></p></blockquote>
<p style="text-align: left;"><strong>Update 2</strong>:</p>
<p style="text-align: left;">pecl timezonedb will only work with php5 due to no date module existing in the php4 source.</p>
<p>This particular problem manifested because we have php4 and php5 installed on a single server, so clients can use either version as a CGI.</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2008/pecl-timezonedb-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Office 2007 mime types in Apache (Linux)</title>
		<link>http://paul.messinthecorner.com/2008/office-2007-mime-types-in-apache-linux/</link>
		<comments>http://paul.messinthecorner.com/2008/office-2007-mime-types-in-apache-linux/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 02:28:50 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[mimetype]]></category>
		<category><![CDATA[office]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=12</guid>
		<description><![CDATA[So you have a client who needs to download/upload office 2007 docs via an Apache HTTP server on a Linux server?
You will probably need to add these directives to have the download work correctly. They can be added to an individual virtual host or the main configuration file:
AddType application/vnd.ms-word.document.macroEnabled.12 .docm
AddType application/vnd.openxmlformats .docx .pptx .xlsx
#AddType application/vnd.openxmlformats-officedocument.presentationml.presentation [...]]]></description>
			<content:encoded><![CDATA[<p>So you have a client who needs to download/upload office 2007 docs via an Apache HTTP server on a Linux server?</p>
<p>You will probably need to add these directives to have the download work correctly. They can be added to an individual virtual host or the main configuration file:</p>
<blockquote><p>AddType application/vnd.ms-word.document.macroEnabled.12 .docm<br />
AddType application/vnd.openxmlformats .docx .pptx .xlsx<br />
#AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx<br />
#AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx<br />
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx<br />
AddType application/vnd.ms-word.template.macroEnabled.12 .dotm<br />
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template .dotx<br />
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 .potm<br />
AddType application/vnd.openxmlformats-officedocument.presentationml.template .potx<br />
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 .ppam<br />
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 .ppsm<br />
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow .ppsx<br />
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 .pptm<br />
AddType application/vnd.ms-excel.addin.macroEnabled.12 .xlam<br />
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 .xlsb<br />
AddType application/vnd.ms-excel.sheet.macroEnabled.12 .xlsm<br />
AddType application/vnd.ms-excel .xlt .xla<br />
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template .xltx<br />
AddType application/vnd.ms-excel.template.macroEnabled.12 .xltm<br />
AddType application/vnd.ms-xpsdocument .xps<br />
AddType application/application/vnd.ms-powerpoint .ppt .pot .pps .ppa<br />
AddType application/msword .doc .dot</p></blockquote>
<p>The commented lines are there incase the shorthand pptx and xlsx mimetype does not work.</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2008/office-2007-mime-types-in-apache-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>dstat &#8211; one hell of an awsome performance monitoring tool</title>
		<link>http://paul.messinthecorner.com/2008/dstat-one-hell-of-an-awsome-performance-monitoring-tool/</link>
		<comments>http://paul.messinthecorner.com/2008/dstat-one-hell-of-an-awsome-performance-monitoring-tool/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 07:12:34 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[dstat]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=9</guid>
		<description><![CDATA[Dstat is a versatile replacement for vmstat, iostat, netstat, nfsstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting.
Dstat allows you to view all of your system resources instantly, you can eg. compare disk [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Dstat is a versatile replacement for vmstat, iostat, netstat, nfsstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting.</p></blockquote>
<blockquote><p>Dstat allows you to view all of your system resources instantly, you can eg. compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).</p></blockquote>
<p>This has to be my most favourite bit of software right about now. You can download it from <a title="http://dag.wieers.com/home-made/dstat/" href="http://dag.wieers.com/home-made/dstat/" target="_blank">http://dag.wieers.com/home-made/dstat/</a> or get it via your distros package manager.</p>
<p>It really helps you find the bottle neck in a system without having 10 terminals open.</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2008/dstat-one-hell-of-an-awsome-performance-monitoring-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
