🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4703

Bug#1154147: xfsprogs: xfs_scrub_all: Cannot use -p with -n, Scrubbing done, (err=8)

#4703
From: Marcel Glatthor
Date: Mon, 16 Nov 2026 11:00
167 lines
8267 bytes
Package: xfsprogs
Version: 6.13.0-2+deb13u1

xfsprogs in Debian Trixie contains a systemd timer which calls

   /usr/sbin/xfs_scrub_all --auto-media-scan-interval 1mo

via /usr/lib/systemd/system/xfs_scrub_all.service.

The call to xfs_scrub_all fails with an error depending on the existance 
of the file

   /var/lib/xfsprogs/xfs_scrub_all_media.stamp

# date -R
Mon, 16 Nov 2026 11:29:31 +0100

# ls -l /var/lib/xfsprogs/xfs_scrub_all_media.stamp
ls: cannot access '/var/lib/xfsprogs/xfs_scrub_all_media.stamp': No such 
file or directory

# /usr/sbin/xfs_scrub_all --debug --auto-media-scan-interval 1mo
Automatically enabling file data scrub.
Scrubbing /var...
run  /usr/sbin/xfs_scrub -p - x /var
waiting for threads to terminate
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Usage: xfs_scrub [OPTIONS] mountpoint

Options:
   -a count     Stop after this many errors are found.
   -b           Background mode.
   -C fd        Print progress information to this fd.
   -e behavior  What to do if errors are found.
   -k           Do not FITRIM the free space.
   -m path      Path to /etc/mtab.
   -n           Dry run.  Do not modify anything.
   -p           Only optimize, do not fix corruptions.
   -T           Display timing/usage information.
   -v           Verbose output.
   -V           Print version.
   -x           Scrub file data too.
Scrubbing /var done, (err=8)

# sleep 5 ; date -R
Mon, 16 Nov 2026 11:29:36 +0100

# ls -l /var/lib/xfsprogs/xfs_scrub_all_media.stamp
-rw-r--r-- 1 root root 0 Nov 16 11:29 
/var/lib/xfsprogs/xfs_scrub_all_media.stamp

# /usr/sbin/xfs_scrub_all --debug --auto-media-scan-interval 1mo
/usr/sbin/xfs_scrub_all:489: DeprecationWarning: 
datetime.datetime.utcnow() is deprecated and scheduled for removal in a 
future version. Use timezone-aware objects to represent datetimes in UT
C: datetime.datetime.now(datetime.UTC).
   dt = datetime.utcnow()
Scrubbing /var...
waiting for threads to terminate
run  /usr/sbin/xfs_scrub -p /var
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Error: /var: Kernel metadata scrubbing facility is not available.
Info: /var: Scrub aborted after phase 1.
/var: operational errors found: 1
Scrubbing /var done, (err=4)

Systemd Journal has somehow one more line of information:

# journalctl -u xfs_scrub_all.service
Nov 15 03:11:20 idle systemd[1]: Starting xfs_scrub_all.service - Online 
XFS Metadata Check for All Filesystems...
Nov 15 03:11:20 idle xfs_scrub_all[4199]: Automatically enabling file 
data scrub.
Nov 15 03:11:20 idle xfs_scrub_all[4199]: Scrubbing /var...
Nov 15 03:11:20 idle xfs_scrub_all[4204]: EXPERIMENTAL xfs_scrub program 
in use! Use at your own risk!
Nov 15 03:11:20 idle xfs_scrub_all[4204]: Cannot use -p with -n.
                                           ^^^^^^^^^^^^^^^^^^^^^^
Nov 15 03:11:20 idle xfs_scrub_all[4204]: Usage: xfs_scrub [OPTIONS] 
mountpoint
Nov 15 03:11:20 idle xfs_scrub_all[4204]: Options:
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -a count     Stop after this 
many errors are found.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -b           Background 
mode.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -C fd        Print progress 
information to this fd.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -e behavior  What to do if 
errors are found.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -k           Do not FITRIM 
the free space.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -m path      Path to 
/etc/mtab.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -n           Dry run.  Do 
not modify anything.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -p           Only optimize, 
do not fix corruptions.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -T           Display 
timing/usage information.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -v           Verbose output.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -V           Print version.
Nov 15 03:11:20 idle xfs_scrub_all[4204]:   -x           Scrub file data 
too.
Nov 15 03:11:20 idle xfs_scrub_all[4199]: Scrubbing /var done, (err=8)
Nov 15 03:11:22 idle systemd[1]: xfs_scrub_all.service: Main process 
exited, code=exited, status=1/FAILURE
Nov 15 03:11:22 idle systemd[1]: xfs_scrub_all.service: Failed with 
result 'exit-code'.
Nov 15 03:11:22 idle systemd[1]: Failed to start xfs_scrub_all.service - 
Online XFS Metadata Check for All Filesystems.
Nov 15 03:11:22 idle systemd[1]: xfs_scrub_all.service: Triggering 
OnFailure= dependencies.

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie

# apt-cache policy
Package files:
  100 /var/lib/dpkg/status
      release a=now
  500 http://security.debian.org/debian-security trixie-security/main 
amd64 Packages
      release 
v=13,o=Debian,a=stable-security,n=trixie-security,l=Debian-Security,c=main,b=amd64
      origin security.debian.org
  500 http://ftp.debian.org/debian trixie/main amd64 Packages
      release v=13.7,o=Debian,a=stable,n=trixie,l=Debian,c=main,b=amd64
      origin ftp.debian.org
Pinned packages:

# dpkg -l | grep linux-image
ii  linux-image-6.12.116+deb13-amd64 6.12.116-1                          
  amd64        Linux 6.12 for 64-bit PCs (signed)
ii  linux-image-6.12.117+deb13-amd64 6.12.117-1                          
  amd64        Linux 6.12 for 64-bit PCs (signed)
ii  linux-image-amd64                6.12.117-1                          
  amd64        Linux for 64-bit PCs (meta-package)

# uname -a
Linux idle 6.12.117+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.117-1 
(2026-11-12) x86_64 GNU/Linux

# xfs_info /var
meta-data=/dev/mapper/var        isize=256    agcount=4, agsize=65536 
blks
          =                       sectsz=512   attr=2, projid32bit=0
          =                       crc=0        finobt=0, sparse=0, 
rmapbt=0
          =                       reflink=0    bigtime=0 inobtcount=0 
nrext64=0
          =                       exchange=0   metadir=0
data     =                       bsize=4096   blocks=262144, imaxpct=25
          =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=0, 
parent=0
log      =internal log           bsize=4096   blocks=2560, version=2
          =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
          =                       rgcount=0    rgsize=0 extents

# df -h /var
Filesystem       Size  Used Avail Use% Mounted on
/dev/mapper/var 1014M  248M  767M  25% /var
Technical Details
Message-ID: <O02Bj-ceFl-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Marcel Glatthor <debian@thermoman.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154147: xfsprogs: xfs_scrub_all: Cannot use -p with -n, Scrubbing done, (err=8)
Date: Mon, 16 Nov 2026 12:00:01 +0100
Message-ID: <O02Bj-ceFl-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 16 10:57:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Marcel Glatthor <debian@thermoman.de>, 1154147@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: linux-xfs@vger.kernel.org
X-Debian-Pr-Message: report 1154147
X-Debian-Pr-Package: xfsprogs
X-Debian-Pr-Source: xfsprogs
MIME-Version: 1.0
User-Agent: Webmail
X-Sender: debian@thermoman.de
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002937
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 167
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 16 Nov 2026 11:55:26 +0100
X-Original-Message-ID: <2996e0e245b491a9204c8996689ac4b3@thermoman.de>