Difference between revisions of "RAID"

From Vague Hope Wiki
Jump to: navigation, search
Line 8: Line 8:
  
 
== Create ==
 
== Create ==
 +
 +
=== Set disc type ===
 +
 +
For each disc:
  
 
<pre>
 
<pre>
 +
sudo fdisk /dev/sdb
  
 +
n          ; for a new partition
 +
enter
 +
p          ; for a primary partition
 +
enter
 +
1          ; number of partition
 +
enter    ; accept the default
 +
enter    ; accept the default
 +
t          ; to change the type
 +
fd        ; sets the type to be “Linux raid auto detect” (83h)
 +
w        ; write changes to disk and exit
 
</pre>
 
</pre>
  

Revision as of 03:07, 15 October 2011

Set up

sudo aptitude install mdadm

Create

Set disc type

For each disc:

sudo fdisk /dev/sdb

n          ; for a new partition
enter
p          ; for a primary partition
enter
1          ; number of partition
enter    ; accept the default
enter    ; accept the default
t          ; to change the type
fd        ; sets the type to be “Linux raid auto detect” (83h)
w         ; write changes to disk and exit

References