Gentoo Archives: gentoo-user

From: Alan <alan@×××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] getting rid of raid header
Date: Sun, 25 Mar 2007 08:42:54
Message-Id: 20070325083721.GO14979@ufies.org
1 Somehow one of my hard drives got a raid header on it, causing it to
2 start automatically sometimes when not needed. It's on /dev/hda, my
3 main system disk, which is not RAID at all. Running mdadm -E /dev/hda I
4 get:
5
6 -----------------------
7 phoenix alan # mdadm -E /dev/hda
8 /dev/hda:
9 Magic : a92b4efc
10 Version : 00.90.00
11 UUID : 0feab44f:a7f9e0ef:ef5b4af3:58c56a79
12 Creation Time : Wed Mar 1 22:20:42 2006
13 Raid Level : raid1
14 Used Dev Size : 77900672 (74.29 GiB 79.77 GB)
15 Array Size : 77900672 (74.29 GiB 79.77 GB)
16 Raid Devices : 2
17 Total Devices : 2
18 Preferred Minor : 1
19
20 Update Time : Wed Mar 1 22:25:43 2006
21 State : active
22 Active Devices : 2
23 Working Devices : 2
24 Failed Devices : 0
25 Spare Devices : 0
26 Checksum : 35f4ee48 - correct
27 Events : 0.4
28
29
30 Number Major Minor RaidDevice State
31 this 0 253 2 0 active sync /dev/mapper/sda1
32
33 0 0 253 2 0 active sync /dev/mapper/sda1
34 1 1 253 3 1 active sync /dev/mapper/sdb1
35 phoenix alan #
36 -----------------------
37
38 The other disks in the array (sda and sdb) are two SCSI disks which are
39 currently unused, but have some raid partitions on them (mostly used for
40 playing with other distros).
41
42 It also looks like my system is confusing /dev/hda and /dev/sda or
43 something? Maybe this is caused by using evms? All I know is when I
44 installed ubuntu on the SCSI disks to play around I found that it
45 wouldn't install properly because after partitioning the disks it had a
46 RAID device already up and running, which turned out to be /dev/hda in a
47 RAID1 with a second device missing.
48
49 None of the partitions on the disk are marked as type raid-autodetect
50 either. I'm hoping that there's a magic offset that I can dd /dev/zero
51 to to knock the raid header off without nuking my system disk.
52
53 Thanks.
54
55 Alan
56
57
58 --
59 Alan <alan@×××××.org> - http://arcterex.net
60 --------------------------------------------------------------------
61 "Backups are for people who don't pray." -- big Mike
62 --
63 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] getting rid of raid header "Boyd Stephen Smith Jr." <bss03@××××××××××.net>