linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Correct way to clear a free space cache file invalid error
@ 2023-01-16 10:22 Martin Steigerwald
  2023-01-16 10:41 ` Qu Wenruo
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Steigerwald @ 2023-01-16 10:22 UTC (permalink / raw)
  To: linux-btrfs

Sorry for incomplete subject, reposting.

Hi!

Kernel 6.1, btrfs-progs 6.1.2. Filesystem on NVME SSD, via LVM and dm-
crypt.

I would like

[   18.657903] BTRFS info (device dm-1): the free space cache file 
(23912775680) is invalid, skip it
[   18.697033] BTRFS info (device dm-1): the free space cache file 
(25254952960) is invalid, skip it

to be gone.

So I tried

mount -o remount,clear_cache,space_cache=v1 /

as well as

mount -o remount,clear_cache /
mount -o remount,space_cache=v1 /

to no avail.

Before that I had space cache v2 on the filesystem as with most of my 
other BTRFS filesystems. But since it really should not be necessary for 
a 50 GiB filesystem for the Linux system (not user data), I thought I 
play it safe this time. At least from what I learned from btrfs manpage.

In a page on BTRFS wiki it is stated that one should run "btrfs check" 
on the filesystem.

So what is the correct way to clear that error?

I did not perceive any malfunctioning due to the error in dmesg. The 
filesystem scrubs without errors.

Best,
-- 
Martin






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-16 15:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-16 10:22 Correct way to clear a free space cache file invalid error Martin Steigerwald
2023-01-16 10:41 ` Qu Wenruo
2023-01-16 14:07   ` [PATCH] btrfs-progs: docs: improve space cache documentation Christoph Anton Mitterer
2023-01-16 15:24     ` Christoph Anton Mitterer
2023-01-16 15:30   ` Correct way to clear a free space cache file invalid error Martin Steigerwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).