<?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>Lars Schenk &#187; RAID</title>
	<atom:link href="http://lars-schenk.com/tag/raid/feed" rel="self" type="application/rss+xml" />
	<link>http://lars-schenk.com</link>
	<description>IT-Services :: Software-Development since 1980 :: Freelancer since 1988</description>
	<lastBuildDate>Thu, 10 Jun 2010 22:51:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installation Debian Etch auf einem Software-RAID 1 mit SATA Disks</title>
		<link>http://lars-schenk.com/installation_debian_etch_auf_einem_software-raid_1_mit_sata_disks/92</link>
		<comments>http://lars-schenk.com/installation_debian_etch_auf_einem_software-raid_1_mit_sata_disks/92#comments</comments>
		<pubDate>Thu, 04 Jan 2007 11:20:15 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Etch]]></category>
		<category><![CDATA[RAID]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/installation_debian_etch_auf_einem_software-raid_1_mit_sata_disks/92</guid>
		<description><![CDATA[Folgende Situation: Ein neuer Server mit SATA II Disks soll unter Linux im RAID1 Verbund laufen aber der sogenannte RAID-Controller vom Motherboard wird nicht unterstützt. Da nur RAID1 benötigt wird und Linux das einzige System werden soll, tut es auch die Linux-Software-Raid Unterstützung. Das MoBo hat den Intel ICH7 Chipset onboard, welcher AHCI mit HotPlug [...]]]></description>
			<content:encoded><![CDATA[<p>Folgende Situation: Ein neuer Server mit SATA II Disks soll unter Linux im RAID1 Verbund laufen aber der sogenannte RAID-Controller vom Motherboard wird nicht unterstützt. Da nur RAID1 benötigt wird und Linux das einzige System werden soll, tut es auch die Linux-Software-Raid Unterstützung. Das MoBo hat den Intel ICH7 Chipset onboard, welcher <a href="http://de.wikipedia.org/wiki/Advanced_Host_Controller_Interface">AHCI</a> mit HotPlug und <a href="http://de.wikipedia.org/wiki/NCQ">NCQ (Native Command Queuing)</a> unterstützt - also soll dieses idealerweise aktiviert werden. Soweit die Zielsetzung - doch bevor ich das umsetzen konnte musste ich erstmal etwas Hintergrundwissen aufsaugen und einige Hürden nehmen:<span id="more-92"></span></p>
<p>Die erste Hürde: Das Asus P5WDB2 WS PRO MoBo bootet die Debian Etch PreRelease mit Stand vom 02.01.2007 nicht sondern bleibt sehr früh hängen. Erst nachdem ich im BIOS bei den Advanced-Einstellungen den Marvell SATA Controller für den zweiten sog. zweiten onboard Raid-Controller deaktiviert habe, kommt der Debian Etch-Installer überhaupt weiter.</p>
<p>Allgemeine Hintergrund-Info zu RAID im allgemeinen und auch Hardware-RAID vs. Software-RAID gibt es <a href="http://de.wikipedia.org/wiki/RAID">hier</a>.<br />
SATA RAID (oft auch als FakeRAID bezeichnet) unter Linux ist offenbar ein Thema was in letzter Zeit immer mehr nachgefragt wird, weil nahezu alle aktuellen MoBos RAID für SATA versprechen, die aber bei <a href="http://linux-ata.org/driver-status.html">genauerem Hinschauen dann oft doch nur Software-RAID-Lösungen im Bios sind, die dazu noch einen Treiber benötigen, den es oft für Linux noch nicht gibt.</a>.<br />
Diese Lösungen sind also für Windows entwickelt und greifen auf Treiber zurück, die es für Linux i.d.R. noch nicht gibt.<br />
Ich denke, man sollte generell diese FakeRAID Lösungen für Linux meiden und die RAID-Unterstützung im BIOS deaktivieren und statt dessen auf das gut erprobte Linux Software-Raid dmraid zurückgreifen. Da FakeRaid kein echtes Hardware-RAID ist, bringt es auch keine Vorteile gegenüber dem Linux-Softwareware-RAID. Im Gegenteil: Man greift auf herstellerspezifische Lösungen zurück, die an diese Produktversionen binden (vergleich auch den berits oben verlinkten Wikipedia Artikel über <a href="http://de.wikipedia.org/wiki/RAID#Hardware-RAID">Hardware-RAID</a>).</p>
<p>AHCI im Bios aktivieren:<br />
Also habe ich im BIOS des Asus P5WDG2 WS PR MoBos die IDE Configuration aus diesen Gründen nicht auf RAID eingestellt. Auch die Einstellung beim Intel ICH7 basierten SATA Controller auf "Standard IDE" wäre nur eine Notlösung, wenn der Kernel nicht das AHCI unterstüzten würde. Mit "Standard IDE" bekommt man zwar auch das gewünschte RAID1 Software-Array unter Linux aufgesetzt, hat dann aber keine Hotplug/Hotswap Funktionalität, weil der ICH7 Chipset im Standard-IDE Modus dieses nicht leistet. Weiterhin wird im Standard-IDE Modus kein NCQ unterstützt. Standard-IDE kommt also ohne die zusätzlichen Features von SATA oder SATA II daher.<br />
NCQ wird aber vom ICH7 Chipset und den WD5000YS Laufwerken unterstützt und sollte daher auch zur Leistungssteigerung aktiviert werden, zumale im aktuellen Kernel von Etch der Version 2.6.18-3 AHCI auch unterstützt wird (laut <a href="http://linux-ata.org/driver-status.html#ahci">http://linux-ata.org/driver-status.html#ahci</a> wird AHCI ab Kernel >= 2.6.18-git5 unterstützt). Ich habe also im BIOS auf AHCI gestellt (Full NCQ support, full SATA control including hotplug and PM., AHCI is a nice, open design.) und auch ALPE (Agressive Link Power Management) und ASP (Agressive Slumber/Partial) enabled. Damit wird der SATA Controller in den nativen Modus geschaltet und unterstützt auch Hotplug sowie das Permance-Steigernde NCQ. Wenn später alles installiert ist, kann man nach dem Reboot das dmesg angeschauen um, zu prüfen, dass AHCI und NCQ aktiviert sind:</p>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showPlainTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ahci <span style="color:#800000;color:#800000;">0000</span>:<span style="color:#800000;color:#800000;">00</span>:1f.<span style="color:#800000;color:#800000;">2</span>: AHCI <span style="color:#800000;color:#800000;">0001</span>.<span style="color:#800000;color:#800000;">0100</span> <span style="color:#800000;color:#800000;">32</span> slots <span style="color:#800000;color:#800000;">4</span> ports <span style="color:#800000;color:#800000;">3</span> Gbps 0xf impl SATA mode</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ahci <span style="color:#800000;color:#800000;">0000</span>:<span style="color:#800000;color:#800000;">00</span>:1f.<span style="color:#800000;color:#800000;">2</span>: flags: 64bit ncq pm led clo pio slum part</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata1: SATA max UDMA/<span style="color:#800000;color:#800000;">133</span> cmd 0xF88AE900 ctl 0x0 bmdma 0x0 irq <span style="color:#800000;color:#800000;">58</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata2: SATA max UDMA/<span style="color:#800000;color:#800000;">133</span> cmd 0xF88AE980 ctl 0x0 bmdma 0x0 irq <span style="color:#800000;color:#800000;">58</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata3: SATA max UDMA/<span style="color:#800000;color:#800000;">133</span> cmd 0xF88AEA00 ctl 0x0 bmdma 0x0 irq <span style="color:#800000;color:#800000;">58</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata4: SATA max UDMA/<span style="color:#800000;color:#800000;">133</span> cmd 0xF88AEA80 ctl 0x0 bmdma 0x0 irq <span style="color:#800000;color:#800000;">58</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">scsi0 : ahci</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata1: SATA link up <span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">0</span> Gbps <span style="color:#006600; font-weight:bold;">&#40;</span>SStatus <span style="color:#800000;color:#800000;">123</span> SControl <span style="color:#800000;color:#800000;">300</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata1.<span style="color:#800000;color:#800000;">00</span>: ATA-<span style="color:#800000;color:#800000;">7</span>, max UDMA/<span style="color:#800000;color:#800000;">133</span>, <span style="color:#800000;color:#800000;">976773168</span> sectors: LBA48 NCQ <span style="color:#006600; font-weight:bold;">&#40;</span>depth <span style="color:#800000;color:#800000;">31</span>/<span style="color:#800000;color:#800000;">32</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata1.<span style="color:#800000;color:#800000;">00</span>: ata1: dev <span style="color:#800000;color:#800000;">0</span> multi count <span style="color:#800000;color:#800000;">16</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata1.<span style="color:#800000;color:#800000;">00</span>: configured for UDMA/<span style="color:#800000;color:#800000;">133</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">scsi1 : ahci</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata2: SATA link up <span style="color:#800000;color:#800000;">3</span>.<span style="color:#800000;color:#800000;">0</span> Gbps <span style="color:#006600; font-weight:bold;">&#40;</span>SStatus <span style="color:#800000;color:#800000;">123</span> SControl <span style="color:#800000;color:#800000;">300</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata2.<span style="color:#800000;color:#800000;">00</span>: ATA-<span style="color:#800000;color:#800000;">7</span>, max UDMA/<span style="color:#800000;color:#800000;">133</span>, <span style="color:#800000;color:#800000;">976773168</span> sectors: LBA48 NCQ <span style="color:#006600; font-weight:bold;">&#40;</span>depth <span style="color:#800000;color:#800000;">31</span>/<span style="color:#800000;color:#800000;">32</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata2.<span style="color:#800000;color:#800000;">00</span>: ata2: dev <span style="color:#800000;color:#800000;">0</span> multi count <span style="color:#800000;color:#800000;">16</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata2.<span style="color:#800000;color:#800000;">00</span>: configured for UDMA/<span style="color:#800000;color:#800000;">133</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">scsi2 : ahci</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata3: SATA link down <span style="color:#006600; font-weight:bold;">&#40;</span>SStatus <span style="color:#800000;color:#800000;">0</span> SControl <span style="color:#800000;color:#800000;">300</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">scsi3 : ahci</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ata4: SATA link down <span style="color:#006600; font-weight:bold;">&#40;</span>SStatus <span style="color:#800000;color:#800000;">0</span> SControl <span style="color:#800000;color:#800000;">300</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Vendor: ATA&nbsp; &nbsp; &nbsp; &nbsp;Model: WDC WD5000YS-01M&nbsp; Rev: <span style="color:#800000;color:#800000;">07</span>.<span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Type:&nbsp; &nbsp;Direct-Access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANSI SCSI revision: <span style="color:#800000;color:#800000;">05</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Vendor: ATA&nbsp; &nbsp; &nbsp; &nbsp;Model: WDC WD5000YS-01M&nbsp; Rev: <span style="color:#800000;color:#800000;">07</span>.<span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Type:&nbsp; &nbsp;Direct-Access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANSI SCSI revision: <span style="color:#800000;color:#800000;">05</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Es ist nun also alles vorbereitet für das eigentlich Einrichten das RAID1 und die Installation von Linux. </p>
<p>Leider ist die Installation des Software-Raids nicht so leicht. Für Ubuntu ist es offenbar überhaupt nicht vorgesehen, so dass man über einen Trick mit der Live-CD ein Raid einrichten muss und dann in das "on the fly" eingerichtete RAID hineininstalliert. Wer diesen Weg gehen möchte finde hier eine Anleitung: http://www.ubuntu-in.org/wiki/SATA_RAID_Howto.</p>
<p>Fedora soll da mit dem Installer schon weiter sein, aber ich würde gerne Debian oder zumindest Ubuntu einsetzen. </p>
<p>Debian Etch ist zwar immer noch nicht offiziell released worden, aber die Debian Testing gilt immer schon als sehr stabil, so dass ich mich für den aktuellen Build von Etch entscheide. Hierbei orientiere ich mich an "<a href="http://ads.wars-nicht.de/blog/archives/54-Install-Debian-Etch-on-a-Software-Raid-1-with-S-ATA-disks.html">Install Debian Etch on a Software Raid 1 with S-ATA disks</a>":</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Boot the Debian Etch installer.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># If the installation comes to <span style="color:#CC0000;">"Partition method"</span>, use <span style="color:#CC0000;">"Manual"</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># In the following menu, scroll to your first disk and hit enter: the partitionier asks you, if you want to create an empty partition table. <span style="">Say</span> <span style="color:#CC0000;">"yes"</span>. <span style="color:#006600; font-weight:bold;">&#40;</span>Hint: this will erase your existing data, if any.<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># The partitioner is back in the disk overview, scroll one line downwards over the line with <span style="color:#CC0000;">"FREE SPACE"</span> and hit enter.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Create a partition with the size you need, but remember the size and the logical type.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># In the <span style="color:#CC0000;">"Partition settings"</span> menu, go to <span style="color:#CC0000;">"Use as"</span> and hit enter.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Change the type to <span style="color:#CC0000;">"physical volume for RAID"</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Finish this partition with <span style="color:#CC0000;">"Done setting up the partition"</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Create other partitions on the same disk, if you like.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Now repeat all the steps from the first disk for the second disk.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># After this, you should have at least two disks with the same partition schema and all partitions <span style="color:#006600; font-weight:bold;">&#40;</span>beside swap<span style="color:#006600; font-weight:bold;">&#41;</span> should be marked for RAID use.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Now look at the first menu entry in the partitioner menu, there is a new line: <span style="color:#CC0000;">"Configure software RAID"</span>. <span style="">Go</span> into this menu.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Answer the question, if you like to write the changes, with <span style="color:#CC0000;">"Yes"</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Now pick <span style="color:#CC0000;">"Create MD device"</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Use RAID1 and give the number of active and spare devices <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">2</span> and <span style="color:#800000;color:#800000;">0</span> in our case<span style="color:#006600; font-weight:bold;">&#41;</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># In the following menu, select the same device number on the first and second disk and Continue.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># Repeat this step for every two devices until you are done. <span style="">Then</span> use <span style="color:#CC0000;">"Finish"</span> from the Multidisk configuration options.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># You are back in the partitioner menu and now you see one ore more new partitions named as <span style="color:#CC0000;">"Software RAID Device"</span>. <span style="">You</span> can use this partitions like any normal partition and continue installing your system. </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Eine weiterführende Variante berücksichtigt auch noch die Einrichtung von LVM "Installing root on LVM + RAID with debian-installer": <a href="http://dev.jerryweb.org/raid/">http://dev.jerryweb.org/raid/</a></p>
<p>Nachdem das RAID1 eingerichtet ist und in das frisch installierte System gebootet wurde, kann via mdadm das Raid geprüft (mdadm --detail /dev/md0) , überwacht und administriert werden. Siehe dazu "man mdadm" oder auch im <a href="http://tldp.org/HOWTO/Software-RAID-HOWTO-6.html">Software-RAID-HowTO</a>. Dort werden wichtige Kommando zum Entfernen (z.B. mdadm /dev/md0 -r /dev/sdc2) und hinzufügen (z.B. mdadm /dev/md0 -a /dev/sdc2) zum Array erläutert.</p>
<p>Es empfiehlt sich, die SATA Kabel zu beschriften, damit man bei einem Ausfall einer Platte diese später leicht identifizieren kann. Ich habe den Ausfall jeweils eines Laufwerks erfolgeich simmuliert. Der Ausfall im laufenden betrieb wird erkannt und via "mdadm --detail /dev/md0" korrekt ausgewiesen.  Die Platte kann dann wieder mit "mdadm /dev/md0 -a /dev/sdxxx" eingehängt werden worauf der rebuild started.<br />
Weiterführende Hilfreiche Infos habe ich hier gefunden: <a href="http://linuxmafia.com/faq/Hardware/sata.html">Serial ATA (SATA) chipsets — Linux support status</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/installation_debian_etch_auf_einem_software-raid_1_mit_sata_disks/92/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
