From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: udev <-> mdev
Date: Sun, 15 Jul 2012 01:02:47 +0000 (UTC) [thread overview]
Message-ID: <pan.2012.07.15.01.02.47@cox.net> (raw)
In-Reply-To: CAGfcS_kHU5cKsuMjorPrhdqudtn80r=e7W0QYskXBK0+bgLsDA@mail.gmail.com
Rich Freeman posted on Sat, 14 Jul 2012 19:57:41 -0400 as excerpted:
> On Sat, Jul 14, 2012 at 7:38 PM, Duncan <1i5t5.duncan@cox.net> wrote:
>> BTW, any "gentooish" documentation out there on rootfs as tmpfs, with
>> /etc and the like mounted on top of it, operationally ro, rw remounted
>> for updates?
>>
>> That's obviously going to take an initr*, which I've never really
>> understood to the point I'm comfortable with my ability to recover from
>> problems so I've not run one since my Mandrake era, but that's a status
>> that can change, and what with the /usr move and some computer problems
>> I just finished dealing with, I've been thinking about the possibility
>> lately. So if there's some good docs on the topic someone can point me
>> at, I'd be grateful. =:^)
>
> I doubt anybody has tried it, so you'll have to experiment.
"Anybody" /anybody/, or "anybody" on gentoo? FWIW, there are people
running it in general (IIRC much of the discussion was on Debian, some on
Fedora/RH), but I didn't see anything out there written from a gentoo
perspective. Gentoo-based docs/perspective does help, as one isn't
constantly having to translate binary-based assumptions into "gentooese",
but there's enough out there in general that a suitably determined/
motivated person at the usual experienced gentoo user level should be
able to do it, without having to be an /extreme/ wizard. But so far I've
not been /that/ motivated, and if there was gentoo docs available, it
would bring the barriers down far enough that I likely /would/ then have
the (now lower) required motivation/determination.
Just looking for that shortcut, is all. =:^)
> I imagine you could do it with a dracut module. There is already a
> module that will parse a pre-boot fstab (/etc/fstab.sys). The trick is
> that you need to create the root filesystem and the mountpoints within
> it first. The trick will be how dracut handles not specifying a root
> filesystem.
While I do know dracut is an initr* helper, you just made me quite aware
of just how much research I'd have to do on the topic. =:^\ I wasn't
aware dracut even /had/ modules, while you're referring to them with the
ease of familiarity...
> However, if anything I think the future trend will be towards having
> everything back on the root filesystem, since with btrfs you can set
> quotas on subvolumes and have a lot more flexibility in general, which
> you start to lose if you chop up your disks. However, I guess you could
> still have one big btrfs filesystem and mount individual subvolumes out
> of it onto your root. I'm not really sure what that gets you. Having
> the root itself be a subvolume does have benefits, since you can then
> snapshot it and easily boot back off a snapshot if something goes wrong.
The big problem with btrfs subvolumes from my perspective is that they're
still all on a single primary filesystem, and if that filesystem develops
problems... all your eggs/data are in one big basket, good luck if the
bottom drops out of it!
One lesson I've had drilled into my head repeatedly over now two decades
of computer experience... don't put all your data in one basket! It's a
personal policy that's saved my @$$ more than a few times over the years.
Even with raid, when I first setup md/raid, I set it up as a nice big
(partitioned) raid, with a second (similarly partitioned) raid as a
backup. With triple-digits gigs of data (this was pre-terabyte-drive
era), a system-crash related re-add and resync would take /hours/.
So when I rebuilt the setup, I created over a dozen (including working
and backup copies of many of them) individual raids, each in its own set
of partitions on the physical devices, some raids of which were further
partitioned, some not, but only the media raid (and its backup) were
anything like 100 gigs, and with many of even the working raids (plus all
backups) not even activated for normal operation unless I was actually
working on whatever data was on that raid, and in general even most of
the the assembled raids with rw mounting not actively writing at the time
of a crash, re-add and resync tended to be seconds or minutes, not hours.
So I'm about as strong a partitioning-policy advocate as you'll get, tho
I do keep everything that the pm installs, along with the installation
database (so /etc, /usr, /var, but not for instance /var/log or /usr/src,
which are mountpoints), on the same (currently) rootfs of 8-ish gigs,
with a backup root partition (actually two of them now) that I can point
the kernel at from grub, if the working rootfs breaks for some reason.
So the separate /usr/ thing hasn't affected me at all, because /usr/ is
on rootfs.
But as I said I had some computer hardware issues recently, and they made
me aware of just how nice it'd be to have that rootfs mounted read-only
for normal operation -- no fsck/log-replay needed on read-only-at-time-of-
crash mounts! =:^)
So I'm pondering just how hard it would be...
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2012-07-15 1:04 UTC|newest]
Thread overview: 92+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 15:18 [gentoo-dev] RFC: virtual/libudev Michał Górny
2012-07-10 16:54 ` Alexis Ballier
2012-07-10 17:57 ` Michał Górny
2012-07-10 18:15 ` William Hubbs
2012-07-10 19:23 ` Thomas Sachau
2012-07-11 4:51 ` Ben de Groot
2012-07-11 6:34 ` [gentoo-dev] " Duncan
2012-07-11 7:15 ` [gentoo-dev] " Michał Górny
2012-07-11 8:27 ` [gentoo-dev] " Duncan
2012-07-11 8:33 ` Michał Górny
2012-07-11 10:40 ` Rich Freeman
2012-07-11 13:02 ` Ian Stakenvicius
2012-07-11 13:49 ` Michael Mol
2012-07-11 14:06 ` Rich Freeman
2012-07-11 14:26 ` Michael Mol
2012-07-12 3:40 ` Walter Dnes
2012-07-12 13:37 ` [gentoo-dev] udev <-> mdev Ian Stakenvicius
2012-07-12 20:07 ` Walter Dnes
2012-07-12 22:29 ` William Hubbs
2012-07-13 5:58 ` [gentoo-dev] " Duncan
2012-07-13 20:04 ` Walter Dnes
2012-07-13 20:12 ` Richard Yao
2012-07-13 22:49 ` Maxim Kammerer
2012-07-14 0:13 ` Walter Dnes
2012-07-14 0:36 ` Canek Peláez Valdés
2012-07-14 0:40 ` Michael Mol
2012-07-14 1:10 ` Walter Dnes
2012-07-14 1:15 ` Michael Mol
2012-07-14 1:21 ` Olivier Crête
2012-07-14 1:29 ` Rich Freeman
2012-07-29 11:31 ` Luca Barbato
2012-07-14 0:41 ` Maxim Kammerer
2012-07-14 1:22 ` Walter Dnes
2012-07-14 1:28 ` Michael Mol
2012-07-14 2:32 ` Canek Peláez Valdés
2012-07-14 2:34 ` Canek Peláez Valdés
2012-07-29 11:38 ` Luca Barbato
2012-07-30 16:44 ` Walter Dnes
2012-07-14 3:13 ` William Hubbs
2012-07-14 5:35 ` Sylvain Alain
2012-07-14 6:30 ` Canek Peláez Valdés
2012-07-14 21:02 ` Peter Stuge
2012-07-14 21:29 ` Canek Peláez Valdés
2012-07-14 21:52 ` Peter Stuge
2012-07-14 23:38 ` Duncan
2012-07-14 23:57 ` Rich Freeman
2012-07-15 1:02 ` Duncan [this message]
2012-07-15 12:30 ` Rich Freeman
2012-07-15 18:25 ` Duncan
2012-07-15 18:48 ` Rich Freeman
2012-07-16 0:30 ` Duncan
2012-07-16 0:57 ` Michael Mol
2012-07-16 8:40 ` Duncan
2012-07-16 9:22 ` Peter Stuge
2012-07-16 1:00 ` Maxim Kammerer
2012-07-16 13:53 ` Ian Stakenvicius
2012-07-16 17:52 ` Duncan
2012-07-16 7:30 ` Nicolas Sebrecht
2012-07-14 6:13 ` Graham Murray
2012-07-14 11:33 ` Duncan
2012-07-15 22:34 ` Walter Dnes
2012-07-11 14:09 ` [gentoo-dev] RFC: virtual/libudev Michał Górny
2012-07-11 14:35 ` Rich Freeman
2012-07-11 14:52 ` Michał Górny
2012-07-11 15:05 ` Rich Freeman
2012-07-11 18:26 ` Thomas Sachau
2012-07-11 19:27 ` Mike Gilbert
2012-07-11 19:54 ` William Hubbs
2012-07-11 20:33 ` Mike Gilbert
2012-07-11 20:54 ` William Hubbs
2012-07-12 17:16 ` vivo75
2012-07-11 21:04 ` Michał Górny
2012-07-26 21:44 ` Peter Alfredsen
2012-07-26 22:08 ` Canek Peláez Valdés
2012-07-27 2:37 ` [gentoo-dev] " Duncan
2012-07-27 2:49 ` Canek Peláez Valdés
2012-07-27 15:50 ` William Hubbs
2012-07-28 16:51 ` Roy Bamford
2012-07-29 0:14 ` Duncan
2012-07-29 1:01 ` Peter Stuge
2012-07-10 19:24 ` [gentoo-dev] " William Hubbs
2012-08-10 7:59 ` Michał Górny
2012-08-10 17:33 ` Thomas Sachau
2012-08-10 18:13 ` Michał Górny
2012-08-10 20:23 ` Thomas Sachau
2012-08-11 18:11 ` Peter Alfredsen
2012-08-11 18:29 ` Michał Górny
2012-08-11 18:39 ` Peter Alfredsen
2012-07-11 8:03 ` Samuli Suominen
2012-07-11 8:56 ` Diego Elio Pettenò
2012-07-11 8:31 ` Samuli Suominen
2012-07-11 14:04 ` Michał Górny
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=pan.2012.07.15.01.02.47@cox.net \
--to=1i5t5.duncan@cox.net \
--cc=gentoo-dev@lists.gentoo.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