PDA

View Full Version : Raid rebuilding


ColdDoT
29th October 2006, 19:06
Hello again (after big server crash)

i have taken a relook to my raid system.

this is in fstab
proc /proc proc defaults 0 0
/dev/hde1 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1
/dev/hdc2 /boot ext3 defaults 0 2
/dev/md0 /var ext3 defaults 0 2
/dev/hdc3 none swap sw 0 0
/dev/hda /media/cdrom0 iso9660 ro,user,noauto 0 0
this is when i run mdam
server:~# mdadm /dev/md1
/dev/md1: 72.64GiB raid1 2 devices, 1 spare. Use mdadm --detail for more detail.
server:~# mdadm /dev/md0
/dev/md0: 64.50GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
The /proc/mdstat file currently contains the following
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 ide/host1/bus0/target0/lun0/part4[0]
67633536 blocks [2/1] [U_]

md1 : active raid1 ide/host1/bus1/target0/lun0/part2[0]
76172096 blocks [2/1] [U_]

unused devices: <none>

Detaild output
/dev/md0:
Version : 00.90.02
Creation Time : Wed Jan 18 15:50:39 2006
Raid Level : raid1
Array Size : 67633536 (64.50 GiB 69.26 GB)
Device Size : 67633536 (64.50 GiB 69.26 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Sun Oct 29 14:38:43 2006
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 9ac9b941:4446a4fa:03a7860f:ebd53b67
Events : 0.138577

Number Major Minor RaidDevice State
0 22 4 0 active sync /dev/hdc4
1 0 0 1 removed


/dev/md1:
Version : 00.90.00
Creation Time : Mon Jan 30 16:17:10 2006
Raid Level : raid1
Array Size : 76172096 (72.64 GiB 78.00 GB)
Device Size : 76172096 (72.64 GiB 78.00 GB)
Raid Devices : 2
Total Devices : 3
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sun Oct 29 14:38:43 2006
State : active, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 2
Spare Devices : 1

UUID : d4d9da1f:2c766230:e2b77d58:31c0828a
Events : 0.267

Number Major Minor RaidDevice State
0 33 2 0 active sync /dev/hde2
1 0 0 1 removed

What the hell? now it is sure none of my hardisk are broken right?

Can some 1 help me

Greets ColdDoT

falko
30th October 2006, 15:11
Have a look here: http://aplawrence.com/Linux/rebuildraid.html
http://aplawrence.com/Linux/rebuildraid.html
http://www.cyberciti.biz/faq/howto-rebuilding-a-raid-array-after-a-disk-fails/
http://www.howtoforge.com/forums/showthread.php?t=6951&highlight=rebuild+raid

ColdDoT
30th October 2006, 15:25
WoW my server is more f*cked up then i tought :s

it isn't that big deal because over about 3 weeks i'm gonna redo the whole system

thx for all

ghys
30th October 2006, 16:25
thanks for the great links. Very good info in them.
I am still looking for the best all around solution for the system i have to setup.

Either Raid 1 with a spare drive to backup or Raid 5.
I will not duplicate posts since i already asked something in here(another thread).
I will continue looking for the right answer.

thanks again.