Debian Bug report logs - #918681
lvm2: initramfs-tools hook scripts don't properly setup lvmraid system at boot

version graph

Package: lvm2; Maintainer for lvm2 is Debian LVM Team <[email protected]>; Source for lvm2 is src:lvm2 (PTS, buildd, popcon).

Reported by: Paul Wise <[email protected]>

Date: Tue, 8 Jan 2019 10:45:01 UTC

Severity: wishlist

Found in version lvm2/2.03.02-1

Full log


Message #15 received at [email protected] (full text, mbox, reply):

Received: (at 918681) by bugs.debian.org; 19 Mar 2023 06:08:51 +0000
From [email protected] Sun Mar 19 06:08:51 2023
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS
	autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 113; neutral, 54; spammy,
	1. spammytokens:0.987-1--H*Ad:U*918681
	hammytokens:0.000-+--H*F:D*disroot.org, 0.000-+--H*rp:D*disroot.org,
	0.000-+--H*r:disroot.org, 0.000-+--Hx-spam-relays-external:disroot.org,
	 0.000-+--H*RU:disroot.org
Return-path: <[email protected]>
Received: from knopi.disroot.org ([178.21.23.139]:49422)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1pdmDo-007Xgn-Pg
	for [email protected]; Sun, 19 Mar 2023 06:08:50 +0000
Received: from localhost (localhost [127.0.0.1])
	by disroot.org (Postfix) with ESMTP id 13659445A3
	for <[email protected]>; Sun, 19 Mar 2023 07:08:47 +0100 (CET)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
	by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xLQndY2B8hpg for <[email protected]>;
	Sun, 19 Mar 2023 07:08:45 +0100 (CET)
Content-Type: multipart/mixed; boundary="------------zZk7E0i1jpce0p2SHlHGErZK"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
	t=1679206125; bh=909fUfAwG5Je+lTGuqm/TgzJpLwM5ZZ1Eov+8fGSrOE=;
	h=Date:Subject:From:To:References:In-Reply-To;
	b=OReqZRBj/IKKbaUWV9XhGTixM+TMhT/XFjRz1qxQNWi3b1DgidwMkKUsDxsBcMtxT
	 fTc4hJseJ4bRnfwCU9y9QVt9yM0+CI/BUdSmz8WzII4FOUMsgRT0PLvkBLX5QXzwjr
	 S72VoRIH5sdTjoH3l591tqXGe3/GSNOUC2lR581ljYzjIMA3/NRc+Rytwi1W+LgzVg
	 2Pu8zezDNYasJ5hBrkmHEH3I/YPCxGYyBccPBZwVPoDuXy5VqHws4UDbDchxs+7Y62
	 6OY0vrZE6v1bQTJcllbv9M0K92e6qf0x2jOyt6wpgpms7tQlkucDF9eVyp9NFL744m
	 TY3e9QjR3Mllw==
Message-ID: <[email protected]>
Date: Sun, 19 Mar 2023 14:08:41 +0800
MIME-Version: 1.0
Subject: Re: A initramfs boot script that wait lvmraid become complete for
 root device
Content-Language: en-US
From: gold holk <[email protected]>
To: [email protected]
References: <[email protected]>
In-Reply-To: <[email protected]>
[Message part 1 (text/plain, inline)]
Sorry, a bug in script about prereq

gold holk 於 2023/3/19 14:01 寫道:
> Hey Paul and LVM team:
>
> I faced this issue and manage to write a initramfs-tool boot script to 
> fix this.
>
> Put the enclosure script in `/etc/initramfs-tools/scripts/local-top` 
> and run `update-initramfs -k all -u`, the initramfs boot stage will 
> run this script and wait for the root device becoming `complete` 
> status. If it does not complete in 2 minutes, it will stop waiting and 
> continue boot.
>
> To write or debug the initramfs script, the `initramfs-tools(7)` would 
> be helpful.
>
> As my realization, to fix this issue in lvm2 package, we should make 
> `/usr/share/initramfs-tools/scripts/local-top/lvm2` check the status 
> of the activated LV. Please tell me if I can help to merge my script 
> into the existing lvm2 initramfs script.
>
> I am new to debian community. This is the first time I write a 
> initramfs-script, though I am already experienced in normal  shell 
> script.
>
> I also asked and answered this issue on stack-exchange community; it 
> may be helpful if you want to know more details:
> tabopen 
> https://superuser.com/questions/1773241/raid-1-lv-partially-up-and-unable-to-repair-the-down-rimage-is-missing
>
> May the source be with you
>
-- 
linux user, amateur web developer, geomatics major.
blog: http://gholk.github.io
[initramfs-lvm-raid-wait.sh (application/x-shellscript, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 17:37:39 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.