Re: RAID1 : offline -> online (how to?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joel Sing
Date: Tuesday, February 23, 2010 - 5:32 am

On Monday 22 February 2010, Jean-Francois wrote:

The "bioctl: BIOCCREATERAID: Invalid argument" and "softraid0: invalid 
metadata format" messages are a result of having a metadata mismatch with the 
chunks that you are trying to assemble - this can happen for a range of 
reasons (e.g. you try to bring a RAID 1 volume up as a RAID 0 volume).

Since you mentioned that one of your chunks is "offline" (since you 
disconnected it), the two chunks will now have different on-disk metadata 
versions - the metadata version will have been increased on the "online" 
chunk as soon as a problem was noticed. This obviously prevents you from 
bringing up two devices that are out of sync with each other.

The solution to this problem (assuming you want to start from scratch) is to 
either zero the first 1MB or so of the device, or use the '-C force' option 
with bioctl. Alternatively you should be able to rebuild onto the offline 
device by using bioctl's -R option.
-- 

   "Stop assuming that systems are secure unless demonstrated insecure;
    start assuming that systems are insecure unless designed securely."
          - Bruce Schneier
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RAID1 : offline -> online (how to?), Jean-Francois, (Sun Feb 21, 9:51 am)
Re: RAID1 : offline -> online (how to?), Rogier Krieger, (Sun Feb 21, 10:56 am)
Re: RAID1 : offline -> online (how to?), Jean-Francois, (Sun Feb 21, 11:47 am)
Re: RAID1 : offline -> online (how to?), Rogier Krieger, (Sun Feb 21, 1:33 pm)
Re: RAID1 : offline -> online (how to?), Jean-Francois, (Sun Feb 21, 4:03 pm)
Re: RAID1 : offline -> online (how to?), Rogier Krieger, (Sun Feb 21, 10:59 pm)
Re: RAID1 : offline -> online (how to?), Henning Brauer, (Mon Feb 22, 6:43 am)
Re: RAID1 : offline -> online (how to?), Joel Sing, (Tue Feb 23, 5:23 am)
Re: RAID1 : offline -> online (how to?), Joel Sing, (Tue Feb 23, 5:32 am)