Re: Alignment of RAID on specific boundary

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Khelben Blackstaff
Date: Tuesday, January 5, 2010 - 6:44 am

2010/1/5 Michael Evans <mjevans1983@gmail.com>:

Thank you for bringing hexdump to my attention. I had completely
forgot to run it. After reading your post i thought to run hexdump too.

I wrote 10MB of 1s (0x31 in HEX) to both partitions. So "0x31"
means "space untouched by mdadm". Then created the array
and wrote 10KB of 2s (0x32) to it. So "0x32" means "actual data".
The hexdump output is the following:

0000110 FFFF FFFF FFFF FFFF
*
0000400 3131 3131 3131 3131
*
0011000 3232 3232 3232 3232

The data written by mdadm (the superblock i guess) ends at 0x400
like you posted. So the v1.1 raid superblock has 1K size i guess.
In my case the payload starts at 0x11000 (the space between 0x400
and 0x11000 is maybe where the bitmap lives ?)

0x11000 = 69632 bytes = 136 sectors

Then my understanding of "data offset" is correct. I need to move
this offset from 136 sectors to 512 sectors.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Alignment of RAID on specific boundary, Khelben Blackstaff, (Mon Jan 4, 12:30 pm)
Re: Alignment of RAID on specific boundary, David Rees, (Mon Jan 4, 2:14 pm)
Re: Alignment of RAID on specific boundary, Khelben Blackstaff, (Mon Jan 4, 2:51 pm)
Re: Alignment of RAID on specific boundary, Michael Evans, (Mon Jan 4, 11:57 pm)
Re: Alignment of RAID on specific boundary, Michal Soltys, (Tue Jan 5, 12:50 am)
Re: Alignment of RAID on specific boundary, Khelben Blackstaff, (Tue Jan 5, 6:44 am)
Re: Alignment of RAID on specific boundary, John Robinson, (Tue Jan 5, 8:35 am)
Re: Alignment of RAID on specific boundary, Michael Evans, (Tue Jan 5, 6:46 pm)