<?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 2 cents &#187; rootStuff</title>
	<atom:link href="http://corneliusweiss.de/category/things-maybe-interesting-for-roots/feed/" rel="self" type="application/rss+xml" />
	<link>http://corneliusweiss.de</link>
	<description>Exciting brainjunk of Cornelius Weiss</description>
	<lastBuildDate>Sat, 26 Mar 2011 10:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2-alpha</generator>
		<item>
		<title>Live Disk Migration with Softraid and LVM</title>
		<link>http://corneliusweiss.de/2008/08/31/live-disk-migration-with-softraid-and-lvm/</link>
		<comments>http://corneliusweiss.de/2008/08/31/live-disk-migration-with-softraid-and-lvm/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 09:24:49 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[rootStuff]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=98</guid>
		<description><![CDATA[As disk space on my homeserver became rare, and I wanted to start using apples timemachine on a network share I needed to upgrade diskspace. However, three of four ports where on my sata controller where already occupied and so I couldn&#8217;t extend my lvm&#8217;s physical volume easily with a new raid1 or raid5 array. [...]]]></description>
			<content:encoded><![CDATA[<p>As disk space on my homeserver became rare, and I wanted to start using <a href="http://www.flokru.org/2008/02/29/time-machine-backups-on-network-shares-in-leopard/" target="_blank">apples timemachine on a network share</a> I needed to upgrade diskspace.</p>
<p>However, three of four ports where on my <a href="http://en.wikipedia.org/wiki/Serial_ATA" target="_blank">sata</a> controller where already occupied and so I couldn&#8217;t extend my <a href="http://en.wikipedia.org/wiki/Logical_volume_management" target="_blank">lvm&#8217;s</a> physical volume easily with a new <a href="http://en.wikipedia.org/wiki/RAID" target="_blank">raid1 or raid5 array</a>. So i decided to remove two 250GB disks and replace them by two new 500GB once.</p>
<p><strong>Old disk layout:</strong><br />
<code>sda1 10GB  / sda2 240GB<br />
sdb1 10GB  / sdb2 240GB<br />
sdc1 260GB / sdc2 240GB<br />
md0, raid1, 10GB sda1, sda2<br />
md1 raid5 480GB sda2, sdb2, sdc2<br />
md1 pv (480GB) for lvm2</code></p>
<p><strong>Desired layout (with two new 500GB disks):</strong><br />
<code>sda1 10GB / sda2 490GB<br />
sdc1 10GB / sdc2 490GB<br />
sdd1 10GB / sdd2 490GB<br />
md0, raid1, 10Gb sda1, sdc1, sdd1(spare)<br />
md1, raid5, 980GB sda2, sdc2, sdd2<br />
md1 pv (980 GB) for lvm2</code></p>
<p><strong>Howto accomplish data migration with all services staying online.</strong></p>
<p>Create Backups <img src='http://corneliusweiss.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  (I did)</p>
<p>Remove sdc2 from raid5 array<br />
<code>mdadm /dev/md1 --fail /dev/sdc2 --remove /dev/sdc2</code></p>
<p>New partitioning for sdc (man fdisk)</p>
<p><code>Â Â  Device Boot Â  Â  Â Start Â  Â  Â  Â  End Â  Â  Â Blocks Â  Id Â System<br />
/dev/sdc1 Â  * Â  Â  Â  Â  Â  1 Â  Â  Â  Â  609 Â  Â  4891792 Â  fd Â Linux raid autodetect<br />
/dev/sdc2 Â  Â  Â  Â  Â  Â  610 Â  Â  Â  60801 Â  483492240 Â  83 Â Linux</code></p>
<p>Add sdc1 to md0 and remove sda1, sdb1<br />
<code>mdadm /dev/md0 --add /dev/sdc1<br />
mdadm /dev/md0 --fail /dev/sda1 --remove /dev/sda1<br />
mdadm /dev/md0 --fail /dev/sdb1 --remove /dev/sdb1</code></p>
<p>Create pv for sdc2 space and move all data temparary to it<br />
<code>pvcreate /dev/sdc2<br />
vgextend VG00 /dev/sdc2<br />
pvmove /dev/md1 /dev/sda1</code></p>
<p>Remove md1 from lvm and delte it<br />
<code>vgreduce VG00 /dev/md1<br />
pvremove /dev/md1<br />
mdadm -S /dev/md1</code></p>
<p>Shred old disks<br />
<code>shred -vfz /dev/sda<br />
shred -vfz /dev/sdb</code></p>
<p>Prepare sdc as boot disk<br />
<code>grub-install --recheck /dev/sdc<br />
grub<br />
grub&gt; root (hd3,0)<br />
grub&gt; setup (hd3)<br />
grub&gt; quit</code></p>
<p><code>shutdown -h now</code></p>
<p>Replace sda, sdb with new disks and power on</p>
<p>new partitioning sda,sda (man fdisk):</p>
<p><code>Â Â  Device Boot Â  Â  Â Start Â  Â  Â  Â  End Â  Â  Â Blocks Â  Id Â System<br />
/dev/sda1 Â  * Â  Â  Â  Â  Â  1 Â  Â  Â  Â 1217 Â  Â  9775521 Â  fd Â Linux raid autodetect<br />
/dev/sda2 Â  Â  Â  Â  Â  Â 1218 Â  Â  Â  60801 Â  478608480 Â  fd Â Linux raid autodetect</code></p>
<p>add sda1, sdb2 to md0<br />
<code>mdadm /dev/md0 --add /dev/sda1<br />
mdadm /dev/md0 --add /dev/sda2 (spare)</code></p>
<p>Make each disk bootable<br />
<code>grub-install --recheck /dev/sda<br />
grub-install --recheck /dev/sdb<br />
grub<br />
grub&gt; root (hd1,0)<br />
grub&gt; setup (h10)<br />
grub&gt; root (hd2,0)<br />
grub&gt; setup (hd2)<br />
grub&gt; quit</code></p>
<p>Assembe new md1 (with one missing disk)<br />
<code>mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sda2 /dev/sdb2 missing</code></p>
<p>Create pv of md1 and move data to it<br />
<code>pvcreate /dev/md1<br />
vgextend VG00 /dev/md1<br />
pvmove /dev/sdc2 /dev/md1</code></p>
<p>Remove temp pv and add sdc2 to raid md1<br />
<code>vgreduce VG00 /dev/sdc2<br />
pvremove /dev/sdc2<br />
mdadm /dev/md1 --add /dev/sdc2</code></p>
<p>Dump raid config<br />
<code>echo "DEVICE /dev/sda* /dev/sdb* /dev/sdc*" &gt; /etc/mdadm/mdadm.conf<br />
mdadm --detail --scan &gt;&gt; /etc/mdadm/mdadm.conf</code></p>
<p>That it, we are done!<br />
<code>cat /proc/mdstat<br />
Personalities : [raid1] [raid6] [raid5] [raid4]Â <br />
md1 : active raid5 sdc2[3] sda2[0] sdb2[1]<br />
Â Â  Â  Â 957216768 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]<br />
Â Â  Â  Â [&gt;....................] Â recovery = Â 3.8% (18258160/478608384) finish=107.4min speed=71383K/sec</code></p>
<p><code>md0 : active raid1 sda1[0] sdb1[2](S) sdc1[1]<br />
Â Â  Â  Â 4883648 blocks [2/2] [UU]</p>
<p></code></p>
<p><code>unused devices: </code></p>
<p><code>pvscanÂ <br />
Â Â PV /dev/md1 Â  VG VG00 Â  lvm2 [912,87 GB / 480,50 GB free]<br />
Â Â Total: 1 [912,87 GB] / in use: 1 [912,87 GB] / in no VG: 0 [0 Â  ]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2008/08/31/live-disk-migration-with-softraid-and-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Subversion Server for Tine 2.0</title>
		<link>http://corneliusweiss.de/2008/07/10/new-subversion-server-for-tine-20/</link>
		<comments>http://corneliusweiss.de/2008/07/10/new-subversion-server-for-tine-20/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 10:45:13 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[eGroupWare]]></category>
		<category><![CDATA[rootStuff]]></category>
		<category><![CDATA[tine 2.0]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=80</guid>
		<description><![CDATA[Yesterday we moved the Tine 2.0 subversion repository to a brand new Sun Xfire 2100 located in one of the Metaways data centers. With a connection bandwidth of 1000 Mbit/s, NAS, Automatic Tape Backups and all the other blessings of professional data center, it&#8217;s quite a neat home for our soucecode Commit times of the [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday we moved the <a href="http://www.tine20.org">Tine 2.0</a> <a href="http://svn.tine20.org/svn">subversion repository</a> to a brand new <a href="http://www.sun.com/servers/entry/x2100/index.xml">Sun Xfire 2100</a> located in one of the <a href="http://metaways.de">Metaways</a> data centers.</p>
<p>With a connection bandwidth of 1000 Mbit/s, NAS, Automatic Tape Backups and all the other blessings of professional data center, it&#8217;s quite a neat home for our soucecode <img src='http://corneliusweiss.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Commit times of the old <a href="https://sourceforge.net/">sourceforge</a> repository where about 15 seconds. On bad days we had to wait up to a minute for a single commit.</p>
<p>With the new Server it is now done in about a second!.</p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2008/07/10/new-subversion-server-for-tine-20/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>change suffix of a ldap database</title>
		<link>http://corneliusweiss.de/2008/01/01/change-suffix-of-a-ldap-database/</link>
		<comments>http://corneliusweiss.de/2008/01/01/change-suffix-of-a-ldap-database/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 19:46:32 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[rootStuff]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=56</guid>
		<description><![CDATA[There are these days in life of an admin, when there is no way around touching the ldap setup. There is this stupid database suffix I gave my very first ldap setup. As today is a public holiday, and there&#8217;s also a respectable rest of sparkling wine in the fridge, I took the chance to [...]]]></description>
			<content:encoded><![CDATA[<p>There are these days in life of an admin, when there is no way around touching the ldap setup. There is this stupid database suffix I gave my very first ldap setup.</p>
<p>As today is a public holiday, and there&#8217;s also a respectable rest of sparkling wine in the fridge, I took the chance to transform this suffix to one, fitting in the rest of my infrastructure.</p>
<p>As I haven&#8217;t found an adequate tool for changing the suffix in an ldif file, <a href="http://corneliusweiss.de/wp-content/uploads/2008/01/changesuffix">I post my script here</a>.  Hopefully there is someone out, I can help with it.</p>
<p>All you need to do, is to change the <code>$to</code> varibale in the top of the script. Than a<br />
<code>slapcat | changesuffix > my.ldif</code><br />
should do the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2008/01/01/change-suffix-of-a-ldap-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Safari 3 solves AltName issue</title>
		<link>http://corneliusweiss.de/2007/11/19/safari-3-solves-altname-issue/</link>
		<comments>http://corneliusweiss.de/2007/11/19/safari-3-solves-altname-issue/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 20:13:13 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[Internet security]]></category>
		<category><![CDATA[my favorite fruit]]></category>
		<category><![CDATA[rootStuff]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=38</guid>
		<description><![CDATA[TodayÂ Nils Toedtmann published a grave security issue. In Firefox, Konqueror and Opera an attacker could fake SSL secured sites.Thus, its possible that your browser shows a faked site https://mybank.com without a certificate warning. The good news for Mac users is, that in Leopard and the latest updates to Tiger ( I just checked this), this [...]]]></description>
			<content:encoded><![CDATA[<p>TodayÂ <a href="http://nils.toedtmann.net/pub/subjectAltName.txt" target="_blank">Nils Toedtmann published a grave security issue</a>. In Firefox, Konqueror and Opera an attacker could fake SSL secured sites.Thus, its possible that your browser shows a faked site <code>https://mybank.com</code> without a certificate warning.</p>
<p>The good news for Mac users is, that in Leopard and the latest updates to Tiger ( I just checked this), this problem is resolved. However, with my old notebook (not updated, safari 2.0.0.9) this kind of attackers is possible.</p>
<p><a href="http://test.eonis.net/" target="_blank">Use this site</a>Â to check if your Bother isÂ vulnerable.</p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2007/11/19/safari-3-solves-altname-issue/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>eGroupWare WebDAV on Mac OSX</title>
		<link>http://corneliusweiss.de/2007/11/18/egroupware-webdav-on-mac-osx/</link>
		<comments>http://corneliusweiss.de/2007/11/18/egroupware-webdav-on-mac-osx/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 20:54:18 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[eGroupWare]]></category>
		<category><![CDATA[rootStuff]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=37</guid>
		<description><![CDATA[eGroupWare&#8217;s filemanager content could be accessed by WebDAV for quite a while now by the URL http(s)://myegroupware/filemanager/webdav.php/home While this works quite OK for Linux and Windows, the build in WebDAV client of Mac OS X doesn&#8217;t talk with the eGroupWare server. The reason behind this is the fact, that the eGroupWare server only supports a [...]]]></description>
			<content:encoded><![CDATA[<p>eGroupWare&#8217;s filemanager content could be accessed by WebDAV for quite a while now by the URL<code></code></p>
<p><code>http(s)://myegroupware/filemanager/webdav.php/home</code></p>
<p><code></code><code></code>While this works quite OK for Linux and Windows, the build in WebDAV client of Mac OS X doesn&#8217;t talk with the eGroupWare server. The reason behind this is the fact, that the eGroupWare server only supports a rather simple version of WebDAV without locking. Locking prevents the so called &#8220;lose update&#8221; problem, when two clients try to work on the same file.</p>
<p>Today I found the time to resolve this problem and add locking support for the eGroupWare WebDAV client. This is a quick hack for me which only works with MySql as DBRM. Also locking is only implemented for the WebDAV server and <strong>not</strong> for the filemanager web-frontend.</p>
<p>To get it working you need to <a href="http://corneliusweiss.de/wp-content/uploads/2007/11/egw_vfs_locks.sql">add a table to your database</a> and patch your <code>phpgwapi/inc/class.webdav_server.inc.php</code> with the attached <a href="http://corneliusweiss.de/wp-content/uploads/2007/11/class.vfs_webdav_server.inc.php.patch">patch</a>.There is still a charset problem (as always) to be resolved which seems to lay deeper in the the WebDAV code. This will get resolved in <a href="http://www.egroupware20.org">eGroupWare 2.0</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2007/11/18/egroupware-webdav-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MAMP and Xdebug</title>
		<link>http://corneliusweiss.de/2007/11/01/mamp-and-xdebug/</link>
		<comments>http://corneliusweiss.de/2007/11/01/mamp-and-xdebug/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 16:55:51 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[eGroupWare]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rootStuff]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=10</guid>
		<description><![CDATA[MAMP is an extremely easy to install and use web-server with php and mysql for mac. Once, your projects become bigger, you&#8217;ll definitely feel the need for a php debugger. Xdebug is a powerful open-source php debugger i prefer over the other mostly closed source once. There is a powerful KDE tool for analysing Xdebug [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mamp.info/de/index.php">MAMP</a> is an extremely easy to install and use web-server with php and mysql for mac.</p>
<p>Once, your projects become bigger, you&#8217;ll definitely feel the need for a php debugger. <a href="http://xdebug.org/">Xdebug</a> is a powerful open-source php debugger  i prefer over the other mostly closed source once.  There is a powerful <a href="http://www.kde.org/">KDE</a> <a href="http://kcachegrind.sourceforge.net/cgi-bin/show.cgi">tool for analysing Xdebug</a> output, <a href="http://cs.officespot.net/index.php/Egroupware_performance_analysis">see this example</a>.</p>
<p>But as for now, i had no Xdebug extension for my mac development system, cause i didn&#8217;t want to recompile the web-server stuff. Today i found, that <a href="http://www.activestate.com/Products/komodo_ide/">Komodo</a> has a dynamic Xdebug  extension bundled with there commercial IDE.</p>
<p>As i use <a href="http://www.activestate.com/Products/komodo_ide/">Eclipse</a>, i don&#8217;t need this IDE, but i downloaded the IDE trial and extracted the <a href="http://corneliusweiss.de/wp-content/uploads/2007/11/xdebug.so">xdebug.so</a> for me.</p>
<p>If you have this xdebug.so, all you need to do is to place this into<br />
<code>/Applications/MAMP/Library/share/php/xdebug.so</code><br />
and then edit your <code>/Applications/MAMP/conf/php5/php.ini</code> like this:</p>
<p><code>; xdebug config Mac OS X<br />
zend_extension=/Applications/MAMP/Library/share/php/xdebug.so<br />
xdebug.remote_enable=1<br />
xdebug.remote_handler=dbgp<br />
xdebug.remote_mode=req<br />
xdebug.remote_host=127.0.0.1<br />
xdebug.remote_port=9000<br />
xdebug.idekey=</code></p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2007/11/01/mamp-and-xdebug/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>FSC ServerView on Debian</title>
		<link>http://corneliusweiss.de/2007/08/24/fsc-serverview-on-debian/</link>
		<comments>http://corneliusweiss.de/2007/08/24/fsc-serverview-on-debian/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 19:13:24 +0000</pubDate>
		<dc:creator>Cornelius Weiss</dc:creator>
				<category><![CDATA[rootStuff]]></category>

		<guid isPermaLink="false">http://corneliusweiss.de/?p=4</guid>
		<description><![CDATA[I really like FSC Servers, and i really like Debian. Unfortunally this two doesn&#8217;t like each other to much. So FSC does not offer the ServerView agents for Debian, but for SuSe and RedHat. Based on packages from Bytec for sarge and with the help of Nethanja here are the packages of the latest ServerView [...]]]></description>
			<content:encoded><![CDATA[<p>I really like FSC Servers, and i really like Debian. Unfortunally this two doesn&#8217;t like each other to much. So FSC does not offer the ServerView agents for Debian, but for SuSe and RedHat.</p>
<p>Based on packages from Bytec for sarge and with the help of Nethanja here are the packages of the latest ServerView (4.40-09) for etch.</p>
<p>Install mods-src first, than eecd and at last the agents.<br />
<a href="http://corneliusweiss.de/wp-content/uploads/srvmagt-mods-src_4.40-9_i386.deb">srvmagt-mods-src_4.40-9_i386.deb</a><br />
<a href="http://corneliusweiss.de/wp-content/uploads/srvmagt-eecd_4.40-9_i386.deb">srvmagt-eecd_4.40-9_i386.deb</a><br />
<a href="http://corneliusweiss.de/wp-content/uploads/srvmagt-agents_4.40-9_i386.deb">srvmagt-agents_4.40-9_i386.deb</a></p>
]]></content:encoded>
			<wfw:commentRss>http://corneliusweiss.de/2007/08/24/fsc-serverview-on-debian/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

