From owner-freebsd-stable@freebsd.org Sat Dec 12 08:44:44 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3F4464AE220; Sat, 12 Dec 2020 08:44:44 +0000 (UTC) (envelope-from techynotes@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CtLn71LLPz4f75; Sat, 12 Dec 2020 08:44:42 +0000 (UTC) (envelope-from techynotes@gmail.com) Received: by mail-ej1-x62e.google.com with SMTP id w1so10970884ejf.11; Sat, 12 Dec 2020 00:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y5NL2hEJFqijWk2HV4pjKa48gP1sW18Ri4bpNzJSj/0=; b=uVV4IJrCn5oH5O7Fq6vm0Kbg7jX8d2CZ1h6z8XUj0B7TH7lHcGzQspCwv1NmIf5HWb EXpsKJhnf+vGwCy9TNM2k5WkMpWyIqYH09iuzfZyC8kftL6SjF8yKEi38u/2m89p3i40 lN0bVOkUrPesQYJmK0uH/ZG1cQFmhzTXpvE/dE2Lvd/Bh1HN4vpD9/l59WKtt1h24Aj+ fT3+AwvG95hdsFyn5qXV0hql6/hjTKH+Ak7YSKoVFkl+eFNcy5h/ISpS9fRP8UubBXW0 tHQuUd+PU4gU4F9Nvt05Q8j8oaERiRcFddBIQB9Tuyr3ywE3aApsf4zAMxjnDKBtdzGC RsyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y5NL2hEJFqijWk2HV4pjKa48gP1sW18Ri4bpNzJSj/0=; b=VCP9SGcIf6WU+4lp8ty/MCCY0+tiX+e1AzLYHdBt/bZgnH+Ixa7X7P9puy9HH96VCO tOVKc7p37yh1XLht82bbZ+Lo58AmJwPW88xm2OsiSatzt7G3QALPAY6/P+mU7KoOcqiQ h34sKbsA0I/6ToXRYDjGpmK4gxL9H07BOu+2D2wyVaehQBFZamQqvqoWnHthvYrJqOhm 6pr+PCRDCjLqPXA0D6GMJKMCnG6qHrpLVvzX2cbqwsQw8QBRMv0nsMN6t6pYJG7Q3KoO jAQy7dVjceavdPXLQIO3U+LPYPy8OPEXWJI1FEazpjKhmWT62Xdpmc3PDvBsujukG1Rl EIjw== X-Gm-Message-State: AOAM533IMdoHQnvAmEnQHyPFzh58FyU3k6URqJCkF1Z83GReAWMkCANm CvG/A1Eeu6FYR0eMAxA41aWrPQjIpDYxFQ== X-Google-Smtp-Source: ABdhPJwqFhpMXeJMOhy/YbKOcBx3Oo2QqH7V6xa74mG6OAmb6R578hunFbyxhdXte4Yd8KF7nHos1A== X-Received: by 2002:a17:906:7f10:: with SMTP id d16mr14334886ejr.104.1607762681060; Sat, 12 Dec 2020 00:44:41 -0800 (PST) Received: from ?IPv6:2001:1715:4e2a:9550:298f:3309:710a:74ec? ([2001:1715:4e2a:9550:298f:3309:710a:74ec]) by smtp.gmail.com with ESMTPSA id e18sm8589909ejr.3.2020.12.12.00.44.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Dec 2020 00:44:40 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: Consistency of pkg db on UFS From: techyNotes In-Reply-To: <20201211165713.syvzamtdtrbrgx44@frix230> Date: Sat, 12 Dec 2020 09:44:39 +0100 Cc: freebsd-fs@freebsd.org, freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20201211165713.syvzamtdtrbrgx44@frix230> To: Ali Abdallah X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Rspamd-Queue-Id: 4CtLn71LLPz4f75 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=uVV4IJrC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of techynotes@gmail.com designates 2a00:1450:4864:20::62e as permitted sender) smtp.mailfrom=techynotes@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::62e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::62e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62e:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-fs,freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2020 08:44:44 -0000 Hi Ali I had a similar problem with my HP Elitebook couple of days ago with UFS = option. I had been experimenting with various modes and setup options = including the file system ZFS and UFS. I would have installed and = reinstalled Freebsd 12.2 more than 20 times!=20 I guess the issue lies in the Installation process. Just before the = final step of rebooting it takes sometime (more than when installing = with ZFS option) to complete the installation closure tasks. This was = not completed or you did not wait until the point the message popped up = to reboot the system! To verify if this is the case, check your loader.conf and/or rc.conf it = would be empty. The options you selected during the install process = would not be recorded in these files. SOLUTION: I just reinstalled again with the option of UFS and waited on = the last before step patiently and then finally rebooted upon the alter = message of REBOOT option from the installer. BTW, I have noticed, if you go back on installer steps on any options = already selected and try to reconfigure or change, then something goes = upside down in my experience so far:-=20 1.You can check - try changing more than 2 times on the wireless Region = Code ->Result: after the reboot, wpa_supplicant.conf may be messed up. 2.You can check - try changing the Boot parameters / System Hardening in = the last before step of the installer, the options you had already = selected during the install process may not be shown and would show = unselected for all available options. Something, maybe messed up post = install. The above-mentioned is only my experience so far. However, the installer = is very stable if you have a straight through selection in one go and = wait until you get the REBOOT Alert. Best regards, Sny > On 11 Dec 2020, at 17:57, Ali Abdallah via freebsd-stable = wrote: >=20 > Hello, >=20 > I've came across the following issues on a freshly installed system = with > a UFS SU+j root partition. >=20 > # pkg install -y some_package > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > # kldload SOME_MODULE > -> crash happens here (due to drm for example) >=20 > On next boot any attempt to use pkg results in the following message: >=20 > # pkg install nano > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg from > pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait... > Verifying signature with trusted certificate > pkg.freebsd.org.2013102301... done > Installing pkg-1.15.10... > the most recent version of pkg-1.15.10 is already installed >=20 > It seems that /var/db/pkg/local.sqlite contains entry for the = installed > packages, but those packages didn't make it to the filesystem. >=20 > Is this because the db is fsynced while the actual package data is = not? >=20 > The issue is very easy to reproduce (on a VM for instance). > (I was not able to reproduce on a ZFS root filesystem). >=20 > Regards, > Ali >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org"