linux software raid
Asif Iqbal
vadud3 at gmail.com
Tue Mar 3 20:35:18 UTC 2009
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 at 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 at 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 at 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?
More information about the ubuntu-users
mailing list