<?xml version="1.0" encoding="utf-8"?>
<!-- generator="wordpress/1.5.1.3" -->
<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/"
>

<channel>
	<title>Jimmy's weblog</title>
	<link>http://www.jimmy.co.at/weblog</link>
	<description>just for fun</description>
	<pubDate>Tue, 15 May 2012 18:26:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.3</generator>
	<language>en</language>

		<item>
		<title>Growing Hardware RAID-5 with arcconf</title>
		<link>http://www.jimmy.co.at/weblog/?p=86</link>
		<comments>http://www.jimmy.co.at/weblog/?p=86#comments</comments>
		<pubDate>Tue, 15 May 2012 18:26:06 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>General</category>
	<category>Computer</category>
	<category>Hardware</category>
	<category>IBM/Lenovo</category>
		<guid>http://www.jimmy.co.at/weblog/?p=86</guid>
		<description><![CDATA[	Maybe you read my previous post &#8220;Growing Hardware RAID-5 with LVM by adding a physical disk&#8221; where I described how to add another disk to a RAID-5 with the MegaCLI tool. For older ServeRAID controllers you have to use the arcconf tool instead, e.g. ServeRAID-8k, which was shipped in the first x3650 models. There&#8217;s plenty [...]]]></description>
			<content:encoded><![CDATA[	<p>Maybe you read my previous post &#8220;Growing Hardware RAID-5 with LVM by adding a physical disk&#8221; where I described how to add another disk to a RAID-5 with the MegaCLI tool. For older ServeRAID controllers you have to use the arcconf tool instead, e.g. ServeRAID-8k, which was shipped in the first x3650 models. There&#8217;s plenty of documentation about arcconf but how to resize a raid was hard to find. The MODIFY command is used for resizing and let&#8217;s assume that we have 3 disks in the array and add another one (same as in my previous post) </p>
	<pre class=config>
./arcconf modify 1 from 1 to MAX 5 0 0 0 1 0 2 0 3
</pre>
	<p>The syntax of arrconf is:</p>
	<pre class=config>
./arcconf MODIFY &lt;Controller#&gt; FROM &lt;LogicalDrive#&gt; TO [Options] &lt;Size&gt; &lt;RAID#&gt; &lt;CHANNEL# DRIVE#&gt; [CHANNEL# DRIVE#] [noprompt]
</pre>
	<p>So in our case it was Controller# 1 and LogicalDrive# 1 and MAX means to use all capacity that will be available. Raidlevel will still be level 5 and the harddisks are [0 0], [0 1], [0 2] and the new [0 3].<br />
To watch the status of the raid migration, use</p>
	<pre class=config>
./arcconf getstatus 1
</pre>
	<p>JFYI: To add another 146 GB SAS (15k) to the raid it took about 12 hours to rebuild the array.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=86</wfw:commentRSS>
	</item>
		<item>
		<title>Growing Hardware RAID-5 with LVM by adding a physical disk</title>
		<link>http://www.jimmy.co.at/weblog/?p=85</link>
		<comments>http://www.jimmy.co.at/weblog/?p=85#comments</comments>
		<pubDate>Thu, 22 Dec 2011 23:00:58 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>Computer</category>
	<category>Hardware</category>
	<category>IBM/Lenovo</category>
		<guid>http://www.jimmy.co.at/weblog/?p=85</guid>
		<description><![CDATA[	Sometimes you&#8217;re running out of space and all you can do is adding additional disks. Although it&#8217;s a simple task in theory, there a some risky steps involved. So you should backup your volumes before. In my case I had a RAID-5 in an IBM x3650 M3 Server with a ServeRAID M5015 Controller. There was [...]]]></description>
			<content:encoded><![CDATA[	<p>Sometimes you&#8217;re running out of space and all you can do is adding additional disks. Although it&#8217;s a simple task in theory, there a some risky steps involved. So you should backup your volumes before. In my case I had a RAID-5 in an IBM x3650 M3 Server with a ServeRAID M5015 Controller. There was one volume with three 146 GB SAS disks and on top LVM. The root filesystem was on this volume, too, which doesn&#8217;t make things easier <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
First Step: Insert a new 146 GB SAS disk to extend the volume. The first risky step is to rebuild the RAID-5 with four disks instead of three. So you may want to upgrade the firmware of the controller first and make a backup of the LVM volumes. Of course you should not save the backup on the same server <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
I configured a partimage server on another machine and ran partimage client on the server with the new disk:</p>
	<pre class=config>
partimage -z2 -domMc -s 192.168.0.7 save /dev/mapper/main-rootfs fileserver.partimg.bz2
</pre>
	<p>(Please lookup the options in the manpage yourself)<br />
The command for the ServeRaid controller was not easy to find but here we go:</p>
	<pre class=config>
/opt/MegaRAID/MegaCli/MegaCli64 -LDRecon -Start -r5 -add -PhysDrv [252:3]  -L0 -a0
</pre>
	<p>252:3 stands for the fourth drive. You can find out more about available drives running:</p>
	<pre class=config>
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0
</pre>
	<p>To watch the rebuild status run:</p>
	<pre class=config>
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -L0 -a0
</pre>
	<p>As we want to resize the root filesystem we need to reboot the machine so that programs like fdisk see the new size of the array. Afterwards you can resize the partition or simply delete and recreate it. Next step is to resize the LVM physical volume and again a reboot is needed so that pvresize recognizes the new partition size. So these are the next steps where things might get wrong, too:</p>
	<pre class=config>
pvresize -v /dev/sda2
lvresize -l +34871 /dev/main/rootfs
resize2fs /dev/main/rootfs
</pre>
	<p>/dev/sda2 was my LVM partition (sda1 was for /boot) and thanks to the new disk I had 34871 extends available (146 GB). The resize commands work with active volumes and mounted filesystem so you don&#8217;t have to stop any services. Only the two or three reboots (if you want to make a final reboot after all changes) interrupt the services but this should be ok.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=85</wfw:commentRSS>
	</item>
		<item>
		<title>Upgrading Samba from plaintext passwords to encrypted passwords</title>
		<link>http://www.jimmy.co.at/weblog/?p=84</link>
		<comments>http://www.jimmy.co.at/weblog/?p=84#comments</comments>
		<pubDate>Thu, 10 Nov 2011 15:23:31 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>Computer</category>
	<category>Security</category>
		<guid>http://www.jimmy.co.at/weblog/?p=84</guid>
		<description><![CDATA[	Recently I had to upgrade a samba installation which was using plaintext passwords. This is not as rare as one might think because some companies couldn&#8217;t upgrade from win95 PCs as those were coupled to machines which didn&#8217;t support newer versions. For plaintext passwords samba uses /etc/passwd and /etc/shadow to find out usernames and passwords. [...]]]></description>
			<content:encoded><![CDATA[	<p>Recently I had to upgrade a samba installation which was using plaintext passwords. This is not as rare as one might think because some companies couldn&#8217;t upgrade from win95 PCs as those were coupled to machines which didn&#8217;t support newer versions. For plaintext passwords samba uses /etc/passwd and /etc/shadow to find out usernames and passwords. With encrypted passwords samba uses its own database with the tdbsam backend. There was also a smbpasswd backend which is now deprecated. But it&#8217;s very handy if you want to upgrade to encrypted passwords without having every user to enter her password again to fill the new database. There is the global option &#8220;update encrypted = yes&#8221; which replaces a plaintext password with an encrypted one when the user logs in. The plaintext password is written to the smbpasswd file defined in smb.conf (This does not work with the tdbsam backend but you can migrate from smbpasswd to tdbsam easily afterwards). So before we let the users login again we have to generate a smbpasswd file. One way to achive this is to run this command:</p>
	<pre class=config>
cat /etc/passwd | mksmbpasswd >> /etc/samba/smbpasswd
</pre>
	<p>(assuming that &#8220;passdb backend = smbpasswd:/etc/samba/smbpasswd&#8221; is in your smb.conf)<br />
After all users have logged in (check smbpasswd file for filled in passwords) you can disable plaintext auth.</p>
	<p><strong>Watch out for bug in WinXP SP3 with plaintext auth!</strong><br />
When I made this migration it happened that this procedure was working great for some clients where others completely failed to login. I found out that Win7 clients and WinXP clients with SP2 worked, but WinXP clients with SP3 were failing. The reason is simply a bug caused by patch KB2536276. You can find the full story in bugzilla of samba: <a href="https://bugzilla.samba.org/show_bug.cgi?id=8238">Windows security patch KB2536276 prevents access to shares</a><br />
In my case I was lost and had to ask the users to type in their passwords again but there seems to be a workaround if you read the last comments in the bugreport (changing domain name)
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=84</wfw:commentRSS>
	</item>
		<item>
		<title>Grazer Linuxtage 2011</title>
		<link>http://www.jimmy.co.at/weblog/?p=83</link>
		<comments>http://www.jimmy.co.at/weblog/?p=83#comments</comments>
		<pubDate>Tue, 15 Mar 2011 15:28:18 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>General</category>
	<category>grml</category>
		<guid>http://www.jimmy.co.at/weblog/?p=83</guid>
		<description><![CDATA[	Hope to see you there  
	

]]></description>
			<content:encoded><![CDATA[	<p>Hope to see you there <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
	<p><a href="http://www.linuxtage.at"><br />
<img src="http://www.jimmy.co.at/weblog/uploaded_files/logo-glt11-date-loc.png"  width="75%" alt="Grazer Linuxtage 2011"></a></p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=83</wfw:commentRSS>
	</item>
		<item>
		<title>Using IBM Bootable Media Creator on Debian</title>
		<link>http://www.jimmy.co.at/weblog/?p=82</link>
		<comments>http://www.jimmy.co.at/weblog/?p=82#comments</comments>
		<pubDate>Thu, 05 Aug 2010 23:03:25 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>Computer</category>
	<category>IBM/Lenovo</category>
		<guid>http://www.jimmy.co.at/weblog/?p=82</guid>
		<description><![CDATA[	IBM provides a tool called &#8220;Bootable Media Creator&#8221; (bomc) which creates bootable media - like an usb key - that allows you to easily install all firmware updates even if there is no OS installed on the server. You just select your server model, e.g. x3650, and the tool downloads all available updates. This saves [...]]]></description>
			<content:encoded><![CDATA[	<p>IBM provides a tool called &#8220;Bootable Media Creator&#8221; (bomc) which creates bootable media - like an usb key - that allows you to easily install all firmware updates even if there is no OS installed on the server. You just select your server model, e.g. x3650, and the tool downloads all available updates. This saves a lot of time.<br />
Formerly I used bomc on a SLES server but now I wanted to try if it would work on my Debian notebook, since the tool is available as a single binary and not as a rpm package as usual.<br />
It started up and seemed to work but unfortunately after downloading some packages it stopped with an error. Long story short: I just copied the SuSE-release file to my /etc on my Debian notebook and all errors were gone <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
My /etc/SuSE-release looks like this:</p>
	<pre class=config>
SUSE Linux Enterprise Desktop 10 (i586)
VERSION = 10
</pre>
	<p>Bomc can be downloaded at the <a href="http://www-947.ibm.com/systems/support/supportsite.wss/docdisplay?lndocid=TOOL-BOMC&#038;brandind=5000016">IBM site</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=82</wfw:commentRSS>
	</item>
		<item>
		<title>Dirty dirvish hack to use &#8220;localhost&#8221; as client option</title>
		<link>http://www.jimmy.co.at/weblog/?p=80</link>
		<comments>http://www.jimmy.co.at/weblog/?p=80#comments</comments>
		<pubDate>Sun, 16 May 2010 09:03:46 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>General</category>
		<guid>http://www.jimmy.co.at/weblog/?p=80</guid>
		<description><![CDATA[	When using dirvish you usually have to use the local hostname for the client option in default.conf. In other words, the output of the command &#8220;hostname&#8221;. If it&#8217;s different than the client option than dirvish assumes that it&#8217;s a remote transfer and uses ssh to connect. So you can not use &#8220;localhost&#8221; which would be [...]]]></description>
			<content:encoded><![CDATA[	<p>When using dirvish you usually have to use the local hostname for the client option in default.conf. In other words, the output of the command &#8220;hostname&#8221;. If it&#8217;s different than the client option than dirvish assumes that it&#8217;s a remote transfer and uses ssh to connect. So you can not use &#8220;localhost&#8221; which would be rather straightforward ;-(<br />
Lately I needed dirvish on a sytem with heartbeat where two systems share one configuration but have different hostnames. Because I was so angry about this IMO stupid check with &#8220;hostname&#8221; I made a dirty hack&#8230;<br />
Line 258 in /usr/sbin/dirvish looks like this:</p>
	<pre class=config>
chomp($$Options{Server} = `hostname`);
</pre>
	<p>I changed it to:</p>
	<pre class=config>
chomp($$Options{Server} = localhost);
</pre>
	<p>This way dirvish assumes localhost as local tranfer and everything else as remote. The check itself can be found in line 520.<br />
Remember, this hack is really evil. There are several better ways to solve the problem.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=80</wfw:commentRSS>
	</item>
		<item>
		<title>Linuxtage 2010</title>
		<link>http://www.jimmy.co.at/weblog/?p=81</link>
		<comments>http://www.jimmy.co.at/weblog/?p=81#comments</comments>
		<pubDate>Fri, 23 Apr 2010 06:18:55 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>General</category>
	<category>Computer</category>
	<category>grml</category>
		<guid>http://www.jimmy.co.at/weblog/?p=81</guid>
		<description><![CDATA[	Only one day left. I&#8217;ll be there at the grml-booth, which is a must see, again. See you there  
	

]]></description>
			<content:encoded><![CDATA[	<p>Only one day left. I&#8217;ll be there at the grml-booth, which is a must see, again. See you there <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
	<p><a href="http://www.linuxtage.at"><br />
<img src="http://www.jimmy.co.at/weblog/uploaded_files/glt10banner.jpg"  alt="Grazer Linuxtage 2010"/></a></p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=81</wfw:commentRSS>
	</item>
		<item>
		<title>Linuxtage Graz 2009</title>
		<link>http://www.jimmy.co.at/weblog/?p=78</link>
		<comments>http://www.jimmy.co.at/weblog/?p=78#comments</comments>
		<pubDate>Thu, 23 Apr 2009 06:05:47 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>General</category>
		<guid>http://www.jimmy.co.at/weblog/?p=78</guid>
		<description><![CDATA[	See you there  
	


]]></description>
			<content:encoded><![CDATA[	<p>See you there <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
	<p><a href="http://www.linuxtage.at"><br />
<img src="http://www.jimmy.co.at/weblog/uploaded_files/glt09banner.gif" alt="Grazer Linuxtage 2009"/></a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=78</wfw:commentRSS>
	</item>
		<item>
		<title>OpenOffice and Freefonts</title>
		<link>http://www.jimmy.co.at/weblog/?p=75</link>
		<comments>http://www.jimmy.co.at/weblog/?p=75#comments</comments>
		<pubDate>Tue, 01 Apr 2008 12:55:40 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>Computer</category>
		<guid>http://www.jimmy.co.at/weblog/?p=75</guid>
		<description><![CDATA[	Today I tried an upgrade of my debian unstable machine. Didn&#8217;t do this for several months, so I expected some problems, but this one was really hard to solve. I already had openoffice 2.4 installed, so there weren&#8217;t many changes, but after the complete upgrade the free fonts disappeared (FreeSans, FreeMono, &#8230;). The font drop-down [...]]]></description>
			<content:encoded><![CDATA[	<p>Today I tried an upgrade of my debian unstable machine. Didn&#8217;t do this for several months, so I expected some problems, but this one was really hard to solve. I already had openoffice 2.4 installed, so there weren&#8217;t many changes, but after the complete upgrade the free fonts disappeared (FreeSans, FreeMono, &#8230;). The font drop-down menu showed three blank lines and I was also able to type in the word &#8220;FreeSans&#8221; into the box, but all I got were blank spaces. I googled around for two hours and finally I found a hint about the ttf-freefont package: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472830">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472830</a>. I don&#8217;t understand exactly what&#8217;s wrong, but installing version 20060501cvs-12 from <a href="http://snapshot.debian.net/">snapshot.debian.net</a> solved the problem and the fonts get now rendered correctly.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=75</wfw:commentRSS>
	</item>
		<item>
		<title>IBM Server x3350</title>
		<link>http://www.jimmy.co.at/weblog/?p=77</link>
		<comments>http://www.jimmy.co.at/weblog/?p=77#comments</comments>
		<pubDate>Wed, 30 Jan 2008 19:35:00 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
		
	<category>Computer</category>
		<guid>http://www.jimmy.co.at/weblog/?p=77</guid>
		<description><![CDATA[0]]></description>
			<content:encoded><![CDATA[	<p>A few months ago I bought the new x3350 Server. Previously the x3250 was my standard model for small solutions. But I was always missing some important features which are now available with the x3350. These are:</p>
	<ul>
	<li>Hot-swap redundant power supplies
	<li>Dual Gigabit Ethernet for bonding
	<li>Light path diagnostics
</ul>
	<p>Thank you IBM for exactly implementing my wishlist <img src='http://www.jimmy.co.at/weblog/wp-images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
	<p>When I installed Debian etch on the machine everything worked fine except the broadcom NICs. They were not detected so I had to use a newer kernel.<br />
The problem was solved when &#8220;Etch and a half&#8221; was released because the 2.6.24 kernel includes a newer tg3 module.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.jimmy.co.at/weblog/?feed=rss2&amp;p=77</wfw:commentRSS>
	</item>
	</channel>
</rss>

