🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1125314: xfs_scrub_all.service: does not work (report errors in log)

#1353
From: Pat Suwalski
Date: Mon, 19 Oct 2026 15:40
119 lines
7174 bytes
I did more investigating, since this was only happening on one of my 
servers.

Looking at the code for xfs_scrub_all, it's clear that it interacts with 
systemd via dbus.

Upon updating to trixie, I normally install libpam-systemd so that the 
old "w" command works. This pulls in dbus. I failed to do this on one 
server.

After installing libpam-systemd and then doing a reboot or simply 
"systemctl start dbus", you will find that xfs_scrub_all starts working 
correctly.

--Pat

On 2026-10-13 16:22, Pat Suwalski wrote:
> I am seeing the same thing on trixie.
> 
> Additionally, if I try running xfs_scrub_all manually, it simply fails 
> with:
> 
> Error: /fs1: Kernel metadata scrubbing facility is not available.
> 
> Suggesting that the kernel that Debian ships cannot use this anyway.
> 
> Indeed:
> 
> $ grep XFS.*SCRUB /boot/config-6.12.111+deb13-amd64
> # CONFIG_XFS_ONLINE_SCRUB is not set
> 
> --Pat
> 
> On Mon, 12 Jan 2026 15:15:20 +0300 Michael Tokarev <mjt@tls.msk.ru> wrote:
>> Package: xfsprogs
>> Version: 6.13.0-2
>> Severity: normal
>>
>> The way how xfs_scrub is run from within xfs_scrib_all script
>> seems to be wrong.  Here's an example log output from 
>> xfs_scrub_all.service:
>>
>> Dec 21 03:10:41 host systemd[1]: Starting xfs_scrub_all.service - 
>> Online XFS Metadata Check for All Filesystems>
>> Dec 21 03:10:41 host xfs_scrub_all[174771]: Automatically enabling 
>> file data scrub.
>> Dec 21 03:10:41 host xfs_scrub_all[174771]: Scrubbing /fs1...
>> Dec 21 03:10:41 host xfs_scrub_all[174771]: Scrubbing /fs2...
>> Dec 21 03:10:41 host xfs_scrub_all[174779]: EXPERIMENTAL xfs_scrub 
>> program in use! Use at your own risk!
>> Dec 21 03:10:41 host xfs_scrub_all[174780]: EXPERIMENTAL xfs_scrub 
>> program in use! Use at your own risk!
>> Dec 21 03:10:41 host xfs_scrub_all[174779]: Cannot use -p with -n.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]: Usage: xfs_scrub [OPTIONS] 
>> mountpoint
>> Dec 21 03:10:41 host xfs_scrub_all[174779]: Options:
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -a count     Stop after 
>> this many errors are found.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -b           Background 
>> mode.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -C fd        Print 
>> progress information to this fd.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -e behavior  What to do 
>> if errors are found.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -k           Do not 
>> FITRIM the free space.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -m path      Path to / 
>> etc/mtab.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -n           Dry run.  
>> Do not modify anything.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -p           Only 
>> optimize, do not fix corruptions.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -T           Display 
>> timing/usage information.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -v           Verbose 
>> output.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -V           Print version.
>> Dec 21 03:10:41 host xfs_scrub_all[174779]:   -x           Scrub file 
>> data too.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]: Cannot use -p with -n.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]: Usage: xfs_scrub [OPTIONS] 
>> mountpoint
>> Dec 21 03:10:41 host xfs_scrub_all[174780]: Options:
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -a count     Stop after 
>> this many errors are found.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -b           Background 
>> mode.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -C fd        Print 
>> progress information to this fd.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -e behavior  What to do 
>> if errors are found.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -k           Do not 
>> FITRIM the free space.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -m path      Path to / 
>> etc/mtab.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -n           Dry run.  
>> Do not modify anything.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -p           Only 
>> optimize, do not fix corruptions.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -T           Display 
>> timing/usage information.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -v           Verbose 
>> output.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -V           Print version.
>> Dec 21 03:10:41 host xfs_scrub_all[174780]:   -x           Scrub file 
>> data too.
>> Dec 21 03:10:41 host xfs_scrub_all[174771]: Scrubbing /fs1 done, (err=8)
>> Dec 21 03:10:41 host xfs_scrub_all[174771]: Scrubbing /fs2 done, (err=8)
>>
>> So actually scrubbing isn't done, instead, the service tries to report
>> error and fails due to #1116595.
>>
>> It'd be nice if scribbing is actually happening.
>>
>> Thanks,
>>
>> /mjt
>>
>>
Technical Details
Message-ID: <NPXCV-6yKx-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <Mcp3P-9ZUl-7@gated-at.bofh.it> <Mcp3P-9ZUl-7@gated-at.bofh.it> <NNTDr-5lAg-5@gated-at.bofh.it> <Mcp3P-9ZUl-7@gated-at.bofh.it> <NNTDr-5lAg-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Pat Suwalski <pat@suwalski.net>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1125314: xfs_scrub_all.service: does not work (report errors in log)
Date: Mon, 19 Oct 2026 17:40:01 +0200
Message-ID: <NPXCV-6yKx-1@gated-at.bofh.it>
References: <Mcp3P-9ZUl-7@gated-at.bofh.it> <Mcp3P-9ZUl-7@gated-at.bofh.it> <NNTDr-5lAg-5@gated-at.bofh.it> <Mcp3P-9ZUl-7@gated-at.bofh.it> <NNTDr-5lAg-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 19 15:37:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Pat Suwalski <pat@suwalski.net>, 1125314@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: linux-xfs@vger.kernel.org
X-Debian-Pr-Message: followup 1125314
X-Debian-Pr-Package: xfsprogs
X-Debian-Pr-Source: xfsprogs
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997542
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 119
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 19 Oct 2026 11:36:14 -0400
X-Original-Message-ID: <558a5c3e-0872-40c8-89d1-6e41698fe318@suwalski.net>
X-Original-References: <176822012050.858602.3283497005616407284.reportbug@localhost> <176822012050.858602.3283497005616407284.reportbug@localhost> <e0bd7747-c969-45f4-bffe-bbc57a34442f@suwalski.net> <176822012050.858602.3283497005616407284.reportbug@localhost> <e0bd7747-c969-45f4-bffe-bbc57a34442f@suwalski.net>