All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Soltys <nozo@ziu.info>
To: Cry Regarder <cry_regarder@yahoo.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID on partitions and partitions on RAID
Date: Sun, 29 Jul 2007 21:11:07 +0200	[thread overview]
Message-ID: <46ACE64B.6030801@ziu.info> (raw)
In-Reply-To: <loom.20070729T091941-198@post.gmane.org>

Cry Regarder wrote:
> 
> Thanks!  A couple questions:
> 
> 1.  Are you sharing that spare with an other array?  If not, why not do a raid-6
> instead of a raid-5?
> 

No, the spare is not shared. Now that I think about it and you reminded 
about raid-6...

I can think of one small plus of my setup - that spare is not spinning
(it's stopped with sdparm -C stop). So the disk should be in almost unused
condition if the need for it arrives. Excluding vibrations from the rest of 
the disks, and barely active electronics.

> 2.  I noticed that you built your raid partitions on corresponding disk
> partitions.  Why do that instead of making one monolithic raid volume and then
> partitioning that into the desired pieces?
> 

few reasons:

1) I wanted /boot out of any raid
2) I wanted LVM for some of the partitions
3) I prefered regular mbr on the whole disks.
4) I wanted properly aligned XFS, so I can use its su/sw options

Alternatives:

- create separate md0 (for lvm) md1 (for xfs), but it seemed wrong when 
there is support for partitionable arrays
- or I could just put everything on lvm and don't bother with xfs alignment.

All things considered, it looked like a decent compromise. Of course, I'm 
open for suggestions.

> 
> 1.  Adjust the partition table on each of the component disks so that I can
> assemble the drives from /dev/sd?1 instead of /dev/sd?
> 

No can do here, afaik. When you assemble from /dev/sd? , there're no 
partitions to start with on those disks. Either way, I'm not aware of any 
tools allowing - shrink raid, shift it, create fitting mbr ...

> 2.  Adjust my /dev/md0 so that it is partitioned into /dev/md0_1 /dev/md0_2 or
> something of that ilk.
> 

No idea if you can easily switch from non-partitionable to partitionable raid.


  reply	other threads:[~2007-07-29 19:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27 21:10 RAID on partitions and partitions on RAID Cry Regarder
2007-07-28 20:51 ` Michal Soltys
2007-07-28 21:42   ` Michal Soltys
2007-07-29  7:26     ` Cry Regarder
2007-07-29 19:11       ` Michal Soltys [this message]
2007-07-29 18:09     ` Is it possible to grow a RAID-10 array with mdadm? Tomas France
2007-07-30  8:48       ` Neil Brown
2007-07-30 10:24         ` Tomas France
2007-07-30 11:07           ` Neil Brown
2007-07-30 11:51             ` Tomas France
2007-08-01 12:32         ` Bill Davidsen

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=46ACE64B.6030801@ziu.info \
    --to=nozo@ziu.info \
    --cc=cry_regarder@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.