<?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>Sebastian Mogilowskis Blog &#187; raid</title>
	<atom:link href="http://www.mogilowski.net/lang/en-us/tag/raid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mogilowski.net</link>
	<description>Just another blog about administration, linux and other stuff</description>
	<lastBuildDate>Tue, 17 Jan 2012 13:42:30 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux Software RAID 5 on Debian Lenny or Ubuntu</title>
		<link>http://www.mogilowski.net/lang/en-us/2009/09/28/linux-software-raid-5-on-debian-lenny-or-ubuntu</link>
		<comments>http://www.mogilowski.net/lang/en-us/2009/09/28/linux-software-raid-5-on-debian-lenny-or-ubuntu#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:49:30 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=580</guid>
		<description><![CDATA[This is an update Post for my old Howto http://www.mogilowski.net/lang/de-de/2008/05/09/linux-software-raid-5-unter-debian-etch for Debian Lenny and Ubuntu. In this configuration i created a raid 5 with the drives sda, sdb, sdc and sdc. (Change it to your configuration if you need it.) 1. Installation aptitude install mdadm 2. Create Raid Insert this line in the mdadm config [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us">This is an update Post for my old Howto <a href="http://www.mogilowski.net/lang/de-de/2008/05/09/linux-software-raid-5-unter-debian-etch">http://www.mogilowski.net/lang/de-de/2008/05/09/linux-software-raid-5-unter-debian-etch</a> for Debian Lenny and Ubuntu.</span></p>
<p><span lang="en-us">In this configuration i created a raid 5 with the drives sda, sdb, sdc and sdc. (Change it to your configuration if you need it.)</span></p>
<h3>1. Installation</h3>
<pre>
aptitude install mdadm
</pre>
<h3><span lang="en-us">2. Create Raid</span></h3>
<p><span lang="en-us">Insert this line in the mdadm config file &#8220;/etc/mdadm/mdadm.conf&#8221;:</span></p>
<pre>
ARRAY /dev/md0 level=raid5 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
</pre>
<p><span lang="en-us">Now create the raid:</span></p>
<pre>
mdadm --create /dev/md0 --verbose --level=raid5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
</pre>
<p><span lang="en-us">The following command shows you some details of your new raid:</span></p>
<pre>
mdadm --detail /dev/md0
</pre>
<p><span lang="en-us">Look at:</span></p>
<pre>
Rebuild Status : 2% complete
</pre>
<p><span lang="en-us">This shows you, that the raid is build in background, but you can already use it if you like.</span></p>
<pre>
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
</pre>
<p><span lang="en-us">This shows you that all 4 disks are working and none of them is missing.</span></p>
<h3><span lang="en-us">3. Format</span></h3>
<p><span lang="en-us">Now format your new raid device. With ext3 for example:</span></p>
<pre>
mke2fs -j /dev/md0
</pre>
<p><span lang="en-us">Mount the new partition:</span></p>
<pre>
(mkdir /media/raid)
mount /dev/md0 /media/raid
</pre>
<p><span lang="en-us">or add it directly to /etc/fstab&#8221;:</span></p>
<pre>
/dev/md0 /media/raid ext3 suid,dev,exec  0  0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/en-us/2009/09/28/linux-software-raid-5-on-debian-lenny-or-ubuntu/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux Software RAID 5 unter Debian Etch</title>
		<link>http://www.mogilowski.net/lang/en-us/2008/05/09/linux-software-raid-5-unter-debian-etch</link>
		<comments>http://www.mogilowski.net/lang/en-us/2008/05/09/linux-software-raid-5-unter-debian-etch#comments</comments>
		<pubDate>Fri, 09 May 2008 19:19:38 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[softwareraid]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=22</guid>
		<description><![CDATA[Update: Neuere Version unter: http://www.mogilowski.net/lang/de-de/2009/09/28/linux-software-raid-5-on-debian-lenny-or-ubuntu Bei der Installation des Debian Routers habe ich bereits Erfahrungen mit dem Software RAID unter Linux gemacht. Dort wurde das RAID jedoch gleich bei der Installation angelegt, dies geht durch die Installationsroutine relativ leicht. Nachdem ich nun meinen Fileserver schon vor einiger Zeit auf Debian umgestellt habe, war das Problem, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> Neuere Version unter: <a href="http://www.mogilowski.net/lang/de-de/2009/09/28/linux-software-raid-5-on-debian-lenny-or-ubuntu">http://www.mogilowski.net/lang/de-de/2009/09/28/linux-software-raid-5-on-debian-lenny-or-ubuntu</a></p>
<p>Bei der Installation des Debian Routers habe ich bereits Erfahrungen mit dem Software RAID unter Linux gemacht. Dort wurde das RAID jedoch gleich bei der Installation angelegt, dies geht durch die Installationsroutine relativ leicht.</p>
<p>Nachdem ich nun meinen Fileserver schon vor einiger Zeit auf Debian umgestellt habe, war das Problem, dass das SATA RAID 5 des Gigabyte Mainboards nicht unter Linux läuft, da es sich leider dabei um kein echtes RAID handelt. Aus diesem Grund soll es durch ein Linux Software RAID ersetzt werden.</p>
<p>Installation:<br />
<span style="font-size: x-small;">aptitude install mdadm</span></p>
<p>In dieser Konfiguration sollen die Festplatten sda sdb sdc sdd zu einem RAID 5 verbunden werden.<br />
Auf jeder Platte muss eine leere Primäre Partition angelegt sein.</p>
<p><span style="font-size: x-small;">fdisk /dev/sda</span><br />
Bevor man eine Partition anlegen kann, muss man zuerst eine neue DOS Partitionstabelle erzeugen. Dies geschieht mit &#8220;<strong>o</strong>&#8220;.<br />
Danach &#8220;<strong>n</strong>&#8221; auswählen um eine neue Partition anzulegen. Danach &#8220;<strong>p</strong>&#8221; für eine primäre Partition sowie &#8220;<strong>1</strong>&#8221; als Partitionsnummer. Die Frage nach dem Ersten und Letzten Zylinder sollte man auf den Standardeinstellungen belassen.<br />
Mit &#8220;<strong>w</strong>&#8221; werden die Änderungen übernommen und fdisk wieder verlassen (kann etwas dauern). Mit &#8220;<strong>q</strong>&#8221; wird fdisk verlassen ohne die Änderungen zu speichern.<br />
Dies wird nun für sdb, sde und sdd wiederholt, bzw. auf einer anderen Konsole parallel ausgeführt.</p>
<p>Nun sollte &#8220;<em>ls /dev/sd*</em>&#8221; für jede Festplatte auch eine Partiton anzeigen. Dies sieht man daran das für <em>/dev/sda</em> nun auch <em>/dev/sda1</em> vorhanden ist. Für sdb,sdc und sdd natürlich analog.</p>
<p>Als nächstes wird nun das RAID angelegt. Dazu öffnet man die Konfigurationsdatei <strong>/etc/mdadm/mdadm.conf </strong>und fügt die folgenden beiden Zeilen an:<br />
<span style="font-size: x-small;"><br />
DEVICE /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1<br />
ARRAY /dev/md0 level=raid5 devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1<br />
</span><br />
Danach kann man das Software RAID starten:</p>
<p><span style="font-size: x-small;">mdadm -As /dev/md0</span></p>
<p>Nun kann man sich mit:</p>
<p><span style="font-size: x-small;">mdadm &#8211;detail /dev/md0</span></p>
<p>Den Status und einige andere Informationen des RAIDs anzeigen lassen. Unter anderem ist folgende Zeile wichtig:</p>
<p><span style="font-size: x-small;">Rebuild Status : 2% complete</span></p>
<p>Das RAID wird also im Hintergrund gerade aufgebaut. Es kann aber bereits verwendet werden. Außerdem:<br />
<span style="font-size: x-small;"><br />
Active Devices : 4<br />
Working Devices : 4<br />
Failed Devices : 0<br />
Spare Devices : 0<br />
</span><br />
Zeigt an, dass alle 4 Festplatten arbeiten und keine ausgefallen ist.</p>
<p>Nun kann die Raid Festplatte md0 wie jede andere Formatiert werden zum Beispiel mit EXT3:</p>
<p><span style="font-size: x-small;">mke2fs -j /dev/md0</span></p>
<p>Danach kann man die Partiton mounten</p>
<p><span style="font-size: x-small;">mount /dev/md0 /media/raid</span></p>
<p>bzw. zur /etc/fstab hinzufügen:</p>
<p><span style="font-size: x-small;">/dev/md0 /media/raid ext3 suid,dev,exec  0  0</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/en-us/2008/05/09/linux-software-raid-5-unter-debian-etch/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 27/48 queries in 0.037 seconds using apc
Object Caching 557/557 objects using apc
Content Delivery Network via cdn.mogilowski.net

Served from: www.mogilowski.net @ 2012-02-07 05:48:43 -->
