Hello
The problem:
Every time I start my browser, file system is remounted in read-only
mode.
The cause:
I believe the problem originates from hard reset I had to do.
The details:
# uname -a
Linux tamuz 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014
x86_64
GNU/Linux
# btrfs --version
Btrfs v3.17.3
# btrfs fi show
Label: none uuid: 98352bc1-7ea6-4801-92b6-944df292b3cd
Total devices 1 FS bytes used 3.17GiB
devid 1 size 230.88GiB used 6.04GiB path /dev/sda3
Btrfs v3.17.3
# btrfs fi df /
Data, single: total=4.01GiB, used=3.05GiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=1.00GiB, used=119.78MiB
Metadata, single: total=8.00MiB, used=0.00B
GlobalReserve, single: total=48.00MiB, used=0.00B
# btrfs scrub status /dev/sda3
scrub status for 98352bc1-7ea6-4801-92b6-944df292b3cd
scrub started at Fri Dec 26 19:47:38 2014 and finished after 49 seconds
total bytes scrubbed: 3.29GiB with 1 errors
error details: csum=1
corrected errors: 0, uncorrectable errors: 1, unverified errors: 0
I have attached two logs: dmesg.log.gz - from recent session and
dmesg.log.2.gz - from previous one (search for "WARNING")
Between this two sessions I have done:
# btrfs check --repair
The questions:
1. How tolerant on power loss is btrfs? Should I expect more problems
like this. Should I expect other problems?
2. Is there a way to recover the filesystem from these problems without
restoring whole filesystemi from backup? How to figure out what files
and directories are corrupted? Is it possible to remove corrupted
files/dirs and restore only these from backup?
3. What are general recommendations on using btrfs. Currently (this is
my first experiment with btrfs) I have single partition with subvolumes
mounted as /{,boot,var,opt,home}. I think, it might be better to have more
partiations, but I want to hear from you.
Thaks,
Radosław Kintzi
Attachment:
dmesg.log.gz
Description: Binary data
Attachment:
dmesg.log.2.gz
Description: Binary data
