* Cannot fix btrfs errors after system crash
@ 2017-09-27 21:47 Niccolò Belli
2017-09-30 13:27 ` Niccolò Belli
0 siblings, 1 reply; 2+ messages in thread
From: Niccolò Belli @ 2017-09-27 21:47 UTC (permalink / raw)
To: linux-btrfs
Hi,
I was trying to use AMDGPU-PRO's OpenCL stack (with the mainline 4.12.13
kernel) while it suddently crashed the whole system, not even magic sysrq
keys did work anymore.
With no surprise, at the next reboot I found several btrfs warnings (see
https://paste.pound-python.org/show/S5zBG2tXZUTLG699saE5/).
Since btrfs scrub didn't find any error I decided to reboot into a live usb
and start a btrfs check (I'm using btrfs-progs 4.13).
It did found lots of errors indeed (see
https://paste.pound-python.org/show/IPxh9sly0EEb0MKPi2dw/).
So I made a full backup with dd and I started a btrfs check --repair (see
https://paste.pound-python.org/show/c9AlT8ehKKJy6l5xhzXk/).
I also wiped the space cache with --clear-space-cache v1.
A subsequent btrfs check revealed it indeed fixed lots of errors (see
https://paste.pound-python.org/show/1m2Wodd1q3n0eRlxLpZB/), but
unfortunately i still have the following errors:
unresolved ref dir 7450239 index 2 namelen 6 name 431886 filetype 1 errors
80, filetype mismatch
unresolved ref dir 7450595 index 2 namelen 6 name 431886 filetype 1 errors
80, filetype mismatch
unresolved ref dir 7457122 index 2 namelen 6 name 431886 filetype 1 errors
80, filetype mismatch
I'm already quite satisfied to be honest: two years ago repair used to eat
my data, making things worse.
Anyway, why didn't btrfs-check repair them? Is there anything I can do to
fix them?
Thanks,
Niccolò
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cannot fix btrfs errors after system crash
2017-09-27 21:47 Cannot fix btrfs errors after system crash Niccolò Belli
@ 2017-09-30 13:27 ` Niccolò Belli
0 siblings, 0 replies; 2+ messages in thread
From: Niccolò Belli @ 2017-09-30 13:27 UTC (permalink / raw)
To: linux-btrfs
Hi,
I decided I wanted to try if letting btrfs manipulate those extens would
have fixed my issue. So I launched a full balance followed by a
deduplication followed by another full balance. Then I checked the fs once
again: everything got fixed during the data manipulation.
Anyway btrfs check --repair should be able to fix such things without the
need for such tricks, so I hope it will get fixed one day.
Bests,
Niccolò
Il mercoledì 27 settembre 2017 23:47:04 CEST, Niccolò Belli ha scritto:
> Hi,
> I was trying to use AMDGPU-PRO's OpenCL stack (with the
> mainline 4.12.13 kernel) while it suddently crashed the whole
> system, not even magic sysrq keys did work anymore.
> With no surprise, at the next reboot I found several btrfs
> warnings (see
> https://paste.pound-python.org/show/S5zBG2tXZUTLG699saE5/).
> Since btrfs scrub didn't find any error I decided to reboot
> into a live usb and start a btrfs check (I'm using btrfs-progs
> 4.13).
> It did found lots of errors indeed (see
> https://paste.pound-python.org/show/IPxh9sly0EEb0MKPi2dw/).
> So I made a full backup with dd and I started a btrfs check
> --repair (see
> https://paste.pound-python.org/show/c9AlT8ehKKJy6l5xhzXk/).
> I also wiped the space cache with --clear-space-cache v1.
> A subsequent btrfs check revealed it indeed fixed lots of
> errors (see
> https://paste.pound-python.org/show/1m2Wodd1q3n0eRlxLpZB/), but
> unfortunately i still have the following errors:
>
> unresolved ref dir 7450239 index 2 namelen 6 name 431886
> filetype 1 errors 80, filetype mismatch
> unresolved ref dir 7450595 index 2 namelen 6 name 431886
> filetype 1 errors 80, filetype mismatch
> unresolved ref dir 7457122 index 2 namelen 6 name 431886
> filetype 1 errors 80, filetype mismatch
>
> I'm already quite satisfied to be honest: two years ago repair
> used to eat my data, making things worse.
> Anyway, why didn't btrfs-check repair them? Is there anything I
> can do to fix them?
>
> Thanks,
> Niccolò
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-30 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-27 21:47 Cannot fix btrfs errors after system crash Niccolò Belli
2017-09-30 13:27 ` Niccolò Belli
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).