Linux RAID subsystem development
 help / color / mirror / Atom feed
* mdadm ntfs-3g
@ 2009-03-06 20:06 Anthony debeus
  2009-03-07  9:49 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony debeus @ 2009-03-06 20:06 UTC (permalink / raw)
  To: linux-raid

Sorry if this counts as a cross-post, I posted this comment on
http://neil.brown.name/blog/20040607123837, but perhaps emailing was
the best route to get help. Here's the problem/question:

I've greatly enjoyed using mdadm, but have been puzzled by one piece
of its behaviour. If used to to build a prexisting Windows Raid array
with -build, e.g.:

mdadm -B -c 64 -l 1 -n 2 /dev/md2 /dev/hda1 /dev/hdb1

where Windows has built a healthy RAID1 array on the first partitions
of /dev/hda1 and bdb1, all seems to go well.

The array is mountable with the kernel ntfs driver ro or rw. Using
ntfs-3g, however, is impossible as apparently the device size is
smaller than the volume size (as found by ntfsresize -i /dev/md2, for
example, see the thread below)

Thinking this to be a ntfs-3g problem, I contacted the developer,

http://forum.ntfs-3g.org/viewtopic.php?f=3&t=1125

but apparently they feel this is a mdadm problem. I did some testing,
and the problem is independent of whether dmraid is in use or not.
Searching around the web yields similar problems with Windows Raid-0
and Raid-5 arrays, all with the same issue.

Any clues?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mdadm ntfs-3g
  2009-03-06 20:06 mdadm ntfs-3g Anthony debeus
@ 2009-03-07  9:49 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2009-03-07  9:49 UTC (permalink / raw)
  To: Anthony debeus; +Cc: linux-raid

On Sat, March 7, 2009 7:06 am, Anthony debeus wrote:
> Sorry if this counts as a cross-post, I posted this comment on
> http://neil.brown.name/blog/20040607123837, but perhaps emailing was
> the best route to get help. Here's the problem/question:

I do generally prefer Email, though I usually reply to comments
on my blog.

This one I answered about an hour after you sent the email.
My reply is below.

NeilBrown

Re: mdadm
=========

hda1 is 61440561K sectors in size (I think).
The NTFS filesystem is 61440560K in size.

You told mdadm to use a chunk size of 64K.  This rounds the size down to a
multiple of 64K which will be 61440512K.  Clearly too small.

Chunksize is not meaningful for RAID1.  simply remove the "-c 64"  or make
it something that divides into the filesystem size such as "-c 16".

Then it should "just work".

You should be aware that when using -B, md is not able to record device
failures.  So if one device gets unplugged, md will continue to write to
the other but will not record anywhere that the device
is failed.  If you then shutdown and start up again having plugged the
drive back in, md (or windows)
will find the other drive and assume it is a working part of the array and
will trust the data on it.  This might not be what you want.

So it will work, but be careful if you get a drive failure.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-07  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 20:06 mdadm ntfs-3g Anthony debeus
2009-03-07  9:49 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox