linux software raid



Hi I just install ubuntu with software raid. I noticed during the
configure raid I saw a message that kernel does not know of md0 and I
need to reboot to fix it. I went along and finish the install. When
the system rebooted it came back with a message raid degraded.

Here is an excerpt from the dmesg

[ 35.454913] md: md0: raid array is not clean -- starting background
reconstruction
[ 35.565022] raid1: raid set md0 active with 1 out of 2 mirrors
[ 35.579360] md: md1 stopped.
[ 35.579373] md: unbind<dm-2>
[ 35.597226] md: export_rdev(dm-2)
[ 35.638893] md: bind<dm-2>
[ 35.638911] md: md1: raid array is not clean -- starting background
reconstruction
[ 35.738506] raid1: raid set md1 active with 1 out of 2 mirrors

root@host:~# mdadm --query --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Tue Mar 3 14:38:40 2009
Raid Level : raid1
Array Size : 74918976 (71.45 GiB 76.72 GB)
Used Dev Size : 74918976 (71.45 GiB 76.72 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Mar 3 15:31:42 2009
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 111256f9:cad06de4:2c5872f0:3d319ab8
Events : 0.126

Number Major Minor RaidDevice State
0 254 1 0 active sync /dev/block/254:1
1 0 0 1 removed

root@host:~# ls -al /dev/block/254\:1
lrwxrwxrwx 1 root root 26 2009-03-03 15:10 /dev/block/254:1 ->
../mapper/nvidia_eeffhbef1

I have two disks and I setup md0 raid1 out of sda1 and sbd1 and mount
as / and md1 raid1 swap device
out of sda5 and sdb5
root@ftp0:~# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xffffffff

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9327 74919096 fd Linux raid autodetect
/dev/sda2 9328 9729 3229065 5 Extended
/dev/sda5 9328 9729 3229033+ fd Linux raid autodetect

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xffffffff

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9327 74919096 fd Linux raid autodetect
/dev/sdb2 9328 9729 3229065 5 Extended
/dev/sdb5 9328 9729 3229033+ fd Linux raid autodetect

How do I fix the degraded raid?


--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: MDADM Software Raid Woes
    ... 255 heads, 63 sectors/track, 121601 cylinders ... Disk identifier: 0xa6caa6dd ... Is this raid array autodetection supposed to work like this, ...
    (Linux-Kernel)
  • md raid 5 not working
    ... I clean installed Fedora 12 on my PC which was previously running Fedora ... In F11, I had three md RAID devices: two were configured as RAID 1, ... Disk identifier: 0x000c9149 ... Number Major Minor RaidDevice State ...
    (Fedora)
  • MDADM Software Raid Woes
    ... I've been trying to configure sofrware raid on my system ... Disk identifier: 0x609b513e ... The other issue is that I can't get my system to boot off the raid. ...
    (Linux-Kernel)
  • Re: RAID HOWTOs
    ... I'm trying to install Ubuntu 7.04 base system over RAID 0. ... googled some of the related articles, but none of them appear to be ... and how can I set the BIOS (particularly, AMI BIOS), and etc. ...
    (Ubuntu)
  • Re: Software raid
    ... I am trying to setup software raid 5 on an old system to be a web server. ... Badblocks is not for modern IDE or SATA drives, zeroing is good, ... part 1 256MB 32 cylinders ... It is automatic if have properly marked the RAID member partitions. ...
    (comp.os.linux.misc)