<?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>Alexander Holbreich&#187; Hardware</title> <atom:link href="http://alexander.holbreich.org/category/hardware/feed/" rel="self" type="application/rss+xml" /><link>http://alexander.holbreich.org</link> <description>Everything becomes a little different as soon as it is spoken out loud.  ~Hermann Hesse</description> <lastBuildDate>Wed, 01 Feb 2012 22:44:21 +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>Ubuntu vs. Windows XP on my Thinkpad</title><link>http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/</link> <comments>http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/#comments</comments> <pubDate>Sat, 20 Nov 2010 22:07:04 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Personal]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[thinkpad]]></category> <category><![CDATA[ubunto]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=678</guid> <description><![CDATA[Yesterday i  installed Ubuntu (10) linux alongside of Windows XP (SP3) on my Lenovo Thinkpad T60 &#8211; meanwhile 4 years  Laptop. To be short  i observe only start-time of both system on the same machine in this post. Here some hardware details: Intel Core Duo (T2400 -1,83 Mghz) 1 Gb RAM 60 GB 5400rpm  hard [...]]]></description> <content:encoded><![CDATA[<p>Yesterday i  installed Ubuntu (10) linux alongside of Windows XP (SP3) on my Lenovo Thinkpad T60 &#8211; meanwhile 4 years  Laptop. To be short  i observe only start-time of both system on the same machine in this post.</p><p>Here some hardware details:</p><ul><li>Intel Core Duo (T2400 -1,83 Mghz)</li><li>1 Gb RAM</li><li>60 GB 5400rpm  hard drive</li></ul><p>An here are starttimes on two Systems (in seconds):</p><p style="text-align: center;"><a href="http://alexander.holbreich.org/wp-content/uploads/2010/11/windows_vs_ubuntu.gif?4c9b33"><img class="size-full wp-image-679 aligncenter" title="windows_vs_ubuntu" src="http://alexander.holbreich.org/wp-content/uploads/2010/11/windows_vs_ubuntu.gif?4c9b33" alt="Windows vs. Ubuntu startup times" width="465" height="294" /></a></p><p>As we see Windows takes 1 minute from OS-Selection dialog till User-login dialog, whereas Ubunto takes  only 24 sec. Ok, windows checks  &#8220;security chip&#8221; (what it exactly means and why it so good for me i don&#8217;t know)  and that takes considerable time and i&#8217;m unsure whether Ubunto do something like this, but however i can&#8217;t change it.</p><p>On a graph we see also, that for the rest of &#8220;loading work&#8221; from login till first page appears in firefox browser windows takes more time again. It takes 95 seconds whereas Ubunto need only 19!  I was clicking on browser Icon as soon it appeared and was &#8220;clickable&#8221; and waited till pre-selected starting page (google) appears.</p><p>Of cause tas is not very strict measurement so maybe I&#8217;ve lost one or two seconds somewhere, who cares if</p><ul><li>Ubunto takes 24+19 =<strong>43 sec</strong></li><li>Windows takes 60+95 = <strong>155 sec</strong></li></ul><p>till i can use my typical day by day application. So now i can save more than a one and halfe minute of my life on every start of a system.</p><p>Respect Ubuntu, keep on going!</p> ]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Software RAID on Debian Linux</title><link>http://alexander.holbreich.org/2010/01/software-raid-debian/</link> <comments>http://alexander.holbreich.org/2010/01/software-raid-debian/#comments</comments> <pubDate>Thu, 14 Jan 2010 00:57:11 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[filesystem]]></category> <category><![CDATA[mdadm]]></category> <category><![CDATA[monitoring]]></category> <category><![CDATA[raid 1]]></category> <category><![CDATA[raid test]]></category> <category><![CDATA[software raid]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=423</guid> <description><![CDATA[Wow, my last post here is month ago. But don&#8217;t worry I did not forget about my blog. There are just many thing happened in my life, all of them are time consuming So there no reason to remove me from your RSS reader. Today i will share some thought on software RAID under linux [...]]]></description> <content:encoded><![CDATA[<p>Wow, my last post here is month ago. But don&#8217;t worry I did not forget about my blog. There are just many thing happened in my life, all of them are time consuming <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_smile.gif?4c9b33" alt=':)' class='wp-smiley' /> So there no reason to remove me from your RSS reader. Today i will share some thought on software RAID under linux with you.</p><div class="wp-caption alignright" style="width: 216px"><img title="RAID 1" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/RAID_1.svg/325px-RAID_1.svg.png" alt="RAID 1" width="206" height="286" /><p class="wp-caption-text">RAID 1</p></div><p>Sometimes you need to store data relative save and high available. That is where RAID solutions come in to play. Especially RAID 1 (mirroring) based solutions provide better availability of your data. But don&#8217;t forget to use backs anyway <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_smile.gif?4c9b33" alt=':)' class='wp-smiley' /></p><p>Some days ago i installed RAID 1 on Debian Lenny (amd64 arch) without any troubles for now.<br /> I just was following <a href="http://dev.jerryweb.org/raid/">Jerry&#8217;s description</a> which is enough detailed to make no mistakes except maybe one thing.<br /> The Partitions used in the RAID /dev/md0/ should both enable boot flag if you want to boot from RAID.<br /> This is worked for me.</p><h2>Configuration</h2><p>My configuration is the same as Jerry&#8217;s except partition sizes and chosed LVM. So boot is done form RAID partition /dev/md0. And SWAP is on RAID too, which is controversy solution but it the best one for me, of course availability of a system is primary goal.</p><p>So how to check the state of raid after installation. The simplest is to look on /proc file-system with <em>$cat /proc/mdstat</em>. Here is my configuration.</p><pre class="brush: bash; title: ; notranslate">
$cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda2[0] sdb2[1]
476560128 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
497856 blocks [2/2] [UU]

unused devices: &lt;none&gt;
</pre><p>Here you see two RAID arrays <em>md0</em> and<em> md1</em>. Also information about used devices and state are peresent. <em>[UU] </em>stand for &#8220;used&#8221; for every disc is used in a raid. On diskfailure you wold see something like <em>[U_] </em>and <em>sdb2(F)</em>.</p><p>Next example utilizes <strong>mdadm</strong> which is used by kernel in latest kernel versions. My is 2.6.26-2-amd64 (lenny default)<br /> Use of <em>&#8211;detail </em>or <em>-D</em> option with a device name gives more information. Here my example.</p><pre class="brush: bash; title: ; notranslate">
# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90
Creation Time : Wed Jan  6 00:51:37 2010
Raid Level : raid1
Array Size : 476560128 (454.48 GiB 488.00 GB)
Used Dev Size : 476560128 (454.48 GiB 488.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Mon Jan 11 02:18:01 2010
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : fe3bbbfd:2c6963e7:9785a408:be715448
Events : 0.8

Number   Major   Minor   RaidDevice State
0       8        2        0      active sync   /dev/sda2
1       8       18        1      active sync   /dev/sdb2
</pre><p><span id="more-423"></span></p><h2>GRUB Config</h2><p>If you wish that your system is able to boot even if one of disks fails completely. You need to write  GRUB loader on every hard disk separately.</p><p>Here the example for hd0 ( fist hard disk)</p><pre class="brush: bash; title: ; notranslate">
$ grub
grub&gt; root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub&gt; setup (hd0)
setup (hd0)
Checking if &quot;/boot/grub/stage1&quot; exists... no
Checking if &quot;/grub/stage1&quot; exists... yes
Checking if &quot;/grub/stage2&quot; exists... yes
Checking if &quot;/grub/e2fs_stage1_5&quot; exists... yes
Running &quot;embed /grub/e2fs_stage1_5 (hd0)&quot;...  17 sectors are embedded.
succeeded
Running &quot;install /grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/grub/stage2 /grub/menu.lst&quot;... succeeded
Done.
</pre><p>Run the same also for second disk.</p><pre class="brush: bash; title: ; notranslate">
grub&gt; root (hd1,0)
...
grub&gt; setup (hd1)
</pre><p>Also your GRUB configuration should enabe loading form the first and alternatively the second disk.</p><pre class="brush: bash; title: ; notranslate">
default 0
fallback  1
# is there after installation
title           Debian GNU/Linux, kernel 2.6.18-6-686 Raid (hd0)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-6-686 root=/dev/md0 ro
initrd          /boot/initrd.img-2.6.18-6-686

# manually created
title           Debian GNU/Linux, kernel 2.6.18-6-686 Raid (hd1)
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.18-6-686 root=/dev/md0 ro
initrd          /boot/initrd.img-2.6.18-6-686
</pre><p>The default option declares the first configuration to run on default. fallback option forces grub to load fallback configuration (here hd1)<br /> when the firt one could not start.</p><p>You&#8217;r done.</p><h2>Monitoring</h2><p>Once you run your &#8220;high&#8221;-available RAID you&#8217;re probably very interested to be informed about problems with it.<br /> E.g. on a failure of one (hope only one) HD device.</p><p>Yet i know only two most common solutions for monitoring Software RAID. First of it bases on <a href="http://www.nagios.org/" target="_blank">Nagios tool</a>, but is not described here, because not tired yet. The second is to involve mdadm again.</p><p>The  option <em>&#8211;monitor</em> causes mdadm periodically poll a your md arrays and to inform you on every events that occurs. mdadm should never exit process, so it should normally be run in the background.<br /> Here is example of sending a mail on event. Of course sendmail must be configured.</p><pre class="brush: bash; title: ; notranslate">
mdadm --monitor --mail=admin@yourcompany.com --scan --delay=1800 -ft
</pre><p>It would run a monitor deamon which scanns all of RAID arrays with delay. The option <em>f</em> starts it as deamon process and <em>t</em> option generates test messages on a startup.</p><p>When you want to run mdadm through crone job so use option <em>-1</em></p><pre class="brush: bash; title: ; notranslate">
mdadm --monitor--scan -1
</pre><p>Also this would send your mail or run program which are specified in /etc/mdadm.conf file.<br /> Please see <a href="http://linux.die.net/man/8/mdadm" target="_blank">manual of mdadm</a> for more details.</p><h2>Test Performance</h2><p>You can test our physical drives with hdparm utility e.g.</p><pre class="brush: bash; title: ; notranslate">
hdparm -tT /dev/hda
</pre><p>But hdparm would not correct work on your <em>mdX</em> RAID arrays.</p><p>So one of the simplest methods is to try <em>time</em> utility.</p><pre class="brush: bash; title: ; notranslate">
time dd if=/dev/md0 of=/dev/null bs=1024k count=1000
</pre><p>This test reads 1 GB data file from you RAID Array but reports to copy only something like &#8220;509804544 Bytes (510 MB) in 5,73989 s, 88,8 MB/s&#8221; by me. So why only half of the Gigabyte? Just be cause it utilizes two devices, as i think, and indeed it copies 500MB two times parallel = 1 Gig. And this only in the half of time as it needed to red 1 Gigabyte from physical <em>/dev/sda </em>directly.</p><pre class="brush: bash; title: ; notranslate">
time dd if=/dev/zero bs=1024k count=1000 of=/home/1Gb.file
</pre><p>This test writes 1 Gb file on RAID partition <em>/home</em> . Therefore you can compare write performance with RAID and non raid partitions but don&#8217;t expect any considerable advantages on Mirroring systems <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_wink.gif?4c9b33" alt=';)' class='wp-smiley' /></p><p>The last one more professional but also complex tools is <a href="http://www.iozone.org/">iozone</a>. It can perform a various of tests,which can&#8217;t be explained here detailed.<br /> Please read manual if you really need to test your raid that way. Alternatively you can start <em>iozone</em> in automatic mode, which performs various of tests (relative long-running) and prints on console.</p><pre class="brush: bash; title: ; notranslate">
iozone -a
</pre><p>See on <em>Strided Read</em> column which should consider software RAID bonus.</p><h2>Failure and Recovery</h2><p>RAID 1 should preserve you from data loose and improve your scalability. So it  is very good idea to has relative good knowledge of what to do on Failure. Best way to get this knowledge is to simulate failure. Take try to remove one disk and put it again into array.</p> ]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/01/software-raid-debian/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Microsoft invents IPhone</title><link>http://alexander.holbreich.org/2007/02/microsoft-invents-iphone/</link> <comments>http://alexander.holbreich.org/2007/02/microsoft-invents-iphone/#comments</comments> <pubDate>Mon, 19 Feb 2007 13:59:51 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[Humour]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[microsoft]]></category> <category><![CDATA[money]]></category><guid isPermaLink="false">http://alexander.holbreich.org2007/02/microsoft-invents-iphone/</guid> <description><![CDATA[As you may remember already wrote about new &#8220;mobile Toy&#8221; &#8211; iPhone. Who do you think invent the this Phone? The REUTERS press agency mean it is of course Microsoft product. In the article &#8220;Microsoft warnt vor Ã¼berhÃ¶hten Erwartungen an Vista&#8221; (ger. &#8220;Microsoft warns from banked expectations on Vista&#8221;) from 17 Feb. 2007 they write: [...]]]></description> <content:encoded><![CDATA[<p>As you may remember already wrote about new &#8220;mobile Toy&#8221; &#8211; iPhone. Who do you think invent the this Phone? <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_wink.gif?4c9b33" alt=';)' class='wp-smiley' /></p><p>The REUTERS press agency mean it is of course Microsoft product. In the article &#8220;Microsoft warnt vor Ã¼berhÃ¶hten Erwartungen an Vista&#8221; (ger. &#8220;Microsoft warns from banked expectations on Vista&#8221;) from 17 Feb. 2007 they write:</p><p><img id="image70" src="http://alexander.holbreich.org/wp-content/uploads/2007/02/microsoft-iphone.thumbnail.JPG" alt="The IPhone article" /> <em>Das Geld ermÃ¶glicht Microsoft hohe Investitionen in andere Bereiche, etwa fÃ¼r den digitalen Musikspielern iPod und Online-Dienste. Erst jÃ¼ngst hatte Microsoft zudem das &#8220;iPhone&#8221; vorgestellt, ein Multimedia-Mobiltelefon</em></p><p>Translated: <em>&#8230; Money makes it possibly for Microsoft to make high investments in other Domains so for example in Music player iPod and online Services. Quite recently Microsoft has presented &#8220;iPhone&#8221; &#8211; the multimedia Mobile Phone</em>.</p><p>So that means REUTERS <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_smile.gif?4c9b33" alt=':)' class='wp-smiley' /> So far on press agencies. <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_smile.gif?4c9b33" alt=':)' class='wp-smiley' /></p><p>The are often things like this in the press, of course in political articles too, may be i provide some of them in the future. For now Enjoy the <a title="Gates v.s. Jobs" href="http://www.youtube.com/watch?v=qHO8l-Bd1O4&amp;" target="_blank">Small video about Bill Gates and Steve Jobs</a> <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_wink.gif?4c9b33" alt=';)' class='wp-smiley' /></p><ul><li><a title="REUTERS mistake" href="http://de.today.reuters.com/news/newsArticle.aspx?type=companiesNews&amp;storyID=2007-02-16T163103Z_01_HUB659453_RTRDEOC_0_USA-FIRMEN-MICROSOFT-2ZF.xml" target="_blank">Original Article (Text not changed, last checked on 19.02.07)</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2007/02/microsoft-invents-iphone/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/11 queries in 0.011 seconds using disk: basic
Object Caching 596/608 objects using disk: basic

Served from: alexander.holbreich.org @ 2012-02-04 20:22:52 -->
