From: Phil Turmel <philip@turmel.org>
To: Jim Santos <iluvgadgets@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: "Missing" RAID devices
Date: Tue, 21 May 2013 20:02:27 -0400 [thread overview]
Message-ID: <519C0B13.3040906@turmel.org> (raw)
In-Reply-To: <CAGPLN=uiUD3wnwt6DfELaLh+yqxkbrA=KetPiQHZrqq4FrS=HA@mail.gmail.com>
Hi Jim,
On 05/21/2013 06:22 PM, Jim Santos wrote:
> Hi,
>
> Thanks for pointing out the initramfs problem. I guess I should have
> figured that out myself, since I've had to update initramfs in the
> past, but it just totally slipped my mind. And the strange device
> numbering just threw me complete off track.
Does this mean you're back to running? Did you follow my instructions?
> As far as how the devices got numbered that way in the first place, I
> really don't know. I assembled them and that is how it came out.
> Since I was initially doing this to learn about SW RAID, I'm sure that
> I made a rookie mistake or two along the way.
No problem. You probably rebooted once between creating all your raids
and generating the mdadm.conf file. (Using mdadm -Es >>/etc/mdadm.conf)
The reboot would have cause initramfs assembly without instructions,
using available minors starting at 127. Then the --scan into mdadm.conf
would have "locked it in".
> The reason that there are so many filesystems is that I wanted to try
> to minimize any loss if one of them got corrupted. Maybe it isn't the
> best way to do it, but it made sense to me at the time. I am more
> than open to suggestions.
>
> When I started doing this to better understand SW RAID, I wanted to
> make things as simple as possible so I didn't use the LVM. That and
> it didn't seem like I would gain much by using it. Al I need is
> simple RAID1 devices I never planned on changing the layout other than
> maybe increasing the size of the disks. Maybe that flies in the face
> of 'best practices', since you can be sure what your future needs
> would be. How would you suggest I set things up if I did use LVs?
Simple is good. My preferred setup for light duty is two arrays spread
over all available disks. First is /dev/md1, a small (~500m) n-way
mirror with v1.0 metadata for use as /boot. The other, /dev/md2, uses
the balance of the disks in either raid10,far3 or raid6. If raid6, I
use a chunk size of 16k.
I put LVM on top of /dev/md2, with LVs for swap, /, /home, /tmp, and
/bulk. The latter is for photos, music, video, mythtv, et cetera. I
generally leave 10% of the volume group unallocated until I see how the
usage patterns go. LVM makes it easy to add space to existing LVs on
the run--even for the root filesystem.
LVM also makes it possible to move LVs from one array to another without
downtime. This is especially handy when you have a root filesystem
inside a raid10. (MD raid10 cannot be reshaped yet.)
Anyways, you asked my opinion. I don't run any heavy duty systems, so
look to others for those situations.
> /boot and / are on a separate disk on RAID1 devices with 1.x
> superblocks. At the moment, they are the only thing that aren't
> giving me a problem :-)
I guess that means the answers to my first questions are no?
Phil
ps. The convention on kernel.org is to use reply-to-all, to trim
replies, and to either bottom-post or interleave. FWIW.
next prev parent reply other threads:[~2013-05-22 0:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 12:51 "Missing" RAID devices Jim Santos
2013-05-21 15:31 ` Phil Turmel
2013-05-21 22:22 ` Jim Santos
2013-05-22 0:02 ` Phil Turmel [this message]
2013-05-22 0:16 ` Jim Santos
2013-05-22 22:43 ` Stan Hoeppner
2013-05-22 23:26 ` Phil Turmel
2013-05-23 5:59 ` Stan Hoeppner
2013-05-23 8:30 ` keld
2013-05-24 3:45 ` Stan Hoeppner
2013-05-24 6:32 ` keld
2013-05-24 7:37 ` Stan Hoeppner
2013-05-24 17:15 ` keld
2013-05-24 19:05 ` Stan Hoeppner
2013-05-24 19:22 ` keld
2013-05-25 1:42 ` Stan Hoeppner
2013-05-24 9:23 ` David Brown
2013-05-24 18:03 ` keld
2013-05-23 8:22 ` David Brown
2013-05-21 16:23 ` Doug Ledford
2013-05-21 17:03 ` Drew
[not found] ` <519BDC8C.1040202@hardwarefreak.com>
2013-05-21 21:02 ` Drew
2013-05-21 22:06 ` Stan Hoeppner
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=519C0B13.3040906@turmel.org \
--to=philip@turmel.org \
--cc=iluvgadgets@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 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.