Go Back  FlyerTalk Forums > Travel&Dining > Travel Technology
Reload this Page >

Off-topic: Linux mdadm RAIDs

Community
Wiki Posts
Search

Off-topic: Linux mdadm RAIDs

Thread Tools
 
Search this Thread
 
Old Nov 3, 2013 | 10:59 am
  #1  
Original Poster
FlyerTalk Evangelist
Conversation Starter
All eyes on you!
20 Years on Site
 
Join Date: Nov 2002
Location: ORD
Posts: 14,773
Off-topic: Linux mdadm RAIDs

I've been playing with RAID 1 in my new file server. I created a RAID 1 array out of two identical 3 TB drives, and everything was working fine. I then wanted to see if the mirroring was actually working, so i turned off the computer, unplugged one of the drives, and turned the computer back on.

At startup, I got a bunch of errors about the RAID array not being all present and asking if I wanted to start it degraded. I said yes. The system booted up and my files were still there. Yay!

I turned the computer off, plugged the drive back in, and booted. Still got the same error about the array being degraded. So, I issued the command

Code:
mdadm --re-add /dev/sdb1 /dev/md0
and got an error that sdb1 was not a member of an array. Anyone know why? I gather that mdadm marked it as gone but don't understand why it wasn't able to realize that sdb1 was still the same RAID component that had always been there.

Now, I'm just re-adding it to the array the slow way: as if it were a brand new drive, which seems to be working.

Code:
mdadm --add /dev/sdb1 /dev/md0
Says it'll take about 6 hours to finish. I'd appreciate any color on what happened and how I might have re-added it more painlessly.

Thanks!

Last edited by gfunkdave; Nov 3, 2013 at 12:20 pm
gfunkdave is offline  
Old Nov 3, 2013 | 11:42 am
  #2  
FlyerTalk Evangelist
All eyes on you!
20 Years on Site
 
Join Date: Jun 2002
Location: n.y.c.
Posts: 14,059
The array probably isn't using a bitmap. See, for example:

http://ubuntuforums.org/showthread.php?t=1283619
nerd is offline  
Old Nov 3, 2013 | 12:08 pm
  #3  
Original Poster
FlyerTalk Evangelist
Conversation Starter
All eyes on you!
20 Years on Site
 
Join Date: Nov 2002
Location: ORD
Posts: 14,773
Ahhh...thanks! I had no idea. Oh well, now I need to wait 2700 minutes for the resync to complete. I think it slowed down a lot because I'm using files on the array while it's resyncing.
gfunkdave is offline  
Old Nov 3, 2013 | 4:26 pm
  #4  
FlyerTalk Evangelist
20 Years on Site
 
Join Date: Nov 2002
Location: Freeload Univ. Where are you sitting?
Posts: 14,818
Originally Posted by gfunkdave
Ahhh...thanks! I had no idea. Oh well, now I need to wait 2700 minutes for the resync to complete. I think it slowed down a lot because I'm using files on the array while it's resyncing.
As they say on the GEICO commercials - everybody knows that.

Whatever the hell it is you're talking about.
BigLar is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.