From: Kyle Moffett <kyle@moffetthome.net>
To: Rudy Zijlstra <rudy@grumpydevil.homelinux.org>
Cc: Neil Brown <neilb@suse.de>,
"Mr. James W. Laferriere" <babydr@baby-dragons.com>,
Bill Davidsen <davidsen@tmr.com>,
Volker Armin Hemmann <volkerarmin@googlemail.com>,
Michael Evans <mjevans1983@gmail.com>,
linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org
Subject: Re: Linux mdadm superblock question.
Date: Wed, 17 Feb 2010 11:22:45 -0500 [thread overview]
Message-ID: <f73f7ab81002170822j7e61455o6bee33d95c9648a1@mail.gmail.com> (raw)
In-Reply-To: <4B7BB927.5000305@grumpydevil.homelinux.org>
On Wed, Feb 17, 2010 at 04:38, Rudy Zijlstra
<rudy@grumpydevil.homelinux.org> wrote:
> Kyle Moffett wrote:
>> On Tue, Feb 16, 2010 at 21:01, Neil Brown <neilb@suse.de> wrote:
>>> I will not be removing 0.90 or auto-assemble from the kernel in the
>>> foreseeable future.
>>> None the less, I recommend weaning yourself from your dependence on it.
>>> initramfs is the future, embrace it.
>>>
>>
>> What are people's reasons for pushback against initramfs? I've heard
>> lots of claims that "it's not trustworthy" and "it breaks", but in 7
>> years of running bootable software RAID boxes on weird architectures
>> (even running Debian unstable) I have only once or twice had initramfs
>> problems.
>>
>> As a software capability, initramfs makes it possible to use
>> *anything* as a root filesystem, no matter what is necessary to set it
>> up. For example, I have seen somebody use DRBD (essentially network
>> RAID-1) as a root filesystem with a few custom hook scripts added to
>> the initramfs-tools configs. Other examples include using Sun ZFS as
>> a root fs via an initramfs FUSE daemon, a feat which even Solaris
>> could not accomplish at the time. Encrypted root filesystems also
>> require an initramfs to prompt for encryption keys and decrypt the
>> block device. Multipath block devices are another example.
>
> We are looking at 2 different use-cases i think.
>
> for the power-user system manager, who manages all his servers and has
> knowledgeable backup, initrd may indeed work as above.
>
> I have to keep in mind, that when there is a problem while i am travelling
> (and that happens), there is no sys-admin present. Also, i am supporting
> systems remote where no-one has the knowledge to debug using a initrd. In
> such cases, initrd is an additional step. And each additional step is an
> additional source of mistakes.
Actually, a properly built initramfs gives you far more reliable
behavior even without a local sysadmin. For example, most
graphical-boot tools are designed to be built into an initramfs; I
have seen some prototype initramfs images which provide end-user
accessible GUI boot menus and other tools which function reliably even
when your root filesystem is inaccessible.
> 1/ distro tools assume that the kernel being build will run on that machine.
> For servers this is often not true. There are very valid security reasons to
> exclude compilation capability from many servers.
As Frans Pop states, this is entirely untrue for (at the very least)
Debian. The "initramfs-tools" package present there works regardless
of where I obtain my kernel. If I use the "make-kpkg" Debian tool
when building my kernel (regardless of where it is built), then the
resulting package will automatically generate an appropriate initramfs
image when installed. If for some reason I install a kernel by hand I
can very trivially build the necessary initramfs with this command:
update-initramfs -c -k 2.6.32-mykernel01
In the event that you need to "customize" the initramfs for some
reason, you can simply do so. When the "update-initramfs" tool is
next run, it will report that the user has customized that image and
avoid modifying it. If you wish to return to the autogenerated
initramfs you can simply run this command:
update-initramfs -u -t -k 2.6.32-2-amd64
> 2/ For most small shops, there is need for RAID (disks are fallible, shop
> cannot do without server), the RAID should work without being visible. If
> there is a problem with the RAID that causes auto-assemble to break, it
> means i need to travel (>100KM) to trouble shoot. The simpler the setup, the
> more i like it. This is also why i almost always use HW raid for the system
> partitions. The ones i use have userland tools in Linux which warn on disk
> failure, ensure auto rebuild, etc...
> Still, for large storage needs it is SW RAID over SATA.
>
> 3/ for my home systems, if i need to remote-support to get things working
> again (i am often travelling for my work), the added layer of initrd is an
> added layer of possible mistakes.
You are actually just setting yourself up for problems. RAID
autoassembly has bad corner cases when disks disappear between reboots
(which happens with failing disk head assemblies). In that case it
will fail to find its root filesystem or wait forever for the last
disk to show up. I have had even *worse* problems (including
corruption of unrelated logical volumes) with many hardware RAID
controllers, even those from big-name server vendors such as HP and
Dell.
To contrast, an initramfs is configurable to prompt the user,
automatically degrade the array after a small delay, or even play a
kazoo if desired :-D. One of these days I may get around to building
myself a small GUI wrapper around mdadm on an initramfs which allows a
user to manually recover from RAID problems.
Cheers,
Kyle Moffett
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-02-17 16:22 UTC|newest]
Thread overview: 132+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-14 1:51 Linux mdadm superblock question Volker Armin Hemmann
2010-02-14 4:02 ` Michael Evans
2010-02-14 7:21 ` david
2010-02-14 8:38 ` Michael Evans
2010-02-14 18:40 ` Volker Armin Hemmann
2010-02-14 18:53 ` John Robinson
2010-02-14 21:16 ` Gabor Gombas
[not found] ` <201002142013.24922.volkerarmin@googlemail.com>
2010-02-16 14:28 ` John Robinson
2010-02-16 14:37 ` Volker Armin Hemmann
2010-02-16 14:46 ` Robin Hill
2010-02-16 17:23 ` John Robinson
2010-02-16 19:38 ` Luca Berra
2010-02-16 17:18 ` Bill Davidsen
2010-02-16 21:06 ` Volker Armin Hemmann
2010-02-16 22:00 ` Nick Bowler
2010-02-16 22:18 ` Volker Armin Hemmann
2010-02-17 14:25 ` Nick Bowler
2010-02-18 9:27 ` Ian Dall
2010-02-17 1:03 ` Mr. James W. Laferriere
2010-02-17 2:01 ` Neil Brown
2010-02-17 2:38 ` Volker Armin Hemmann
2010-02-17 23:15 ` Neil Brown
2010-02-17 6:34 ` Kyle Moffett
2010-02-17 9:38 ` Rudy Zijlstra
2010-02-17 13:26 ` Frans Pop
2010-02-17 20:54 ` Gabor Gombas
2010-02-17 21:29 ` Frans Pop
2010-02-18 3:40 ` Goswin von Brederlow
2010-02-17 16:22 ` Kyle Moffett [this message]
2010-02-17 17:41 ` david
2010-02-17 18:10 ` Nick Bowler
2010-02-17 18:27 ` Volker Armin Hemmann
2010-02-17 18:37 ` Nick Bowler
2010-02-17 18:41 ` david
2010-02-17 18:51 ` Nick Bowler
2010-02-17 21:17 ` david
2010-02-17 21:37 ` Nick Bowler
2010-02-17 22:21 ` david
2010-02-17 22:29 ` boot times, not mdadm (was: Linux mdadm superblock question.) martin f krafft
2010-02-17 23:24 ` (boot time consequences of) Linux mdadm superblock question Neil Brown
2010-02-17 23:50 ` martin f krafft
2010-02-18 2:58 ` Henrique de Moraes Holschuh
2010-02-18 3:26 ` martin f krafft
2010-02-18 4:03 ` Daniel Reurich
2010-02-18 4:40 ` martin f krafft
2010-02-18 5:10 ` Neil Brown
2010-02-18 5:21 ` martin f krafft
2010-02-18 5:34 ` Neil Brown
2010-02-19 0:42 ` martin f krafft
2010-02-19 2:51 ` Daniel Reurich
[not found] ` <20100221171445.GB17267@lapse.rw.madduck.net>
2010-02-22 7:06 ` Goswin von Brederlow
2010-02-22 7:37 ` Bug#567468: " Michael Evans
2010-02-22 9:14 ` martin f krafft
2010-02-22 9:11 ` martin f krafft
2010-02-22 10:42 ` Daniel Reurich
2010-02-19 9:16 ` Piergiorgio Sartor
[not found] ` <20100221174007.GB19058@lapse.rw.madduck.net>
[not found] ` <20100221201304.GB2570@lazy.lzy>
2010-02-22 9:16 ` Bug#567468: md homehost (was: Bug#567468: (boot time consequences of) Linux mdadm superblock) question martin f krafft
2010-02-22 11:11 ` Daniel Reurich
2010-02-23 7:29 ` md homehost Goswin von Brederlow
2010-02-23 8:10 ` martin f krafft
2010-02-23 2:30 ` md homehost (was: Bug#567468: (boot time consequences of) Linux mdadm superblock) question Neil Brown
2010-02-23 6:27 ` martin f krafft
2010-02-23 7:31 ` md homehost Goswin von Brederlow
2010-02-23 8:16 ` Bug#567468: " martin f krafft
2010-02-24 13:13 ` Goswin von Brederlow
2010-02-24 17:52 ` Mario 'BitKoenig' Holbe
2010-02-24 22:23 ` Neil Brown
2010-02-23 8:18 ` Piergiorgio Sartor
2010-02-24 0:10 ` md homehost (was: Bug#567468: (boot time consequences of) Linux mdadm superblock) question Neil Brown
2010-02-24 4:12 ` Michael Evans
2010-02-24 13:41 ` md homehost Goswin von Brederlow
2010-02-24 22:30 ` Neil Brown
2010-02-25 7:16 ` Goswin von Brederlow
2010-02-25 7:46 ` Neil Brown
2010-02-25 8:33 ` Michael Evans
2010-02-25 11:55 ` Mario 'BitKoenig' Holbe
2010-02-18 5:17 ` (boot time consequences of) Linux mdadm superblock question Daniel Reurich
2010-02-18 5:22 ` martin f krafft
2010-02-17 18:46 ` Volker Armin Hemmann
2010-02-17 22:26 ` H. Peter Anvin
2010-02-18 3:33 ` Goswin von Brederlow
2010-02-18 7:51 ` Luca Berra
2010-02-18 14:12 ` Nick Bowler
2010-02-19 9:04 ` Michael Evans
2010-02-14 19:34 ` Henrique de Moraes Holschuh
2010-02-14 20:07 ` Michael Evans
2010-02-14 21:14 ` Henrique de Moraes Holschuh
2010-02-14 20:47 ` Asdo
2010-02-14 21:26 ` Henrique de Moraes Holschuh
2010-02-14 21:28 ` Gabor Gombas
2010-02-15 9:08 ` martin f krafft
2010-02-15 7:51 ` Luca Berra
[not found] <edBWa-K7-9@gated-at.bofh.it>
[not found] ` <edDXX-3XC-7@gated-at.bofh.it>
[not found] ` <edRHA-7bL-13@gated-at.bofh.it>
[not found] ` <eezfA-4N7-11@gated-at.bofh.it>
2010-02-16 21:10 ` Bodo Eggert
-- strict thread matches above, loose matches on Subject: below --
2010-02-11 23:00 Justin Piszcz
2010-02-12 1:52 ` Michael Evans
2010-02-12 9:06 ` Robin Hill
2010-02-12 21:53 ` Mr. James W. Laferriere
2010-02-16 0:57 ` Neil Brown
2010-02-16 16:42 ` Bill Davidsen
2010-02-13 19:58 ` H. Peter Anvin
2010-02-13 20:07 ` Justin Piszcz
2010-02-13 20:49 ` david
2010-02-13 21:07 ` Michael Evans
2010-02-13 21:29 ` H. Peter Anvin
2010-02-14 20:25 ` Asdo
2010-02-14 21:18 ` H. Peter Anvin
2010-02-14 21:34 ` Henrique de Moraes Holschuh
2010-02-14 23:20 ` Rudy Zijlstra
2010-02-15 3:40 ` Mr. James W. Laferriere
2010-02-15 7:12 ` Luca Berra
2010-02-16 0:38 ` Neil Brown
2010-02-16 0:27 ` Neil Brown
2010-02-16 1:24 ` H. Peter Anvin
2010-02-16 3:18 ` david
2010-02-16 4:42 ` John Robinson
2010-02-16 7:02 ` H. Peter Anvin
2010-02-16 8:46 ` Rudy Zijlstra
2010-02-16 17:05 ` Bill Davidsen
2010-02-16 23:30 ` H. Peter Anvin
2010-02-16 10:12 ` Giovanni Tessore
2010-02-17 23:10 ` Neil Brown
2010-02-16 3:40 ` CaT
2010-02-13 6:42 ` martin f krafft
2010-02-13 8:37 ` Giovanni Tessore
2010-02-13 9:26 ` Michael Evans
2010-02-13 9:35 ` Giovanni Tessore
2010-02-13 9:40 ` Michael Evans
2010-02-13 10:06 ` Giovanni Tessore
2010-02-16 0:50 ` Neil Brown
2010-02-16 13:14 ` Justin Piszcz
2010-02-17 23:11 ` Neil Brown
2010-02-16 17:24 ` 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=f73f7ab81002170822j7e61455o6bee33d95c9648a1@mail.gmail.com \
--to=kyle@moffetthome.net \
--cc=babydr@baby-dragons.com \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=mjevans1983@gmail.com \
--cc=neilb@suse.de \
--cc=rudy@grumpydevil.homelinux.org \
--cc=volkerarmin@googlemail.com \
/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).