linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Alessandro Baretta <alexbaretta@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Linear mode: array size is less than sum of sizes
Date: Tue, 05 Jan 2010 20:06:32 +0000	[thread overview]
Message-ID: <4B439BC8.1030908@anonymous.org.uk> (raw)
In-Reply-To: <f4143ac21001051021o45110f1fi833fc03bf9bae4a@mail.gmail.com>

On 05/01/2010 18:21, Alessandro Baretta wrote:
> Hi guys.
> 
> I have a bizarre problem. Hopefully someone will provide some insight.
[...]
> As you can see the computed size is 67 sectors less than the reported
> size. What happened to those sectors?

At the very least md linear mode will round down the constituent devices 
to multiples of the rounding size, which is the same as the chunk size - 
see `man mdadm` for rounding size. The default 64K is 128 sectors, and 
probably explains what's happened to your 67 sectors - sda1 has its last 
65 sectors ignored, and sda5 2. You specify the chunk size in KiB not 
sectors so I don't know how you're going to fix this, and I've a feeling 
performance would be woeful even if you could have a 1-sector chunk size.

> They are surely not used to
> store superblocks, as the --build command does not create superblocks.
> If they are used for the md driver's magic, do they all come from the
> first device of the array or are they distributed on both? All in all,
> how safe (or unsafe) is my approach to virtualizing Windows XP on my
> Linux box?

I don't really know how safe it is, but I don't like your 16002-sector 
thingy. If you're going to do this I can't help thinking you should 
duplicate the real partition table, showing the partition starting on 
sector 63, so you want 63 extra sectors, not 16002. You might do it 
using a file on your filesystem via loopback instead of messing about 
with a silly 1-cylinder partition.

> Thank you in advance for any help you can provide.

Good luck and let me/us know how you get on!

Cheers,

John.

  reply	other threads:[~2010-01-05 20:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05 18:21 Linear mode: array size is less than sum of sizes Alessandro Baretta
2010-01-05 20:06 ` John Robinson [this message]
2010-01-05 20:13   ` John Robinson
2010-01-05 23:02     ` Alessandro Baretta
2010-01-05 23:01   ` Alessandro Baretta
2010-01-06 22:14   ` Alessandro Baretta
2010-01-07  0:33     ` John Robinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B439BC8.1030908@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --cc=alexbaretta@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).