Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Raid1 simple workstation
Date: Mon, 13 Feb 2012 22:10:30
Message-Id: loom.20120213T223351-443@post.gmane.org
1 Hello,
2
3 Well it's been almost a year since I tried to set up
4 a simple raid1 workstation. (I.E. 2 identical drives,
5 boo/root/swap only with Raid 1). So I'm starting over.
6
7 I found this link:
8 http://en.gentoo-wiki.com/wiki/RAID/Software
9
10 Is this the best document to follow?
11 (note, I'm going to try to avoid using LVM:
12
13 fdisk -l
14
15 Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
16 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
17 Units = sectors of 1 * 512 = 512 bytes
18 Sector size (logical/physical): 512 bytes / 512 bytes
19 I/O size (minimum/optimal): 512 bytes / 512 bytes
20 Disk identifier: 0xab83344a
21
22 Device Boot Start End Blocks Id System
23 /dev/sda1 * 2048 526335 262144 fd Linux raid autodetect
24 /dev/sda2 526336 10573823 5023744 fd Linux raid autodetect
25 /dev/sda3 10573824 3907029167 1948227672 fd Linux raid autodetect
26
27 Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
28 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
29 Units = sectors of 1 * 512 = 512 bytes
30 Sector size (logical/physical): 512 bytes / 512 bytes
31 I/O size (minimum/optimal): 512 bytes / 512 bytes
32 Disk identifier: 0xab83344a
33
34 Device Boot Start End Blocks Id System
35 /dev/sdb1 * 2048 526335 262144 fd Linux raid autodetect
36 /dev/sdb2 526336 10573823 5023744 fd Linux raid autodetect
37 /dev/sdb3 10573824 3907029167 1948227672 fd Linux raid autodetect
38
39 Disk /dev/md127: 268 MB, 268369920 bytes
40 2 heads, 4 sectors/track, 65520 cylinders, total 524160 sectors
41 Units = sectors of 1 * 512 = 512 bytes
42 Sector size (logical/physical): 512 bytes / 512 bytes
43 I/O size (minimum/optimal): 512 bytes / 512 bytes
44 Disk identifier: 0x00000000
45
46 Disk /dev/md127 doesn't contain a valid partition table
47 <snip many more /dev/md### partitions.
48
49
50 So the drives are setup identical, and are identical 2T seagate
51 drivers. The md### partitions are all screwed up. So I think
52 I should just nuke all the data and start over, just keeping
53 the formatting.
54
55
56 (parted) print
57 Model: ATA ST32000542AS (scsi)
58 Disk /dev/sda: 2000GB
59 Sector size (logical/physical): 512B/512B
60 Partition Table: msdos
61
62 Number Start End Size Type File system Flags
63 1 1049kB 269MB 268MB primary boot, raid
64 2 269MB 5414MB 5144MB primary raid
65 3 5414MB 2000GB 1995GB primary raid
66
67
68 (parted) print
69 Model: ATA ST32000542AS (scsi)
70 Disk /dev/sdb: 2000GB
71 Sector size (logical/physical): 512B/512B
72 Partition Table: msdos
73
74 Number Start End Size Type File system Flags
75 1 1049kB 269MB 268MB primary boot, raid
76 2 269MB 5414MB 5144MB primary raid
77 3 5414MB 2000GB 1995GB primary raid
78
79
80
81
82 parted shows the drives as set up fine (???), I just need to
83 erase each partition from here? Suggestions?
84
85
86 James