From: Rudy Zijlstra <rudy@grumpydevil.homelinux.org>
To: Kyle Moffett <kyle@moffetthome.net>
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 10:38:47 +0100 [thread overview]
Message-ID: <4B7BB927.5000305@grumpydevil.homelinux.org> (raw)
In-Reply-To: <f73f7ab81002162234t531203ccue1f9ecc839c8ae42@mail.gmail.com>
Kyle Moffett wrote:
> On Tue, Feb 16, 2010 at 21:01, Neil Brown <neilb@suse.de> wrote:
>
>> On Tue, 16 Feb 2010 16:03:43 -0900 (AKST) "Mr. James W. Laferriere" <babydr@baby-dragons.com> wrote:
>>
>>> I am unaware of any record from Neil or other maintainer(s) of the
>>> /md/ device tree saying that they will not remove the 0.90 table and the
>>> autoassembly functions there . I'd very much like to hear a statement saying
>>> there will not be a removal of the autoassembly functions for 0.90 raid table
>>> from the kernel tree .
>>>
>> 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.
>
> You should also take a look at your distro installers. There is not a
> single one made in the last several years which does not use an
> initramfs to start networking or access the installation media. In
> fact, of all the distro installers I have had the most consistent
> behavior regardless of system hardware from the ones which operate
> entirely out of their initramfs.
>
> From a reliability perspective, an initramfs is no more essential
> than, say, /sbin/init or /boot/vmlinuz-2.6.33. Furthermore, all of
> the modern initramfs generation tools automatically keep backup copies
> exactly the same way that "make install" keeps backup copies of your
> kernel images. The two times I've managed to hose my initramfs I was
> able to simply edit my grub config to use a file called something like
> "/boot/initramfs-2.6.33.bak" instead.
>
> In fact, I have had several times where an initramfs made my boot
> process *more* reliable. On one of my LVM JBOD systems, I was able to
> pull a group of 3 SATA drives whose backplane had failed and drop them
> all in USB enclosures to get the system back up and running in a half
> an hour. With just straight partitions on the volumes I would have
> been hunting around for 2 hours to figure out where all my partitions
> had gone only to have the USB drives spin up in a different order
> during the next reboot.
>
> If you're really concerned about boot-process reliability, go ahead
> and tell your initramfs tool to include a fully-featured busybox,
> coreutils, bash, strace, gdb, and a half-dozen other developer tools.
> You may wait an extra 20 seconds for your bootloader to load the damn
> thing during boot, but you'll be able to track down that annoying
> 10-second hang in your /sbin/init program during config-file parsing.
>
> I've built specialized embedded computers with stripped-down chipset
> initialization code, a tiny Linux kernel and a special-purpose
> initramfs burned into the flash. By using the fastboot patches and
> disabling all the excess drivers, my kernel was fully operational
> within the first half-second. It used the tools on the initramfs to
> poke around on the hard disk as a bootloader, then kexec() to load the
> operational kernel.
>
> Counting up all the problems I've had with system boot... I've had an
> order of magnitude more problems from somebody getting careless with
> "rm", "dpkg --purge", etc than with initramfs deficiencies.
>
>
>
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.
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.
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.
Cheers,
Rudy
next prev parent reply other threads:[~2010-02-17 9:38 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-14 1:51 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
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 [this message]
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
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-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 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
[not found] ` <201002142013.24922.volkerarmin@googlemail.com>
[not found] ` <4B7AAB8D.9030009@anonymous.org.uk>
2010-02-16 14:37 ` Volker Armin Hemmann
2010-02-16 17:23 ` John Robinson
[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-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-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 3:40 ` CaT
2010-02-13 6:42 ` martin f krafft
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=4B7BB927.5000305@grumpydevil.homelinux.org \
--to=rudy@grumpydevil.homelinux.org \
--cc=babydr@baby-dragons.com \
--cc=davidsen@tmr.com \
--cc=kyle@moffetthome.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=mjevans1983@gmail.com \
--cc=neilb@suse.de \
--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
all inboxes | Powered by JetHome®