LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Help Raid1 degraded (https://www.linuxquestions.org/questions/linux-hardware-18/help-raid1-degraded-4175468734/)

haloway13 07-06-2013 09:59 PM

Help Raid1 degraded
 
The partition in question that is degraded happens to be the \home directory. How do I go about fixing this? Do I need to do it before booting all the way?

Part of what might be the issue is that I think I successfully moved to the right the /home partition, then created a fat32 partition about 100GB in size for an installation of XP. I have had some trouble getting the drivers to load and have messed with the partition using gparted and disk utility, at some point I think I messed it up.

Thank you,
Tim

$ cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdb2[1]
461033280 blocks [2/1] [_U]

md2 : active raid1 sda4[0] sdb3[1]
7815552 blocks [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
19534912 blocks [2/2] [UU]

unused devices: <none>

$ sudo mdadm --detail /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Fri Sep 12 22:33:20 2008
Raid Level : raid1
Array Size : 461033280 (439.68 GiB 472.10 GB)
Used Dev Size : 461033280 (439.68 GiB 472.10 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sat Jul 6 20:43:24 2013
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 53c4f824:161f553d:f047131b:7f6e84c6
Events : 0.58

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 18 1 active sync /dev/sdb2
$

haloway13 07-06-2013 10:05 PM

I might have already answered my own question:

$ sudo mdadm --monitor /dev/md1
mdadm: Monitor using email address "root" from config file
mdadm: Warning: One autorebuild process already running.

haloway13 07-06-2013 10:52 PM

So it turns out that when I messed with the partition I messed with the /dev/sda2 and moved it right instead of the array.

I recreated a primary partition as it should have been and then re-added it to the md1 array. Originally (1,2,3) partitions. Messed up(1,2,3,4). removed 2 and 3, created a peimary partition, added it to the array, it did take a several reboots...

Now I have:

sudo mdadm --detail /dev/md1

/dev/md1:
Version : 0.90
Creation Time : Fri Sep 12 22:33:20 2008
Raid Level : raid1
Array Size : 461033280 (439.68 GiB 472.10 GB)
Used Dev Size : 461033280 (439.68 GiB 472.10 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sat Jul 6 21:44:37 2013
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

Rebuild Status : 2% complete

UUID : 53c4f824:161f553d:f047131b:7f6e84c6
Events : 0.202

Number Major Minor RaidDevice State
2 8 2 0 spare rebuilding /dev/sda2
1 8 18 1 active sync /dev/sdb2


All times are GMT -5. The time now is 08:20 PM.