From: Michael Evans <mjevans1983@gmail.com>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: Daniel Reurich <daniel@centurion.net.nz>,
Neil Brown <neilb@suse.de>,
linux-raid <linux-raid@vger.kernel.org>,
567468@bugs.debian.org
Subject: Bug#567468: (boot time consequences of) Linux mdadm superblock question.
Date: Sun, 21 Feb 2010 23:37:49 -0800 [thread overview]
Message-ID: <4877c76c1002212337i36f208dcyd1be7a93625d2a6@mail.gmail.com> (raw)
In-Reply-To: <873a0t4ume.fsf@frosties.localdomain>
On Sun, Feb 21, 2010 at 11:06 PM, Goswin von Brederlow
<goswin-v-b@web.de> wrote:
> martin f krafft <madduck@madduck.net> writes:
>
>> also sprach Daniel Reurich <daniel@centurion.net.nz> [2010.02.19.0351 +0100]:
>>> But if a generated 'system uuid' value (I just suggested the root fs
>>> UUID because it would be highly unlikely to be unchanged, and nobody
>>> would be likely to fiddle with it) was copied into a file
>>> called /etc/system_uuid and copied into the initrd, then we could add
>>> put into mdadms hook script in initramfs-tools, to verify and update the
>>> homehost variable in the boot time required raid volumes when ever a new
>>> initrd is installed. (This generally happens on debian whenever a
>>> kernel is installed and mdadm is installed or upgraded.
>>
>> Neil's point is that no such value exists. The root filesystem UUID
>> is not available when the array is created. And updating the
>> homehost in the RAID metadata at boot time would defeat the purpose
>> of homehost in the first place.
>>
>>> As an added protection we could include checks in mdadm shutdown
>>> script a check that warns when mdadm.conf doesn't exist and the
>>> /etc/system_uuid doesn't match the homehost value in the boottime
>>> assembled raid volumes. If we did use the root filesystem UUID
>>> for this, we could compare that as well.
>>
>> Debian has no policy for this. There is no way to warn a user and
>> interrupt the shutdown process.
>>
>>> It would be useful to have a tool similar to /bin/hostname that
>>> could be used to create|read|verify|update the system uuid, which
>>> would update all the relevant locations which store and check
>>> against this system uuid.
>>
>> Yes, it would be useful to have a system UUID that could be
>> generated by the installer and henceforth written to the newly
>> installed system. This is probably something the LSB should push.
>> But you could also bring it up for discussion on debian-devel.
>
> How would that work with network boot where the initrd would have to
> work for multiple hosts?
>
> MfG
> Goswin
> --
> 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
>
I don't know how whatever was mentioned previously would work for
that, but I do have a solution.
Incremental assembly, or examine with all block devices to generate a
new mdadm.conf file. Then run only devices which are in a complete
state. The next step would be not mount by uuid, but mount by label.
Presuming you have a consistently labeled rootfs in your deployment
(say mandating that the / filesystem be labeled 'root' or some other
value and that no other FS may share that same label) then it should
work out just fine.
next prev parent reply other threads:[~2010-02-22 7:37 UTC|newest]
Thread overview: 92+ 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
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 ` Michael Evans [this message]
2010-02-22 9:14 ` Bug#567468: " 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
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=4877c76c1002212337i36f208dcyd1be7a93625d2a6@mail.gmail.com \
--to=mjevans1983@gmail.com \
--cc=567468@bugs.debian.org \
--cc=daniel@centurion.net.nz \
--cc=goswin-v-b@web.de \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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).