<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
		<id>https://wiki.lug.ro/index.php?action=history&amp;feed=atom&amp;title=Utilizator%3APetre%2FConversie_la_RAID</id>
		<title>Utilizator:Petre/Conversie la RAID - Revizia istoricului</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.lug.ro/index.php?action=history&amp;feed=atom&amp;title=Utilizator%3APetre%2FConversie_la_RAID"/>
		<link rel="alternate" type="text/html" href="https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;action=history"/>
		<updated>2026-05-08T05:21:39Z</updated>
		<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=7057&amp;oldid=prev</id>
		<title>Rz: rz: cosmetizari etc., ar mai fi de lucru</title>
		<link rel="alternate" type="text/html" href="https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=7057&amp;oldid=prev"/>
				<updated>2011-01-09T09:56:02Z</updated>
		
		<summary type="html">&lt;p&gt;rz: cosmetizari etc., ar mai fi de lucru&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ro'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versiunea de la data 9 ianuarie 2011 09:56&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Linia 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{ambox|type=style}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{ambox|type=style}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Problema===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ai un sistem cu harddiscul (sa zicem, /dev/sda) partitionat si formatat &amp;quot;traditional&amp;quot; si sa adaugi unul sau mai multe discuri pentru a forma o matrice [[RAID]] cu mirroring (de tip 1, 5 sau 10) impreuna cu cel existent. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Sa zicem ca ai &lt;/del&gt;discul sda &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;partitionat &lt;/del&gt;si &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;formatat &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;traditional&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;si &lt;/del&gt;vrei sa&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-i &lt;/del&gt;mai &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pui unul sau mai multe discuri si sa faci raid &lt;/del&gt;cu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;toate&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===Partitionare===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Partitionezi &lt;/ins&gt;discul &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sau discurile noi (N-1, unde N = nr. total de discuri care vor fi prezente in RAID, inclusiv /dev/sda deja existent). Nu e musai necesar &amp;lt;i&amp;gt;partition type 0xFD&amp;lt;/i&amp;gt; la membrii RAID, dar e recomandat pentru a preveni confuziile. Apoi creezi partitiile RAID pastrand liber locul &lt;/ins&gt;sda&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-ului.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Exemplul de mai jos creaza o partitie RAID 5 care foloseste 4 discuri (inclusiv cel existent):&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; mdadm --create --level 5 --raid-devices 4 /dev/md0 missing /dev/sdb1 /dev/sdc1 /dev/sdd1&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Inlocuieste parametrul argumentului &amp;lt;i&amp;gt;--level&amp;lt;/i&amp;gt; cu nivelul RAID dorit (1=mirroring fara paritate sau stripping, 5=mirroring cu stripping &lt;/ins&gt;si &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;paritate etc.) Se lasa &lt;/ins&gt;&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;missing&lt;/ins&gt;&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in locul partitiei de pe discul /dev/sda.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Pentru restul de partitii (/dev/md1../dev/mdX, unde X este numarul ultimei partitii) se procedeaza similar.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Daca &lt;/ins&gt;vrei sa &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;faci boot de pe RAID, partitia care contine directorul /boot trebuie sa fie de tip RAID1 (vezi &lt;/ins&gt;mai &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;jos pentru cum se face asta &lt;/ins&gt;cu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[grub]])&lt;/ins&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pe discul &lt;/del&gt;sau &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;discurile noi (N-1&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;lasand sda la &lt;/del&gt;o &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;parte) le partitionezi cum iti &lt;/del&gt;va &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;conveni (partition type 0xFD la membrii raid &lt;/del&gt;nu &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;e musai necesar&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dar previne confuzii) si faci raidurile pastrand liber locul sda-ului, la modul: mdadm --create --level 5 (sau 1, sau 10, sau whatever) --raid-devices 4 (adica N, numarand si sda) &lt;/del&gt;/dev/md0 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;missing &lt;/del&gt;/dev/sdb1 /dev/sdc1 /dev/sdd1 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; (lasi &amp;quot;missing&amp;quot; in locul &lt;/del&gt;partitiei de pe &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sda). La fel &lt;/del&gt;si &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cu restul de md-uri&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;daca vrei sa si bootezi &lt;/del&gt;de pe &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;raid&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;partitia pe &lt;/del&gt;care &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;e /boot &lt;/del&gt;va &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;trebui &lt;/del&gt;sa fie &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;raid1 &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;o sa explic &lt;/del&gt;mai &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;jos cum faci cu grub ca sa n-ai probleme&lt;/del&gt;), &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;desi am auzit &lt;/del&gt;ca &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;grub2 ar sti &lt;/del&gt;sa &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;booteze de pe raid, n-am incercat, nu ma pronunt&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Atentie: daca discurile &lt;/ins&gt;sau &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;partitiile din matricea RAID nu sunt de marimi egale&lt;/ins&gt;, o &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;partitie RAID oarecare &lt;/ins&gt;va &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;folosi marimea celei mai mici partitii de pe discurile fizice prezenta in acea partitie iar restul de spatiu de pe cele mai mari &lt;/ins&gt;nu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;va putea fi folosit.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;De exemplu&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;daca in &lt;/ins&gt;/dev/md0 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ai &lt;/ins&gt;/dev/sdb1 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;si &lt;/ins&gt;/dev/sdc1 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;de 500MB iar &lt;/ins&gt;/dev/sdd1 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;de 450MB, marimea &lt;/ins&gt;partitiei &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/dev/md0 va fi &lt;/ins&gt;de &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;450MB si vor ramane 50MB neutilizabili &lt;/ins&gt;pe &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/dev/sdb1 &lt;/ins&gt;si &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/dev/sdc1&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Bineinteles, partitia &lt;/ins&gt;de pe &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;discul existent (/dev/sda1)&lt;/ins&gt;, care va &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;fi adaugata in RAID de abia ulterior, trebuie &lt;/ins&gt;sa fie &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;cel putin egala cu dimensiunea partitiei RAID&lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;minim 450MB in cazul de &lt;/ins&gt;mai &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sus&lt;/ins&gt;), &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;altfel /dev/sda va trebui repartitionat &lt;/ins&gt;ca sa &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;poata fi folosit&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dupa &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ce ai &lt;/del&gt;md&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-urile create (atentie, daca ai inegalitati de marime intre discuri sau partitii&lt;/del&gt;, se &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;va considera marimea celei mai mici ca marimea tuturor iar restul de spatiu de pe cele mai mari nu va putea fi folosit), le formatezi cu mkfs &lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;md&lt;/del&gt;-urile&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, nu partitiile&lt;/del&gt;), &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;le montezi undeva &lt;/del&gt;si &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;copiezi &lt;/del&gt;datele de pe partitiile &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;de pe &lt;/del&gt;sda &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pe &lt;/del&gt;md&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-uri, in functie de cum o sa vrei sa le montezi &lt;/del&gt;(cp -ax e suficient, de incercat sa fie activitate cat mai mica pe disc ca sa pierzi cat mai putine date proaspete la mutare).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dupa &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;crearea partitiilor in /dev/&lt;/ins&gt;md, se &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;formateaza partitiile RAID &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mdX&lt;/ins&gt;-urile) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;cu [[mkfs]]&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;se monteaza intr-un mountpoint &lt;/ins&gt;si &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;se copiaza &lt;/ins&gt;datele de pe partitiile &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;din /dev/&lt;/ins&gt;sda &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in partiile corespondente din /dev/&lt;/ins&gt;md (cp -ax e suficient, de incercat sa fie activitate cat mai mica pe disc ca sa pierzi cat mai putine date proaspete la mutare).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Daca e vorba de discul sistem si nu se poate demonta, se seteaza &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bootloaderul &lt;/del&gt;sa porneasca cu md-urile ( &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;grubul &lt;/del&gt;de pe discurile din raid si &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;fstabul &lt;/del&gt;de pe md-ul care va avea rol de root).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Daca e vorba de discul sistem si nu se poate demonta, se seteaza &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bootloader-ul &lt;/ins&gt;sa porneasca cu md-urile ( &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;grub &lt;/ins&gt;de pe discurile din raid si &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;fstab &lt;/ins&gt;de pe md-ul care va avea rol de root).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Grub, pt. &lt;/del&gt;boot de pe &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;un / sau /&lt;/del&gt;boot &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;care e un raid1 &lt;/del&gt;format din sdb1, sdc1 si sdd1 se &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;seteaza asa:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===Configurare pentru &lt;/ins&gt;boot de pe &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;RAID===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;din sistemul parinte (pe care &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ai &lt;/del&gt;montat /dev) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;rulezi&lt;/del&gt;: grub --no-floppy&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Pentru &lt;/ins&gt;boot &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;de pe o partitie RAID1 &lt;/ins&gt;format din sdb1, sdc1 si sdd1&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, montata in / sau /boot, &lt;/ins&gt;se &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ruleaza grub &lt;/ins&gt;din sistemul parinte (pe care &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;este &lt;/ins&gt;montat /dev):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;device (hd0) /dev/sdb&amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;##&lt;/del&gt;# scenariul in care sdb este vazut de &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bios &lt;/del&gt;ca primul hard-disc&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;grub --no-floppy&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;root (hd0,0) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;###&lt;/del&gt;# adica sdb1, prima partitie de pe primul disc din &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bios&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;si se dau urmatoarele comenzi:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;setup (hd0) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; ###&lt;/del&gt;# instalezi grub in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mbr&lt;/del&gt;-ul discului respectiv&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;device (hd0) /dev/sdc&amp;#160; # la fel pt. discul urmator, il punem tot ca discul de boot, pentru ca daca &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;biosul &lt;/del&gt;ajunge sa booteze de pe el, asta e&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;device (hd0) /dev/sdb&amp;#160; # scenariul in care sdb este vazut de &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BIOS &lt;/ins&gt;ca primul hard-disc&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;root (hd0,0)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;root (hd0,0) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/ins&gt;# adica sdb1, prima partitie de pe primul disc din &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BIOS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;setup (hd0)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setup (hd0) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;# instalezi grub in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;MBR&lt;/ins&gt;-ul discului respectiv&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;device (hd0) /dev/sdd&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;device (hd0) /dev/sdc&amp;#160; # la fel pt. discul urmator, il punem tot ca discul de boot, pentru ca daca &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BIOS-ul &lt;/ins&gt;ajunge sa booteze de pe el, asta e&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;root (hd0,0)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;root (hd0,0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;setup (hd0)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setup (hd0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* ctrl-c sa &lt;/del&gt;iesi din &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;shellul grub&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;device (hd0) /dev/sdd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* atentie! nu umbla la mbr&lt;/del&gt;-ul &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;lui sda pentru ca de ala stii sigur ca booteaza in caz ca ai ratat ceva&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;root (hd0,0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* ce face toata schema de mai sus: instruieste grubul de pe fiecare disc sa incarce 2nd stage si kernelul de pe partitia de pe _acelasi_ disc. Daca nu faci remapari de device-uri si doar setup (hd1), setup (hd2), etc, o sa te trezesti ca&lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;si cauta 2nd stage la locatia pe care o avea pe (hd0), care in principiu e aceeasi la raid1, cu exceptia cazului de fata cand hd0 e un filesystem diferit&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;setup (hd0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Dupa care &lt;/ins&gt;iesi din &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;shell&lt;/ins&gt;-ul &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;grub cu Ctrl&lt;/ins&gt;-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;C&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;De la o vreme si din niste motive pe care cei care nu s-au lovit de ele le injura :P mdadm a inceput sa ceara un fisier de configurare care sa-i spuna ce device-uri sa foloseasca. Pe Debian asta se rezolva cu /usr/share/mdadm/mkconf &amp;gt; /etc/mdadm.conf &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;urmat de &lt;/del&gt;mkinitramfs -u -k all (eu fac asta in chrootul de pe raid in care am montat in prealabil cu -o bind /dev si /sys). Daca ai alta distributie vezi daca ai acest mkconf si pe unde e. Se recomanda sa arunci o privire peste acest mdadm.conf generat si sa vezi daca e ce trebuie. ID-urile se obtin cu mdadm --detail /dev/md0 sau mdadm --&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;info &lt;/del&gt;/dev/sdb1 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(sau poti tine minte doar mdadm --query ca zice ala ce e cazul sa dai mai departe)&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;b&amp;gt;Atentie!&amp;lt;/b&amp;gt; nu umbla la mbr-ul lui sda pentru ca de ala stii sigur ca booteaza in caz ca ai ratat ceva&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ce face toata schema de mai sus? Instruieste grubul de pe fiecare disc sa incarce 2nd stage si kernelul de pe partitia de pe _acelasi_ disc. Daca nu faci remapari de device-uri si doar setup (hd1), setup (hd2), etc, o sa te trezesti ca-si cauta 2nd stage la locatia pe care o avea pe (hd0), care in principiu e aceeasi la raid1, cu exceptia cazului de fata cand hd0 e un filesystem diferit.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;De la o vreme &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;( &lt;/ins&gt;si din niste motive pe care cei care nu s-au lovit de ele le injura :P &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;) &lt;/ins&gt;mdadm a inceput sa ceara un fisier de configurare care sa-i spuna ce device-uri sa foloseasca. Pe Debian&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;asta se rezolva cu&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;/usr/share/mdadm/mkconf &amp;gt; /etc/mdadm.conf &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;mkinitramfs -u -k all&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(eu fac asta in chrootul de pe raid in care am montat in prealabil cu -o bind /dev si /sys). Daca ai alta distributie vezi daca ai acest mkconf si pe unde e. Se recomanda sa arunci o privire peste acest mdadm.conf generat si sa vezi daca e ce trebuie. ID-urile se obtin cu&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;mdadm --detail /dev/md0 &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sau&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;mdadm --&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;examine &lt;/ins&gt;/dev/sdb1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pentru a vedea informatii despre o partitie din RAID&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reboot cu fortarea din bios sa booteze de pe unul din discurile noi (nu uita sa setezi root=/dev/md0 in configul de grub din raid si fstabul din raid sa monteze md-urile, nu sda-urile).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reboot cu fortarea din bios sa booteze de pe unul din discurile noi (nu uita sa setezi root=/dev/md0 in configul de grub din raid si fstabul din raid sa monteze md-urile, nu sda-urile).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Daca nu mi-a scapat nimic, in principiu &lt;/del&gt;ar trebui &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ca dupa reboot &lt;/del&gt;sa ai montate &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;raidurile&lt;/del&gt;, iar sda sa fie nefolosit. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Raidurile &lt;/del&gt;sunt &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;inca &lt;/del&gt;degradate (cu sdaX missing), asa ca &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ar &lt;/del&gt;trebui &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reparate repede&lt;/del&gt;. Daca e cazul, monteaza &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sda&lt;/del&gt;-urile undeva sa mai copiezi datele care ti-au scapat (desi va fi mai dificil, ca pe md a inceput deja sa se faca scrieri), dupa care demonteaza sda&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-urile, &lt;/del&gt;repartitioneaza&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-l (daca &lt;/del&gt;toate discurile sunt identice, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;eu copiez &lt;/del&gt;efectiv tabela de partitii cu sfdisk -d /dev/sdb | sfdisk /dev/sda&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;) si &lt;/del&gt;adauga noile partitii in raid, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in genul&lt;/del&gt;: mdadm --manage --add /dev/md0 /dev/sda1 (imperechind md-urile cu partitiile reale asa cum e cazul). Acum ar trebui sa se vada in /proc/mdstat ca au inceput sincronizarea (dupa caz, asta va dura mult si/sau va consuma tot i/o-ul sistemului, se pot regla niste parametri de sysctl intr-o directie sau alta). Dupa ce cel putin partitia de boot s-a sincronizat complet se poate reinstala grub si pe sda cu schema de mai sus (device (hd0) /dev/sda) si se poate &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reboota &lt;/del&gt;sistemul &amp;quot;normal&amp;quot;, lasand &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;biosul &lt;/del&gt;sa booteze de pe sda.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===Adaugarea discului initial la RAID===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Dupa reboot &lt;/ins&gt;ar trebui sa ai montate &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;partitiile din RAID&lt;/ins&gt;, iar &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/dev/&lt;/ins&gt;sda sa fie nefolosit. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Partitiile RAID &lt;/ins&gt;sunt &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in acest moment &lt;/ins&gt;degradate (cu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/dev/&lt;/ins&gt;sdaX missing &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;din /dev/mdX&lt;/ins&gt;), asa ca &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;vor &lt;/ins&gt;trebui &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;reconstruite&lt;/ins&gt;. Daca e cazul, monteaza &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sdaX&lt;/ins&gt;-urile undeva sa mai copiezi datele care ti-au scapat (desi va fi mai dificil, ca pe md a inceput deja sa se faca scrieri &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;si exista posibilitatea sa apara desincronizari&lt;/ins&gt;), dupa care demonteaza &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;partitiile din /dev/&lt;/ins&gt;sda &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;si &lt;/ins&gt;repartitioneaza &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/dev/sda. Daca &lt;/ins&gt;toate discurile sunt identice, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;se poate copia &lt;/ins&gt;efectiv tabela de partitii cu&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;sfdisk -d /dev/sdb | sfdisk /dev/sda&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Apoi &lt;/ins&gt;adauga noile partitii in raid, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;de exemplu&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # &lt;/ins&gt;mdadm --manage --add /dev/md0 /dev/sda1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(imperechind md-urile cu partitiile reale asa cum e cazul). Acum ar trebui sa se vada in /proc/mdstat ca au inceput sincronizarea (dupa caz, asta va dura mult si/sau va consuma tot i/o-ul sistemului, se pot regla niste parametri de sysctl intr-o directie sau alta). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Poti urmari progresul reconstructiei cu:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; # watch cat /proc/mdstat&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dupa ce cel putin partitia de boot s-a sincronizat complet se poate reinstala grub si pe sda cu schema de mai sus (device (hd0) /dev/sda) si se poate &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;reporni &lt;/ins&gt;sistemul &amp;quot;normal&amp;quot;, lasand &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BIOS-ul &lt;/ins&gt;sa booteze de pe sda.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rz</name></author>	</entry>

	<entry>
		<id>https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=5771&amp;oldid=prev</id>
		<title>Petre la 8 februarie 2010 12:52</title>
		<link rel="alternate" type="text/html" href="https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=5771&amp;oldid=prev"/>
				<updated>2010-02-08T12:52:21Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ro'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versiunea de la data 8 februarie 2010 12:52&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Linia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Draft rpetre}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Draft rpetre}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{ambox|type=style}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sa zicem ca ai discul sda partitionat si formatat &amp;quot;traditional&amp;quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sa zicem ca ai discul sda partitionat si formatat &amp;quot;traditional&amp;quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Petre</name></author>	</entry>

	<entry>
		<id>https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=5677&amp;oldid=prev</id>
		<title>Petre la 4 februarie 2010 17:04</title>
		<link rel="alternate" type="text/html" href="https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=5677&amp;oldid=prev"/>
				<updated>2010-02-04T17:04:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ro'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versiunea anterioară&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Versiunea de la data 4 februarie 2010 17:04&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Linia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Draft rpetre}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sa zicem ca ai discul sda partitionat si formatat &amp;quot;traditional&amp;quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sa zicem ca ai discul sda partitionat si formatat &amp;quot;traditional&amp;quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Petre</name></author>	</entry>

	<entry>
		<id>https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=5673&amp;oldid=prev</id>
		<title>Petre: Pagină nouă: Sa zicem ca ai discul sda partitionat si formatat &quot;traditional&quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.  Pe discul sau discurile noi (N-1, lasand sda...</title>
		<link rel="alternate" type="text/html" href="https://wiki.lug.ro/index.php?title=Utilizator:Petre/Conversie_la_RAID&amp;diff=5673&amp;oldid=prev"/>
				<updated>2010-02-04T16:50:24Z</updated>
		
		<summary type="html">&lt;p&gt;Pagină nouă: Sa zicem ca ai discul sda partitionat si formatat &amp;quot;traditional&amp;quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.  Pe discul sau discurile noi (N-1, lasand sda...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sa zicem ca ai discul sda partitionat si formatat &amp;quot;traditional&amp;quot; si vrei sa-i mai pui unul sau mai multe discuri si sa faci raid cu toate.&lt;br /&gt;
&lt;br /&gt;
Pe discul sau discurile noi (N-1, lasand sda la o parte) le partitionezi cum iti va conveni (partition type 0xFD la membrii raid nu e musai necesar, dar previne confuzii) si faci raidurile pastrand liber locul sda-ului, la modul: mdadm --create --level 5 (sau 1, sau 10, sau whatever) --raid-devices 4 (adica N, numarand si sda) /dev/md0 missing /dev/sdb1 /dev/sdc1 /dev/sdd1  (lasi &amp;quot;missing&amp;quot; in locul partitiei de pe sda). La fel si cu restul de md-uri. daca vrei sa si bootezi de pe raid, partitia pe care e /boot va trebui sa fie raid1 (o sa explic mai jos cum faci cu grub ca sa n-ai probleme), desi am auzit ca grub2 ar sti sa booteze de pe raid, n-am incercat, nu ma pronunt.  &lt;br /&gt;
&lt;br /&gt;
Dupa ce ai md-urile create (atentie, daca ai inegalitati de marime intre discuri sau partitii, se va considera marimea celei mai mici ca marimea tuturor iar restul de spatiu de pe cele mai mari nu va putea fi folosit), le formatezi cu mkfs (md-urile, nu partitiile), le montezi undeva si copiezi datele de pe partitiile de pe sda pe md-uri, in functie de cum o sa vrei sa le montezi (cp -ax e suficient, de incercat sa fie activitate cat mai mica pe disc ca sa pierzi cat mai putine date proaspete la mutare).&lt;br /&gt;
&lt;br /&gt;
Daca e vorba de discul sistem si nu se poate demonta, se seteaza bootloaderul sa porneasca cu md-urile ( grubul de pe discurile din raid si fstabul de pe md-ul care va avea rol de root).&lt;br /&gt;
&lt;br /&gt;
Grub, pt. boot de pe un / sau /boot care e un raid1 format din sdb1, sdc1 si sdd1 se seteaza asa:&lt;br /&gt;
* din sistemul parinte (pe care ai montat /dev) rulezi: grub --no-floppy&lt;br /&gt;
* device (hd0) /dev/sdb  ### scenariul in care sdb este vazut de bios ca primul hard-disc&lt;br /&gt;
* root (hd0,0) #### adica sdb1, prima partitie de pe primul disc din bios&lt;br /&gt;
* setup (hd0)  #### instalezi grub in mbr-ul discului respectiv&lt;br /&gt;
* device (hd0) /dev/sdc  # la fel pt. discul urmator, il punem tot ca discul de boot, pentru ca daca biosul ajunge sa booteze de pe el, asta e&lt;br /&gt;
* root (hd0,0)&lt;br /&gt;
* setup (hd0)&lt;br /&gt;
* device (hd0) /dev/sdd&lt;br /&gt;
* root (hd0,0)&lt;br /&gt;
* setup (hd0)&lt;br /&gt;
* ctrl-c sa iesi din shellul grub&lt;br /&gt;
* atentie! nu umbla la mbr-ul lui sda pentru ca de ala stii sigur ca booteaza in caz ca ai ratat ceva&lt;br /&gt;
* ce face toata schema de mai sus: instruieste grubul de pe fiecare disc sa incarce 2nd stage si kernelul de pe partitia de pe _acelasi_ disc. Daca nu faci remapari de device-uri si doar setup (hd1), setup (hd2), etc, o sa te trezesti ca-si cauta 2nd stage la locatia pe care o avea pe (hd0), care in principiu e aceeasi la raid1, cu exceptia cazului de fata cand hd0 e un filesystem diferit.&lt;br /&gt;
&lt;br /&gt;
De la o vreme si din niste motive pe care cei care nu s-au lovit de ele le injura :P mdadm a inceput sa ceara un fisier de configurare care sa-i spuna ce device-uri sa foloseasca. Pe Debian asta se rezolva cu /usr/share/mdadm/mkconf &amp;gt; /etc/mdadm.conf urmat de mkinitramfs -u -k all (eu fac asta in chrootul de pe raid in care am montat in prealabil cu -o bind /dev si /sys). Daca ai alta distributie vezi daca ai acest mkconf si pe unde e. Se recomanda sa arunci o privire peste acest mdadm.conf generat si sa vezi daca e ce trebuie. ID-urile se obtin cu mdadm --detail /dev/md0 sau mdadm --info /dev/sdb1 (sau poti tine minte doar mdadm --query ca zice ala ce e cazul sa dai mai departe).&lt;br /&gt;
&lt;br /&gt;
Reboot cu fortarea din bios sa booteze de pe unul din discurile noi (nu uita sa setezi root=/dev/md0 in configul de grub din raid si fstabul din raid sa monteze md-urile, nu sda-urile).&lt;br /&gt;
&lt;br /&gt;
Daca nu mi-a scapat nimic, in principiu ar trebui ca dupa reboot sa ai montate raidurile, iar sda sa fie nefolosit. Raidurile sunt inca degradate (cu sdaX missing), asa ca ar trebui reparate repede. Daca e cazul, monteaza sda-urile undeva sa mai copiezi datele care ti-au scapat (desi va fi mai dificil, ca pe md a inceput deja sa se faca scrieri), dupa care demonteaza sda-urile, repartitioneaza-l (daca toate discurile sunt identice, eu copiez efectiv tabela de partitii cu sfdisk -d /dev/sdb | sfdisk /dev/sda) si adauga noile partitii in raid, in genul: mdadm --manage --add /dev/md0 /dev/sda1 (imperechind md-urile cu partitiile reale asa cum e cazul). Acum ar trebui sa se vada in /proc/mdstat ca au inceput sincronizarea (dupa caz, asta va dura mult si/sau va consuma tot i/o-ul sistemului, se pot regla niste parametri de sysctl intr-o directie sau alta). Dupa ce cel putin partitia de boot s-a sincronizat complet se poate reinstala grub si pe sda cu schema de mai sus (device (hd0) /dev/sda) si se poate reboota sistemul &amp;quot;normal&amp;quot;, lasand biosul sa booteze de pe sda.&lt;/div&gt;</summary>
		<author><name>Petre</name></author>	</entry>

	</feed>