Hi there,

I am using opensuse tumbleweed on a desktop.
More than 1 year ago, I setup a rotating disk to use btrfs and things
went nice until yesterday.
I was done with Civ VI on steam, and decided to remove the associated files.
I've started to remove files and I got the message the file system is read-only.

kimera:~ # findmnt --real -l | grep /mnt/btrfs
/mnt/btrfs                /dev/sdc2                           btrfs
rw,relatime,space_cache,subvolid=5,subvol=/

kimera:~ # cd /mnt/btrfs/miguel/Steam/
kimera:/mnt/btrfs/miguel/Steam # \ls
GameOverlayRenderer64.dll    bin_steamdeps.py
fossilize_engine_filters.json  linux64   servers
steam_subscriber_agreement.txt  tenfoot
ThirdPartyLegalNotices.css   bootstrap.tar.xz  friends
       logs      skins                    steamapps
   ubuntu12_32
ThirdPartyLegalNotices.doc   clientui          graphics
       music     ssfn9115004176610272489  steamchina
   ubuntu12_64
ThirdPartyLegalNotices.html  config
installscriptevalutor_log.txt  package   steam
steamclient.dll                 update_hosts_cached.vdf
appcache                     controller_base   legacycompat
       public    steam.sh                 steamclient64.dll
   userdata
bin                          depotcache        linux32
       resource  steam_msg.sh             steamui
kimera:/mnt/btrfs/miguel/Steam #

kimera:/mnt/btrfs/miguel/Steam # rm -rf appcache bin clientui controller_base
rm: cannot remove
'appcache/httpcache/00/00d317630ee7d0825dc6a4cd5ce9f91f50e6993c_da39a3ee5e6b4b0d3255bfef95601890afd80709':
Read-only file system
rm: cannot remove
'appcache/httpcache/01/01edefade28afe779bad14a9d5ff954b0f4c4e60_da39a3ee5e6b4b0d3255bfef95601890afd80709':
Read-only file system
rm: cannot remove
'appcache/httpcache/01/0116c6a41aee246e028415352052bd79d323fc1f_da39a3ee5e6b4b0d3255bfef95601890afd80709':
Read-only file system
...
rm: cannot remove 'controller_base/bigpicture_mouseon.vdf': Read-only
file system
rm: cannot remove 'controller_base/gamepad_generic.vdf': Read-only file system
rm: cannot remove 'controller_base/basicui_gamepad.vdf': Read-only file system
rm: cannot remove 'controller_base/basicui_neptune.vdf': Read-only file system
rm: cannot remove 'controller_base/basicui.vdf': Read-only file system
kimera:/mnt/btrfs/miguel/Steam #

The associated kernel messages can be read here:  https://susepaste.org/80272017

The current usage is:
kimera:~ # btrfs filesystem usage -T /mnt/btrfs
Overall:
    Device size:                   2.37TiB
    Device allocated:            348.06GiB
    Device unallocated:            2.03TiB
    Device missing:                  0.00B
    Used:                        287.07GiB
    Free (estimated):              2.09TiB      (min: 1.08TiB)
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:              349.28MiB      (used: 0.00B)
    Multiple profiles:                  no

             Data      Metadata  System
Id Path      single    RAID1     RAID1    Unallocated
-- --------- --------- --------- -------- -----------
 1 /dev/sdc2 346.00GiB   1.00GiB 32.00MiB     1.16TiB
 2 /dev/sdc1         -   1.00GiB 32.00MiB   898.97GiB
-- --------- --------- --------- -------- -----------
   Total     346.00GiB   1.00GiB 32.00MiB     2.03TiB
   Used      286.15GiB 470.45MiB 64.00KiB
kimera:~ #

Then I ran btrfs scrub (btrfs scrub start /mnt/btrfs) and got the
following kernel messages during the scrub:
https://susepaste.org/51166386

And scrub ended with the status:
kimera:/mnt/btrfs/miguel/Steam # btrfs scrub status /mnt/btrfs
UUID:             af3bd7fe-5796-4248-9917-3e71a5a56ec6
Scrub started:    Tue Feb  2 13:43:34 2021
Status:           aborted
Duration:         0:02:37
Total to scrub:   287.07GiB
Rate:             106.22MiB/s
Error summary:    verify=79 csum=5
 Corrected:      7
 Uncorrectable:  77
 Unverified:     0

So, what is going here ?
How can I fix this FS ?

Sorry to not know so much about how to fix a btrfs, it is my first
experience with btrfs since I migrated from Ubuntu to openSuSE more
than 1 year ago.

my system:
Operating System: openSUSE Tumbleweed 20210121
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.7-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 14.6 GiB of RAM
Graphics Processor: GeForce GTX 970/PCIe/SSE2

Reply via email to