All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Wimmer <telefonchris@icloud.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Qu Wenruo <quwenruo.btrfs@gmx.com>, Qu WenRuo <wqu@suse.com>,
	Anand Jain <anand.jain@oracle.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: btrfs reports bad key ordering after out of memory situation
Date: Fri, 8 May 2020 09:20:45 -0300	[thread overview]
Message-ID: <2E923657-A63F-45E6-B837-7F33E1648468@icloud.com> (raw)
In-Reply-To: <CAJCQCtRyr17kdSdozU4_ZxJL_VdCWZe7DCCuUuz0cy2AiJs3=A@mail.gmail.com>

Hi Chris,

after reducing all partition sizes to 2TB I run my system now since 3 months without any problems. Many reboots and still very stable. Yesterday I run into a situation where I run out of memory on my 48Gbyte Virtual machine and suddenly the home partition was mounted read only. After a reboot the system did not come back.

I did a btrfs check —readonly /dev/sda2 and it reported 

btrfs restore -l  /dev/sdb2 test
 tree key (EXTENT_TREE ROOT_ITEM 0) 278911795200 level 2
 tree key (DEV_TREE ROOT_ITEM 0) 279226892288 level 0
 tree key (FS_TREE ROOT_ITEM 0) 22118400 level 0
 tree key (CSUM_TREE ROOT_ITEM 0) 437370880 level 2
 tree key (QUOTA_TREE ROOT_ITEM 0) 279164583936 level 0
 tree key (UUID_TREE ROOT_ITEM 0) 460750848 level 0
 tree key (257 ROOT_ITEM 0) 22642688 level 0
 tree key (258 ROOT_ITEM 0) 279163060224 level 1
 tree key (259 ROOT_ITEM 0) 278998171648 level 2
 tree key (260 ROOT_ITEM 0) 279162814464 level 2
 tree key (261 ROOT_ITEM 0) 594477056 level 0
 tree key (262 ROOT_ITEM 0) 278959783936 level 1
 tree key (263 ROOT_ITEM 0) 279005970432 level 2
 tree key (264 ROOT_ITEM 0) 279162961920 level 2
 tree key (265 ROOT_ITEM 0) 655015936 level 0
 tree key (266 ROOT_ITEM 0) 654376960 level 1
 tree key (267 ROOT_ITEM 0) 461029376 level 0
 tree key (268 ROOT_ITEM 0) 279156670464 level 2
bad key ordering 192 193
bad key ordering 192 193
 tree key (DATA_RELOC_TREE ROOT_ITEM 0) 43673436160 level 0


Could you please help me to repair this system?

Which command I can use ?

For the btrfs restore command I used the newest btrfs version.
The btrfs version the system was running on is 4.19 

Thanks a lot,

Chris


  parent reply	other threads:[~2020-05-08 12:28 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06  3:44 [PATCH] btrfs-progs: Skip device tree when we failed to read it Qu Wenruo
2019-12-06  6:12 ` Anand Jain
2019-12-06 15:50   ` Christian Wimmer
2019-12-06 16:34   ` Christian Wimmer
     [not found]   ` <762365A0-8BDF-454B-ABA9-AB2F0C958106@icloud.com>
2019-12-07  1:16     ` Qu WenRuo
2019-12-07  3:47       ` Christian Wimmer
2019-12-07  4:31         ` Qu Wenruo
2019-12-07 13:03           ` Christian Wimmer
2019-12-07 14:10             ` Qu Wenruo
2019-12-07 14:25               ` Christian Wimmer
2019-12-07 16:44               ` Christian Wimmer
2019-12-08  1:21                 ` Qu WenRuo
2019-12-10 21:25                   ` Christian Wimmer
2019-12-11  0:36                     ` Qu Wenruo
2019-12-11 15:57                       ` Christian Wimmer
     [not found]           ` <9FB359ED-EAD4-41DD-B846-1422F2DC4242@icloud.com>
2020-01-04 17:07             ` 12 TB btrfs file system on virtual machine broke again Christian Wimmer
2020-01-05  4:03               ` Chris Murphy
2020-01-05 13:40                 ` Christian Wimmer
2020-01-05 14:07                   ` Martin Raiber
2020-01-05 14:14                     ` Christian Wimmer
2020-01-05 14:23                       ` Christian Wimmer
2020-01-05  4:25               ` Qu Wenruo
2020-01-05 14:17                 ` Christian Wimmer
2020-01-05 18:50                   ` Chris Murphy
2020-01-05 19:18                     ` Christian Wimmer
2020-01-05 19:36                       ` Chris Murphy
2020-01-05 19:49                         ` Christian Wimmer
2020-01-05 19:52                         ` Christian Wimmer
2020-01-05 20:34                           ` Chris Murphy
2020-01-05 20:36                             ` Chris Murphy
     [not found]                         ` <3F43DDB8-0372-4CDE-B143-D2727D3447BC@icloud.com>
2020-01-05 20:30                           ` Chris Murphy
2020-01-05 20:36                             ` Christian Wimmer
2020-01-05 21:13                               ` Chris Murphy
2020-01-05 21:58                                 ` Christian Wimmer
2020-01-05 22:28                                   ` Chris Murphy
2020-01-06  1:31                                     ` Christian Wimmer
2020-01-06  1:33                                     ` Christian Wimmer
2020-01-11 17:04                                     ` 12 TB btrfs file system on virtual machine broke again (third time) Christian Wimmer
2020-01-11 17:23                                     ` Christian Wimmer
2020-01-11 19:46                                       ` Chris Murphy
2020-01-13 19:41                                         ` 12 TB btrfs file system on virtual machine broke again (fourth time) Christian Wimmer
2020-01-13 20:03                                           ` Chris Murphy
2020-01-31 16:35                                             ` btrfs not booting any more Christian Wimmer
2020-05-08 12:20                                             ` Christian Wimmer [this message]
2020-01-05 23:50                   ` 12 TB btrfs file system on virtual machine broke again Qu Wenruo
2020-01-06  1:32                     ` Christian Wimmer
2020-01-11  7:25                     ` Andrei Borzenkov
2021-10-15 21:01                     ` need help in a broken 2TB BTRFS partition Christian Wimmer
2021-10-16 10:08                       ` Qu Wenruo
2021-10-16 17:29                         ` Christian Wimmer
2021-10-16 22:55                           ` Qu Wenruo
2021-10-16 17:35                         ` Christian Wimmer
2021-10-16 23:27                           ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2E923657-A63F-45E6-B837-7F33E1648468@icloud.com \
    --to=telefonchris@icloud.com \
    --cc=anand.jain@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=quwenruo.btrfs@gmx.com \
    --cc=wqu@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.