linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: why partition arrays?
@ 2006-10-19 11:25 Ken Walker
  2006-10-19 15:46 ` Doug Ledford
  2006-10-21  4:26 ` Bodo Thiesen
  0 siblings, 2 replies; 13+ messages in thread
From: Ken Walker @ 2006-10-19 11:25 UTC (permalink / raw)
  To: linux-raid mailing list

So is LVM better for partitions on a large raid5, or any raid, than separate
partitions on that array.

I'm still in my learning curve :)

for example, if one has Linux running on a two disk mirror array, raid1, and
the first disk is partitioned, say 5 partitions, with those partitions
mirrored on the second disk, and each identical partition is then run as a
mirror raid1.

What your saying is that, if a single partition fails, to remove the drive
you have to fail all the array partitions on the drive your taking out, then
rebuild the partitions and then add to the dirty raid the new partitions one
at a time.


Will LVM remove all this, so if you have a mirror as a single raid
partition, and use LVM to create the partitions on that mirror, if a disk
goes down, can it be removed, replaced, and then just added to the single
raid, with LVM having had no idea what was going on in the background and
just plod along merrily.

Is LVM stable, or can it cause more problems than separate raids on a array.

Ken





Second, convenience.  Assume you have a 6 disk raid5 array.  If a disk
fails and you are using a partitioned md array, then all the partitions
on the disk will already be handled without using that disk.  No need to
manually fail any still active array members from other arrays.

Third, safety.  Again with the raid5 array.  If you use multiple arrays
on a single disk, and that disk fails, but it only failed on one array,
then you now need to manually fail that disk from the other arrays
before shutting down or hot swapping the disk.  Generally speaking,
that's not a big deal, but people do occasionally have fat finger
syndrome and this is a good opportunity for someone to accidentally fail
the wrong disk, and when you then go to remove the disk you create a two
disk failure instead of one and now you are in real trouble.

-----Original Message-----
From: linux-raid-owner@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org]On Behalf Of martin f krafft
Sent: 18 October 2006 2:43pm
To: linux-raid mailing list
Subject: Re: why partition arrays?


also sprach Doug Ledford <dledford@redhat.com> [2006.10.18.1526 +0200]:
> There are a couple reasons I can think.

Thanks for your elaborate response. If you don't mind, I shall link
to it from the FAQ.

I have one other question: do partitionable and traditional arrays
actually differ in format? Put differently: can I assemble
a traditional array as a partitionable one simply by specifying:

  mdadm --create ... /dev/md0 ...
  mdadm --stop /dev/md0
  mdadm --assemble --auto=part ... /dev/md0 ...

? Or do the superblocks actually differ?

Thanks,

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
the images rushed around his mind and tried
to find somewhere to settle down and make sense.
            -- douglas adams, "the hitchhiker's guide to the galaxy"

^ permalink raw reply	[flat|nested] 13+ messages in thread
* why partition arrays?
@ 2006-10-18 12:42 martin f krafft
  2006-10-18 13:26 ` Doug Ledford
  2006-10-23 15:59 ` Mario 'BitKoenig' Holbe
  0 siblings, 2 replies; 13+ messages in thread
From: martin f krafft @ 2006-10-18 12:42 UTC (permalink / raw)
  To: linux-raid mailing list

[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]

As the Debian mdadm maintainer, I am often subjected to questions
about partitionable arrays; people seem to want to use them in
favour of normal arrays. I don't understand why.

There's possibly an argument to be made about flexibility when it
comes to resizing partitions within the array, but even most MD
array types can be resized now.

There's possibly an argument about saving space because of fewer
sectors used/wasted with superblock information, but I am not going
to buy that.

Why would anyone want to create a partitionable array and put
partitions in it, rather than creating separate arrays for each
filesystem? Intuitively, this makes way more sense as then the
partitions are independent of each other; one array can fail and the
rest still works -- part of the reason why you partition in the
first place.

Would anyone help me answer this FAQ?

(btw: [0] and [1] are obviously for public consumption; they are
available under the terms of the artistic licence 2.0)

0. http://svn.debian.org/wsvn/pkg-mdadm/mdadm/trunk/debian/FAQ?op=file&rev=0&sc=0
1. http://svn.debian.org/wsvn/pkg-mdadm/mdadm/trunk/debian/README.recipes?op=file&rev=0&sc=0

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
"the liar at any rate recognises that recreation, not instruction, is
 the aim of conversation, and is a far more civilised being than the
 blockhead who loudly expresses his disbelief in a story which is told
 simply for the amusement of the company."
                                                        -- oscar wilde

[-- Attachment #2: Digital signature (GPG/PGP) --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-10-25  0:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-19 11:25 why partition arrays? Ken Walker
2006-10-19 15:46 ` Doug Ledford
2006-10-21  4:26 ` Bodo Thiesen
2006-10-21 13:39   ` Henrik Holst
2006-10-21 19:25     ` Bodo Thiesen
2006-10-24 23:31     ` Bill Davidsen
2006-10-25  0:10       ` dean gaudet
2006-10-22 16:02   ` Nix
  -- strict thread matches above, loose matches on Subject: below --
2006-10-18 12:42 martin f krafft
2006-10-18 13:26 ` Doug Ledford
2006-10-18 13:43   ` martin f krafft
2006-10-18 21:42     ` Doug Ledford
2006-10-23 15:59 ` Mario 'BitKoenig' Holbe

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).