Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th October 2011, 00:04
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 154
Thanks: 45
Thanked 13 Times in 11 Posts
Default Help with degraded array

Hey Guys
Been updating fron Lenny to squeeze recently, but now im having trouble with a degraded array.

Been searching sround the web for solutuins but havent been able to find any.

Here are some output of the commands asked for other places.
I really need some help solving this I really cant seem to find the time to reinstall the server right now, so any help would be apreciated.

blkid
Quote:
/dev/sda1: UUID="a84fe515-0d5d-f0eb-776c-2c25004bd7b2" TYPE="linux_raid_member"
/dev/sda2: UUID="30d54a9a-0319-a9f8-776c-2c25004bd7b2" TYPE="linux_raid_member"
/dev/sda3: UUID="3a98dc62-3a69-6dea-776c-2c25004bd7b2" TYPE="linux_raid_member"
/dev/sdb1: UUID="a84fe515-0d5d-f0eb-776c-2c25004bd7b2" TYPE="linux_raid_member"
/dev/sdb2: UUID="30d54a9a-0319-a9f8-776c-2c25004bd7b2" TYPE="linux_raid_member"
/dev/sdb3: UUID="3a98dc62-3a69-6dea-776c-2c25004bd7b2" TYPE="linux_raid_member"
/dev/md0: UUID="3a7395ea-3223-4711-bf9f-79dcb6feae7f" TYPE="swap"
/dev/md1: UUID="2f824254-75f1-4f6d-b865-d93792e994f4" TYPE="ext3"
/dev/md2: UUID="a813cf35-ba76-4303-902f-5bf35c2ed70f" TYPE="ext3"
df -Tah
Quote:
Filesystem Type Size Used Avail Use% Mounted on
/dev/md2 ext3 688G 90G 563G 14% /
tmpfs tmpfs 4.0G 0 4.0G 0% /lib/init/rw
proc proc 0 0 0 - /proc
sysfs sysfs 0 0 0 - /sys
udev tmpfs 3.9G 160K 3.9G 1% /dev
tmpfs tmpfs 4.0G 4.0K 4.0G 1% /dev/shm
devpts devpts 0 0 0 - /dev/pts
/dev/md1 ext3 2.0G 106M 1.8G 6% /boot
mdstat
Quote:
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sda3[0]
726266432 blocks [2/1] [U_]

md1 : active raid1 sda2[0]
2104448 blocks [2/1] [U_]

md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]
4200896 blocks [2/2] [UU]

unused devices: <none>

mdadm --misc --detail /dev/md1
Quote:
/dev/md1:
Version : 0.90
Creation Time : Fri Apr 30 23:53:25 2010
Raid Level : raid1
Array Size : 2104448 (2.01 GiB 2.15 GB)
Used Dev Size : 2104448 (2.01 GiB 2.15 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sun Oct 16 23:52:47 2011
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 30d54a9a:0319a9f8:776c2c25:004bd7b2
Events : 0.6270

Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 0 0 1 removed
mdadm --misc --detail /dev/md2
Quote:
/dev/md2:
Version : 0.90
Creation Time : Fri Apr 30 23:53:25 2010
Raid Level : raid1
Array Size : 726266432 (692.62 GiB 743.70 GB)
Used Dev Size : 726266432 (692.62 GiB 743.70 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Sun Oct 16 23:53:19 2011
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 3a98dc62:3a696dea:776c2c25:004bd7b2
Events : 0.17514780

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 0 0 1 removed
__________________
www.gamebook.me
Reply With Quote
Sponsored Links
  #2  
Old 17th October 2011, 10:14
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,454
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

Have you tried to readd the missing devices sdb2 and sdb3 to the arrays md1 and md2?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th October 2011, 10:39
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 154
Thanks: 45
Thanked 13 Times in 11 Posts
Default

Hey Till
No i haven't i couldnt see wich devises that were missing, how did you see that?

How would i go add the devises to the array again?

Regards
Michael
__________________
www.gamebook.me
Reply With Quote
  #4  
Old 17th October 2011, 11:09
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,454
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

Quote:
how did you see that?
You can see that in the mdstat output. If you compare the working array md0:

md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]

with e.g. the broken md1:

md1 : active raid1 sda2[0]

then you see that the first line lists all devices that are part of the array. in md1, the array consist only of the sda2 device, the sdb2 device is missing.

Before you start to repair the array, please ensure that you have a backup of all data of that server. It might always happen that data gets lost.

Then try to readd the sdb2 device to md1:

mdadm --manage /dev/md1 --add /dev/sdb2

and the sdc2 device to md2:

mdadm --manage /dev/md2 --add /dev/sdb3

If this worked, you should see with mdstats that the devices get resynced now:

cat /proc/mdstat
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th October 2011, 21:48
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 154
Thanks: 45
Thanked 13 Times in 11 Posts
Default

Hi till
I apreciate your help, im gonna give it a go during the night.

Regards
Michael
__________________
www.gamebook.me
Reply With Quote
  #6  
Old 20th October 2011, 02:16
bernholdt bernholdt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 154
Thanks: 45
Thanked 13 Times in 11 Posts
 
Default

Hey Till
Thank you so much for your help, i managed to rebuild the array without any dataloss.

Regards
Michael
__________________
www.gamebook.me
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help acessing a multidimensional array filch Programming/Scripts 2 18th November 2008 15:28
How to cast a char ptr to an array (to prevent warning, it does work) Owen_Townsend Programming/Scripts 0 4th September 2008 01:12
Debian: Failed Raid5 Array & Kernal Panic snowfly Installation/Configuration 0 29th August 2007 12:52
log files, rotation and emailing them hairydog2 General 65 11th October 2006 13:18
phpMyAdmin - panick attack md@waw.co.uk General 6 3rd September 2006 20:52


All times are GMT +2. The time now is 18:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.