Gentoo Archives: gentoo-user

From: Jeff Cranmer <jeff@××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get raid
Date: Thu, 05 Jan 2012 03:46:49
Message-Id: 1325735145.22553.17.camel@laptop.limeyworld
In Reply to: Re: [gentoo-user] How to get raid by Volker Armin Hemmann
1 On Thu, 2012-01-05 at 04:01 +0100, Volker Armin Hemmann wrote:
2
3 > the short one:
4 >
5 > partition one disk with (c)fdisk. Use sfdisk to transfer the partition scheme
6 > to the other disks.
7 >
8 > run mdadm --create /dev/md0 level=whatever you want --raid-
9 > devices=thenumberofdevices /dev/sdXY /dev/sdZY ...
10 >
11 > mdadm --detail --scan >> /etc/mdadm.conf
12 >
13 > done
14 >
15 >
16 OK, but there is active data on the disks, so I don't want to partition
17 them. They should already partitioned, and running fdisk will erase the
18 data.
19
20 If I run mdadm --create /dev/md0 level=5
21 --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd, will that erase data
22 already on the disks?
23
24 Prior to running this command, there is no /dev/md entry. Is this
25 correct?
26
27 Looking further by using fdisk, it appears that sdc has a linux
28 partition on sdc1 starting at sector 34, and a GPT partition of size 0+
29 at /dev/sdc4, sector 0. Nothing else is on that disk (no sdc2 or sdc3).
30
31 sdd and sdb report invalid partition table flags and do not appear to
32 have active partitions. Does this make sense?
33
34 Is it possible that I ordered the disks incorrectly when I installed
35 them, and by simply swapping disks b and c at the raid I can get things
36 to start making sense? Is there an order to a set of RAID5 disks? I
37 thought any two of three RAID5 disks could be recovered, regardless of
38 which one dies?
39
40 > there is a reason why I never ever touch genkernel.
41 >
42 > you should forget that crap. You don't need to copy around anything. If your
43 > root is not on some fancy setup, you don't need initramfs.
44 >
45 > Just make a nice kernel, put it in /boot. Done.
46 >
47 OK. The OS disk is non-RAID (120GB SSD), so I don't need any fancy
48 options in my kernel. All the domdadm and dodmraid stuff is needed just
49 when your OS disk is raided. Correct?
50
51 Thanks
52
53 Jeff

Replies

Subject Author
Re: [gentoo-user] How to get raid Hinnerk van Bruinehsen <h.v.bruinehsen@×××××××××.de>
Re: [gentoo-user] How to get raid Volker Armin Hemmann <volkerarmin@××××××××××.com>