[arch-general] Software RAID installation problems
Howdy. I just installed my system on software RAID (RAID1 over two discs, twice. I'll elaborate in a minute.), and after coming off the installation I get errors when I try to boot: /dev/md0: The superblock could not be read or does not describe a correct ext2 filesystem. If they device is valid and it really contains an ext2 filesystem (and is not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> /dev/md1: The superblock could not be read or does not describe a correct ext2 filesystem. If they device is valid and it really contains an ext2 filesystem (and is not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> My drives RAID drives are set up as so: sdc1 and sdd1 are mirrored to make md0, sde1 and sdf1 are mirrored to make md1. These are mounted at /mnt/md0 and /mnt/md1, respectively, and formatted to ext4. -- Samuel 'Shardz' Baldwin - staticfree.info/~samuel
Am Dienstag, den 21.07.2009, 21:45 -0400 schrieb Samuel Baldwin:
My drives RAID drives are set up as so: sdc1 and sdd1 are mirrored to make md0, sde1 and sdf1 are mirrored to make md1. These are mounted at /mnt/md0 and /mnt/md1, respectively, and formatted to ext4.
Not sure if i understand: You don't boot from the raid arrays, correct? These are only data or whatever arrays which you mount to /mnt/mdX? Have you put your raid module (raid1) in /etc/rc.conf->MODULES and have you put your array specs into /etc/mdadm.conf? If not: Boot system modprobe raid1 mdadm -E -s >>/etc/mdadm.conf mdadm -A -s Also the partition types should be *fd* on all raid array members. Try booting again.. But if you have / (and/or /boot) on the raid arrays: Have you added the mdadm HOOK to /etc/mkinitcpio.conf and (not sure if needed but surely recommend) filled /etc/mdadm.conf with your array settings? Gerhard
On Wed, Jul 22, 2009 at 6:37 AM, Gerhard Brauer<gerhard.brauer@web.de> wrote:
Not sure if i understand: You don't boot from the raid arrays, correct? These are only data or whatever arrays which you mount to /mnt/mdX?
Correct.
Have you put your raid module (raid1) in /etc/rc.conf->MODULES and have you put your array specs into /etc/mdadm.conf?
Ach, that I did not do. I also messed up and didn't mdadm -D --scan >> /etc/mdadm.conf after installing (which I did beforehand by accident, blindly following the guide I was reading, heh). What's the difference between that and -E -s?
Also the partition types should be *fd* on all raid array members.
What? I have /dev/md0 and /dev/md1 as 'ext4' type. That's bad? -- Samuel 'Shardz' Baldwin - staticfree.info/~samuel
On Wed, 2009-07-22 at 15:36 -0400, Samuel Baldwin wrote:
On Wed, Jul 22, 2009 at 6:37 AM, Gerhard Brauer<gerhard.brauer@web.de> wrote:
Not sure if i understand: You don't boot from the raid arrays, correct? These are only data or whatever arrays which you mount to /mnt/mdX?
Correct.
Have you put your raid module (raid1) in /etc/rc.conf->MODULES and have you put your array specs into /etc/mdadm.conf?
Ach, that I did not do. I also messed up and didn't mdadm -D --scan >> /etc/mdadm.conf after installing (which I did beforehand by accident, blindly following the guide I was reading, heh). What's the difference between that and -E -s?
Also the partition types should be *fd* on all raid array members.
What? I have /dev/md0 and /dev/md1 as 'ext4' type. That's bad?
That's the filesystem on the raid array. The partition type should be fd... you set that using fdisk The fd tells a system that the partition is part of a raid array. You should set it on all the partitions that makeup md0 and md1 Here is the output from sudo fdisk -l Notice under the Id column the fd type Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xef52ef52 Device Boot Start End Blocks Id System /dev/sdb1 * 1 12748 102398278+ 7 HPFS/NTFS /dev/sdb2 12749 12814 530145 83 Linux /dev/sdb3 12815 12880 530145 82 Linux swap / Solaris /dev/sdb4 12881 60801 384925432+ 5 Extended /dev/sdb5 12881 14186 10490413+ fd Linux raid autodetect /dev/sdb6 14187 15492 10490413+ fd Linux raid autodetect /dev/sdb7 15493 16798 10490413+ 83 Linux /dev/sdb8 16799 17452 5253223+ 83 Linux /dev/sdb9 17453 18106 5253223+ 83 Linux /dev/sdb10 18107 22023 31463271 83 Linux Disk /dev/sdc: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x05f505f4 Device Boot Start End Blocks Id System /dev/sdc1 * 1 12748 102398278+ 7 HPFS/NTFS /dev/sdc2 12749 12814 530145 83 Linux /dev/sdc3 12815 12880 530145 82 Linux swap / Solaris /dev/sdc4 12881 60801 384925432+ 5 Extended /dev/sdc5 12881 14186 10490413+ fd Linux raid autodetect /dev/sdc6 14187 15492 10490413+ fd Linux raid autodetect /dev/sdc7 15493 16798 10490413+ 83 Linux /dev/sdc8 16799 17452 5253223+ 83 Linux /dev/sdc9 17453 18106 5253223+ 83 Linux /dev/sdc10 18107 22023 31463271 83 Linux Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xea26ea26 Device Boot Start End Blocks Id System /dev/sda1 * 1 12748 102398278+ 7 HPFS/NTFS /dev/sda2 12749 12814 530145 83 Linux /dev/sda3 12815 12880 530145 82 Linux swap / Solaris /dev/sda4 12881 60801 384925432+ 5 Extended /dev/sda5 12881 14186 10490413+ fd Linux raid autodetect /dev/sda6 14187 15492 10490413+ fd Linux raid autodetect /dev/sda7 15493 16798 10490413+ 83 Linux /dev/sda8 16799 17452 5253223+ 83 Linux /dev/sda9 17453 18106 5253223+ 83 Linux /dev/sda10 18107 22023 31463271 83 Linux
On Wed, Jul 22, 2009 at 3:49 PM, Baho Utot<baho-utot@columbus.rr.com> wrote:
That's the filesystem on the raid array.
The partition type should be fd... you set that using fdisk The fd tells a system that the partition is part of a raid array. You should set it on all the partitions that makeup md0 and md1
Ahh, I see. fstab calls filesystem "type". Fixing that now, thanks! -- Samuel 'Shardz' Baldwin - staticfree.info/~samuel
On Wed, 2009-07-22 at 15:55 -0400, Samuel Baldwin wrote:
On Wed, Jul 22, 2009 at 3:49 PM, Baho Utot<baho-utot@columbus.rr.com> wrote:
That's the filesystem on the raid array.
The partition type should be fd... you set that using fdisk The fd tells a system that the partition is part of a raid array. You should set it on all the partitions that makeup md0 and md1
Ahh, I see. fstab calls filesystem "type". Fixing that now, thanks!
_DO NOT_ change the type in /etc/fstab that should be set to the filesystem on the raid array. You want to change the partition table.
On Wed, Jul 22, 2009 at 4:03 PM, Baho Utot<baho-utot@columbus.rr.com> wrote:
_DO NOT_ change the type in /etc/fstab that should be set to the filesystem on the raid array.
You want to change the partition table.
Sorry, I wasn't clear. I fixed the partition tables, and I haven't touched fstab. -- Samuel 'Shardz' Baldwin - staticfree.info/~samuel
participants (3)
-
Baho Utot
-
Gerhard Brauer
-
Samuel Baldwin