NetBSD Problem Report #58756
From martin@duskware.de Wed Oct 16 16:58:28 2024
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 48C2E1A923D
for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Oct 2024 16:58:28 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: can not remove in-filesystem WAPBL log
X-Send-Pr-Version: 3.95
>Number: 58756
>Category: bin
>Synopsis: can not remove in-filesystem WAPBL log
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 16 17:00:00 +0000 2024
>Last-Modified: Wed Oct 16 18:30:01 +0000 2024
>Originator: Martin Husemann
>Release: NetBSD 10.99.12
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD space-truckin.duskware.de 10.99.12 NetBSD 10.99.12 (GENERIC) #371: Tue Oct 15 14:52:33 CEST 2024 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC evbarm
Architecture: earmv7hfeb
Machine: evbarm
>Description:
I moved a filesystem from rotating disk to SSD and would like to get rid of
the WAPBL log. However, tunefs does not document this process very well
or it does not work the way I understand the description there...
>How-To-Repeat:
# mount
root_device on / type ffs (read-only, local)
# tunefs -N wd0a
tunefs: tuning /dev/rwd0a
tunefs: current settings of /dev/rwd0a
maximum contiguous block count 4
maximum blocks per file in a cylinder group 2048
minimum percentage of free space 5%
optimization preference: time
average file size: 16384
expected number of files per directory: 64
journal log file location: in filesystem
journal log file size: 64MB (67108864 bytes)
journal log flags:
quotas disabled
POSIX.1e ACLs disabled
NFS4 ACLs disabled
tunefs: no changes made
# tunefs -l 0 wd0a
tunefs: tuning /dev/rwd0a
tunefs: log file size cleared from 67108864
# tunefs -N wd0a
tunefs: tuning /dev/rwd0a
tunefs: current settings of /dev/rwd0a
maximum contiguous block count 4
maximum blocks per file in a cylinder group 2048
minimum percentage of free space 5%
optimization preference: time
average file size: 16384
expected number of files per directory: 64
journal log file location: in filesystem
journal log file size: 64MB (67108864 bytes)
journal log flags: clear-log
quotas disabled
POSIX.1e ACLs disabled
NFS4 ACLs disabled
tunefs: no changes made
# mount /
# mount
/dev/wd0a on / type ffs (local)
# tunefs -N wd0a
tunefs: tuning /dev/rwd0a
tunefs: current settings of /dev/rwd0a
maximum contiguous block count 4
maximum blocks per file in a cylinder group 2048
minimum percentage of free space 5%
optimization preference: time
average file size: 16384
expected number of files per directory: 64
journal log file location: in filesystem
journal log file size: 64MB (67108864 bytes)
journal log flags:
quotas disabled
POSIX.1e ACLs disabled
NFS4 ACLs disabled
tunefs: no changes made
I expected the "journal log" lines to completely go away, like in this
output for another filesystem that does not have any log:
tunefs: tuning /dev/rdk0
tunefs: current settings of /dev/rdk0
maximum contiguous block count 2
maximum blocks per file in a cylinder group 4096
minimum percentage of free space 5%
optimization preference: time
average file size: 16384
expected number of files per directory: 64
quotas disabled
POSIX.1e ACLs disabled
NFS4 ACLs disabled
tunefs: no changes made
>Fix:
n/a
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/58756: can not remove in-filesystem WAPBL log
Date: Wed, 16 Oct 2024 20:25:11 +0200
On Wed, Oct 16, 2024 at 05:00:00PM +0000, martin@NetBSD.org wrote:
> # mount
> root_device on / type ffs (read-only, local)
[..]
> # tunefs -l 0 wd0a
> tunefs: tuning /dev/rwd0a
> tunefs: log file size cleared from 67108864
and after a hint from mlelstv I rebooted at this point, again into
single user. It made no visible difference, as the next step produced
exactly the same results:
> # tunefs -N wd0a
> tunefs: tuning /dev/rwd0a
> tunefs: current settings of /dev/rwd0a
> maximum contiguous block count 4
> maximum blocks per file in a cylinder group 2048
> minimum percentage of free space 5%
> optimization preference: time
> average file size: 16384
> expected number of files per directory: 64
> journal log file location: in filesystem
> journal log file size: 64MB (67108864 bytes)
> journal log flags: clear-log
> quotas disabled
> POSIX.1e ACLs disabled
> NFS4 ACLs disabled
> tunefs: no changes made
but now (after the reboot before that tunefs -N) the next steps worked
as described:
> # mount /
this apparently got rid of the log.
> # mount
> /dev/wd0a on / type ffs (local)
and now the journal lines are gone:
# tunefs -N wd0a
tunefs: tuning /dev/rwd0a
tunefs: current settings of /dev/rwd0a
maximum contiguous block count 4
maximum blocks per file in a cylinder group 2048
minimum percentage of free space 5%
optimization preference: time
average file size: 16384
expected number of files per directory: 64
quotas disabled
POSIX.1e ACLs disabled
NFS4 ACLs disabled
tunefs: no changes made
and it stays this way after a reboot (I had removed the log option from
/etc/fstab before I started trying all this).
Martin
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.