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: Sat, 28 Jul 2007 22:51:38 +0200 [thread overview]
Message-ID: <46ABAC5A.2000103@ziu.info> (raw)
In-Reply-To: <loom.20070727T225545-192@post.gmane.org>
Cry Regarder wrote:
>
> Partitions on RAID:
>
> Back to when I constructed the array, I placed an ext3 partition directly on
> /dev/md0. Since construction, I have expanded the array by two disks, but have
> not at this time resized the ext3 partition.
>
> What I would like to do is put a swap partition and XFS partition into that 1TB
> free space. However, I have no idea how to go about doing that. If I had
> originally used LVM, it would be easy, but I had read about some performance
> hits re ext3 on lvm on raid so I decided to be "simple". Any advice?
>
When I was doing recently some tests, I haven't noticed any significant
performance differences if lvm2 is between filesystem and raid, or not. Note
though, that my tests weren't too extensive (yet). Also, I use large lv
extents - 512MiB.
Either way, you can use partitionable raid arrays. Today I've set following
config on one of the new machines: raid 5 from 4x500GB disks + one hot
spare. Each disk is partitioned in the same way - 64mb boot partition
identical on each disk, and each disk is bootable (sdX1), swap (sdX2),
partitionable (sdX3). sd[abcde]3 raid has GPT partition - 1st one is used by
LVM2 for the usual stuff (root,usr,var,home.. "just" 24GB assigned here),
the 2nd one is big XFS for my space-hungry users. The XFS partition is
carefully aligned to be always on the stride boundary, up to 9 disks (as I
plan do add new disks and grow that XFS later, while having its su/sw
properly set).
You will of course need initramfs to boot from something like that.
Depending on your distro (and how much can you dig into its config files),
YMMV. (small remark - udev and mdadm, depending on their rules, might get in
one others way - check / adjust both of them carefully).
next prev parent reply other threads:[~2007-07-28 20:51 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 [this message]
2007-07-28 21:42 ` Michal Soltys
2007-07-29 7:26 ` Cry Regarder
2007-07-29 19:11 ` Michal Soltys
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=46ABAC5A.2000103@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 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).