X-Original-To: alpine-user@mail.alpinelinux.org Delivered-To: alpine-user@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id BDB23DC87DB for ; Thu, 21 Jan 2016 15:32:01 +0000 (UTC) Received: from smtp.bloms.de (smtp.bloms.de [84.200.248.35]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 36B6ADC0116 for ; Thu, 21 Jan 2016 15:32:00 +0000 (UTC) Received: from smtp.bloms.de (localhost.localdomain [127.0.0.1]) by smtp.bloms.de (Postfix) with ESMTP id 05B882800DA; Thu, 21 Jan 2016 16:31:55 +0100 (CET) Received: by smtp.bloms.de (Postfix, from userid 1000) id E8E782800E3; Thu, 21 Jan 2016 16:31:54 +0100 (CET) Date: Thu, 21 Jan 2016 16:31:54 +0100 From: Dieter Bloms To: Natanael Copa Cc: alpine-user@lists.alpinelinux.org Subject: Re: [alpine-user] alpinelinux 3.3.1 can not boot, when root is on lvm, which is on raid1 Message-ID: <20160121153154.GA3679@bloms.de> References: <20160108205634.GA6702@bloms.de> <20160111085919.45eaa3cc@ncopa-desktop.alpinelinux.org> <20160111110233.3a20396d@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160111110233.3a20396d@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP Hello Natanael, On Mon, Jan 11, Natanael Copa wrote: > On Mon, 11 Jan 2016 08:59:19 +0100 > Natanael Copa wrote: > > > On Fri, 8 Jan 2016 21:56:34 +0100 > > Dieter Bloms wrote: > > > > > Hi, > > > > > > I installed alpinelinux 3.3.1 with manual disc mode. > > > My root is a logical volume in a volume group on a raid1 system. > > > During boot the raid is activated, but the logical volumes are not. > > > So I have to activate it manually and mount it to /sysroot. > > > After that I can boot into alpinelinux. > > > > > > Is it a known problem, that lvm on a raid is not activated in the > > > initramfs during boot ? > > > > It is a known problem. I have the same on my workstation. Sometimes it > > works and sometimes it fails so I think it is a timing issue. > > > > Today I looked at it a bit and it seems that /sbin/lvm is never > > executed from initramfs. It means that the nlplug-findfs times out > > before it gets the hotplug event for mdadm devices. > > > > I think we have a few options for fixing it: > > > > 1) when mdadm is run, make it wait til all mdadm devices are run before > > exit. I don't know if this is possible, but nlplug-finds will not > > exit til all forked children has exited. This means that mdadm > > executes, initalizes the raid devices, and exits long before the > > kernel generates the uevent for the raid device. If we could make > > mdadm not exit til the uevent is generated, then we should be fine. > > I don't know if there is any option for that. (probably not) > > > > 2) When mdadm is started, increase the default nlplug-findfs timeout > > (250ms) so kernel gets enough time to generate the raid device > > uevent before nlplug-findfs times out. We could increase it with 1 > > sec for example? The problem is that I don't know what is a good > > value since it may depend on the hardware. It will also make boot > > slower when you boot to tmpfs root but does not have any apkovl. I > > doubt there will ever exist any such setup so the slowdown here is > > acceptable. > > > > 3) When boot option `root=...` is specified, increase the default > > nlplug-findfs timeout (250ms) to something significantly longer. > > Maybe 2 seconds? 5 seconds? If we actually timeout, it means that we > > will failed to find the rootfs and the boot will fail. So it makes > > sense to increase the timeout for making it not give up that fast. > > I tested this. it didnt help. must be mdadm that mdadm delete/recreate > the /dev/md* device node so that when the uevent trigger happens, > the /dev/md* device node temporarily does not exist. > > I think we might need block event handling while mdadm executes. We do > the same for cryptsetup. did you have any success on this topic ? -- Regards Dieter -- I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the >From field. --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---