From nobody Wed Dec 22 10:18:32 2021 X-Original-To: rc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 543D11912270 for ; Wed, 22 Dec 2021 10:18:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJq6J2TGzz4jjs for ; Wed, 22 Dec 2021 10:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 122C91B0DD for ; Wed, 22 Dec 2021 10:18:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BMAIWW4068805 for ; Wed, 22 Dec 2021 10:18:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BMAIW8M068804 for rc@FreeBSD.org; Wed, 22 Dec 2021 10:18:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: rc@FreeBSD.org Subject: [Bug 251610] [patch] rc.d/zpool runs before ada(4) attaches Date: Wed, 22 Dec 2021 10:18:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hf@spg.tu-darmstadt.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640168312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ed4tTBwtnjB2rc5lvFdm3oo8ETBe5FED10bUPqWoutc=; b=EyDTYLs7HRLDHnyDngmkJF58dzTibFHG2U5bqG9G199da6k41RREv8+opbrnHN7RrrGdWF FVkyNJ22oP48acWTpoOREGVL1tM0a6sodQQtXXgUkl+apo9WUUWgopgHdVA5ky/a2ITtbu B0RSQFHuA+RtC/RwQGI56Oc67kxiLoaCvP4mkT0Xpql7QFabCrDWc3d+07a2C8TJnxVVYq jnGuhunWi+aGlmYqnGqrzFgRE4WwecbGi7eF7D303YZ19xkzVIY8IyOa9iagruWvPAdUvj lmFXLBYzSxH8dDxdjrVqSqXTH2H584GCIZZVC/JYYIb+psSJ+YcGeW68+2OwHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640168312; a=rsa-sha256; cv=none; b=eVMJy1Fh7fcaE0jp6gNiemIvtYKqQVBTccV/CjuEwkMF/0Dqov75v+5kikD0oCVRGSc98g azLj7AzZ6nozOLOJp0stoqUL8PZBvVNMvIZJPjeTYnJBEoNK5r64NbT6rSFcAx8gSqAGo3 8wBa+bd9hGMOv/QJoUjgBXTOfLCvt2P5MH+htW2w2N/zka8tzv8rI26ie7vWmHmt3NKQnh LV+bHFqeapw4+lhC/hfw9lsEoewUNpm8V2Ddq7/PeiNJJVbIDeuMVQBRKvW4OoQ5T/VORk l3q8K7Xx1Av2iNY7HFgGOS9bV2pvTQShR79blSw3QV3rtMMepGHdxb0O/iy+Xw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251610 --- Comment #3 from Hauke Fath --- Came here to say this. In the process of setting up a fileserver, I noticed that a 10 TB pool replicated from the old omniosce machine wouldn't mount during boot, while = it had no problem when imported manually. My observations and comments: The (rather misleading) error message from /etc/rc.d/zpool is frequently interspersed with kernel autoconfiguration messages (see attachment). This = made it harder than necessary to figure out what was going wrong, together with = my disbelief that something so string-and-ducttape-y should be shipped in a release. Why does the kernel boot multi-user before it's done with autoconfiguration? And if parallelizing operations is the idea, why isn't there a barrier in p= lace for things as vital as disk operations? Et c'est pas fini: Downstream, mountd is utterly confused about a list of mounts in /etc/zfs/exports that don't exist ("mountd[7977]: bad exports list line 'redacted': symbolic link in export path or statfs failed"). Why is th= is information persisted, instead of being created during the zpool import und= er /var/run - or not, if the pool isn't found? In the end, I inserted a 20 sec sleep in /etc/rc.d/zpool, and moved on, rat= her unimpressed. --=20 You are receiving this mail because: You are the assignee for the bug.=