Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get raid
Date: Fri, 06 Jan 2012 01:44:53
Message-Id: 4308091.7xnRLljmXt@localhost
In Reply to: Re: [gentoo-user] How to get raid by Jeff Cranmer
1 Am Donnerstag, 5. Januar 2012, 20:13:04 schrieb Jeff Cranmer:
2 > On Thu, 2012-01-05 at 11:22 +0100, Volker Armin Hemmann wrote:
3 > > Am Mittwoch, 4. Januar 2012, 22:45:45 schrieb Jeff Cranmer:
4 > > > On Thu, 2012-01-05 at 04:01 +0100, Volker Armin Hemmann wrote:
5 > > > > the short one:
6 > > > >
7 > > > > partition one disk with (c)fdisk. Use sfdisk to transfer the partition
8 > > > > scheme to the other disks.
9 > > > >
10 > > > > run mdadm --create /dev/md0 level=whatever you want --raid-
11 > > > > devices=thenumberofdevices /dev/sdXY /dev/sdZY ...
12 > > > >
13 > > > > mdadm --detail --scan >> /etc/mdadm.conf
14 > > > >
15 > > > > done
16 > > >
17 > > > OK, but there is active data on the disks, so I don't want to partition
18 > > > them. They should already partitioned, and running fdisk will erase the
19 > > > data.
20 > >
21 > > first rule:
22 > >
23 > > always mount a scratch monkey
24 > >
25 > > In your case: always backup data.
26 >
27 > No big deal.
28 > 99.9% of the data is backed up. I was just hoping to recover the last
29 > 0.1% (picky huh?<g>). Now that I know one of the main drawbacks of
30 > fakeraid, I think I'll move ahead with software RAID.
31 >
32 > OK, so I've partitioned the first disk as a single linux partition
33 > (/dev/sdb1, ID 83, Linux).
34 > How do I use sfdisk to transfer that partition scheme to the other
35 > disks? Is it not sufficient just to partition the other two disks in
36 > the same way as the first?
37 >
38 > Jeff
39
40 in your case
41
42 sfdisk -d /dev/sdb | sfdisk /dev/sdc
43
44 of course ;)
45
46 --
47 #163933

Replies

Subject Author
Re: [gentoo-user] How to get raid Jeff Cranmer <jeff@××××××××××××××.com>