Projekt

Allgemein

Profil

Howto mdadm » Historie » Version 2

Jeremias Keihsler, 17.09.2024 10:58

1 1 Jeremias Keihsler
h1. Howto mdadm
2
3
lsblk is your best friend
4
5
<pre><code class="shell">
6
lsblk
7
</code></pre>
8
9
we are going to use partitions as base for the raid
10
11
h2. create Linux RAID partitions
12
13
<pre><code class="shell">
14
fdisk /dev/nvme0n1
15
</code></pre>
16
17
h3. create new GPT disklabel
18
19
<pre>
20
g
21
</pre>
22
23
h3. create new partion
24
25
<pre>
26
n
27
</pre>
28
29
h3. change type to Linux RAID
30
31
<pre>
32
t
33
</pre>
34
35
<pre>
36
29
37
</pre>
38
39
repeat for all drives e.g. @/dev/nvme0n1@ and @/dev/nvme1n1@
40 2 Jeremias Keihsler
41
check with lsblk
42
43
h2. create Raid
44
45
<pre><code class="shell">
46
mdadm --create /dev/md20 --level=1 --raid-devices=2 /dev/nvme0n1p1 /dev/nvme1n1p1
47
</code></pre>
48
49
check with lsblk
50
51
h2. create filesystem on Raid
52
53
<pre><code class="shell">
54
mkfs.xfs /dev/md20
55
</code></pre>