Hello,
I am running Ubuntu Server 12.04. I installed with a software raid1 array. To test the array I pulled one of the drives and made sure it would boot. I then tried the same with the other drive. Both booted as expected.
When I try to rebuild the array I am running into issues. Some background info:
Code:~# cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sdb3[1] 479008632 blocks super 1.2 [2/1] [_U] md1 : active raid1 sdb1[1] 975860 blocks super 1.2 [2/1] [_U] unused devices: <none>Code:~# mdadm --query --detail /dev/md0 /dev/md0: Version : 1.2 Creation Time : Thu May 24 11:46:44 2012 Raid Level : raid1 Array Size : 479008632 (456.82 GiB 490.50 GB) Used Dev Size : 479008632 (456.82 GiB 490.50 GB) Raid Devices : 2 Total Devices : 1 Persistence : Superblock is persistent Update Time : Tue Jun 26 15:52:31 2012 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 Name : DunnAppraisals:0 UUID : d154ced9:cd0fcc08:0f4f2986:cae8dc98 Events : 14729 Number Major Minor RaidDevice State 0 0 0 0 removed 1 8 19 1 active sync /dev/sdb3To me this looks like md0 is missing sda3 and md1 is missing sda1, so I tried to add them:Code:~# mdadm --query --detail /dev/md1 /dev/md1: Version : 1.2 Creation Time : Thu May 24 11:49:04 2012 Raid Level : raid1 Array Size : 975860 (953.15 MiB 999.28 MB) Used Dev Size : 975860 (953.15 MiB 999.28 MB) Raid Devices : 2 Total Devices : 1 Persistence : Superblock is persistent Update Time : Tue Jun 26 15:51:38 2012 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 Name : DunnAppraisals:1 UUID : 741ee215:7c42dd3a:f7ec0cff:5a5b9ae9 Events : 117 Number Major Minor RaidDevice State 0 0 0 0 removed 1 8 17 1 active sync /dev/sdb1
I get the same result when trying to add sda1 to md1. I also tried --force. How is sda3 an active member of md0? Nowhere in /proc/mdstat or the mdadm query does it hint that. Thinking I am crazy or am getting something backwards, I tried to add sdb3 to md0:Code:~# mdadm --manage /dev/md0 --add /dev/sda3 mdadm: /dev/sda3 reports being an active member for /dev/md0, but a --re-add fails. mdadm: not performing --add as that would convert /dev/sda3 in to a spare. mdadm: To make this a spare, use "mdadm --zero-superblock /dev/sda3" first.
Again I get the same result when adding sdb1 to md1. Last thing that I tried was to add nodmraid to /etc/default/grub ("GRUB_CMDLINE_LINUX_DEFAULT="nodmraid quiet splash"), update-grub, reboot and try everything again. Nada. (As a side note, I tried entering nodmraid straight into the grub command line and it said it wasn't a valid command)Code:~# mdadm --manage /dev/md0 --add /dev/sdb3 mdadm: Cannot open /dev/sdb3: Device or resource busy
Thanks in advance for reading this and taking the time to respond. This is my first time managing a raid in linux, be gentle.



Adv Reply



Bookmarks