From nobody Sun Apr 16 02:13:47 2023 X-Original-To: freebsd-questions@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 4PzYdW1tN5z45Y7N for ; Sun, 16 Apr 2023 02:13:51 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 (2048 bits) client-digest SHA256) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PzYdV5fCrz3sKj for ; Sun, 16 Apr 2023 02:13:50 +0000 (UTC) (envelope-from johnl@iecc.com) Authentication-Results: mx1.freebsd.org; none Received: (qmail 54562 invoked from network); 16 Apr 2023 02:13:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type; s=d51d.643b59dd.k2304; bh=JPN1PwuVAdfGY3PMSoWyorIxQrF2ahN9JmC6ngi4yOk=; b=M9cohVvRiVZTKWSUBSTsNADSZWx5zgVptmE2Wt9a7JIPQB2nlc5aNNyLhrKZgeq89mIRGRVGGF8Kp7Q2Rp07ylws5NzF0IgymXhKCzkIFLxXuoT/BTObOeWQwJ0cBL2ROwmxH3SESP0HQaV1i+1WQP7eGtjLTMQJazVFQBInErGOQUeG2RLGvMNPil0Xm57nwH6rSiTcv6aJdmlq8xJn/7gtoW4dE0ZRHQGOhya/Kvb4l6iTmWe05lw6sDcZDqE0Ueesq/p50/ftQfY7/5SRoxO9A3Z4CDMDpzYF7zxCa2PuOHPYW3/uP50nBnEHQswAAn0Vzqj2ZcQPvOnwf06BXQ== Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 16 Apr 2023 02:13:49 -0000 Received: by ary.qy (Postfix, from userid 501) id 34D6BBF30550; Sat, 15 Apr 2023 22:13:47 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id C885CBF30532; Sat, 15 Apr 2023 22:13:47 -0400 (EDT) Date: 15 Apr 2023 22:13:47 -0400 Message-ID: <0baa336e-171d-081a-0f59-a2a165f4517d@iecc.com> From: "John R. Levine" To: "Gary Aitken" , freebsd-questions@freebsd.org X-X-Sender: johnl@ary.qy Subject: Re: frequent disk error, need guidance In-Reply-To: <5793cdd5-c365-7769-49e9-366cb367a8a0@dreamchaser.org> References: <20230415204721.DD803BF2E2EA@ary.qy> <5793cdd5-c365-7769-49e9-366cb367a8a0@dreamchaser.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Rspamd-Queue-Id: 4PzYdV5fCrz3sKj X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N >> I'd shut down to single user, make a /.snap directory, and do dump -L >> to tell it to make a snapshot before dumping. That should work OK. > > Thanks. > (Needed to mount /tmp read-write) > The -L didn't work because boot -s mounted the filesystem read-only; > at least that's what it claimed: > > dump -0 -L -f - /dev/ada0p2 | restore -r -Dv -f - > Verify tape and initialize maps > DUMP: WARNING: -L ignored for read-only filesystem > > Not sure I understand that; > does -s normally start in read-only mode? > Has it always done that? It's been quite a while since I did that. Don't remember, but if the filesystem is read-only, that's even better than -L because you know it won't change at all. > It looks like the bad blocks/sectors were files in > /var/db/freebsd-update/files/xxx.gz > I unzipped a file in that directory and it appears that they are the > saved files from the old system when upgrading. Is that correct? > Any reason not to remove all files in > /var/db/freebsd-update/files > since the upgraded to 12.x system has been running for several months > now? I think that should be OK too. Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly