linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Giuseppe Della Bianca <giusdbg@gmail.com>
To: Jeff Mahoney <jeffm@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [COMMAND HANGS] The command 'btrfs subvolume sync -s 2 xyz' can hangs.
Date: Sat, 05 Jan 2019 13:30:50 +0100	[thread overview]
Message-ID: <2971657.kkKnYu9ILp@exnet.gdb.it> (raw)
In-Reply-To: <067ee226-4636-4ede-1ce7-2bedcc5b4507@suse.com>

In data venerdì 4 gennaio 2019 21:34:03 CET, Jeff Mahoney ha scritto:
]zac[
> > 
> > root     17133 17127  0 17:17 ?        00:00:00 btrfs subvolume sync -s 2
> > /
> > tmp/tmp.p9SiQ1GnpV
> > 
> > cat /proc/17133/stack
> > [<0>] hrtimer_nanosleep+0xce/0x1e0
> > [<0>] __x64_sys_nanosleep+0x77/0xa0
> > [<0>] do_syscall_64+0x5b/0x160
> > [<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
> > [<0>] 0xffffffffffffffff
> 
> Ok, so this is it just sleeping between tree searches.
]zac[
> This part is actually important since we see below that we're searching
> for bytenr 76428623872 which, if present, would be in the cut portion of
> your log.
]zac[

If you want, I can send you the full log (very long).
From what you wrote below it seems to me that you do not need it

]zac]
> 
> This is the more important part.  The file system has gone read-only due
> to a missing extent backref.  This is corruption.

Yes, but this is an autocorruption of btrfs, which occurred (it seems to me), 
during a cleanup after a deleting of a snapshoot of an operating system 
installation (perhaps interrupted by an umount).

> It also means that the subvolume is never going to disappear during this
> mount and 'btrfs subvol sync' will wait forever.
]zac[

In my opinion this is bad.

The infinite wait occurs during the execution of a backup script, so I will 
have to find a bypass even for this problem (the sync was a patch to another 
autocorruption problem).

Gdb



  reply	other threads:[~2019-01-05 12:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-09 15:15 [COMMAND HANGS] The command 'btrfs subvolume sync -s 2 xyz' can hangs Giuseppe Della Bianca
2018-08-09 18:48 ` Jeff Mahoney
2018-08-10 16:57   ` Giuseppe Della Bianca
2019-01-01 16:37   ` Giuseppe Della Bianca
2019-01-04 20:34     ` Jeff Mahoney
2019-01-05 12:30       ` Giuseppe Della Bianca [this message]
2019-01-06 14:12         ` Qu Wenruo
2019-01-06 17:57           ` Giuseppe Della Bianca
2019-01-06 23:55             ` Qu Wenruo
     [not found]               ` <CAO6awePqby834dBSgLx5r6onmD9HhGWAfN4bno0zK6pU0QjrEQ@mail.gmail.com>
2019-01-07 12:55                 ` Fwd: " gius db
2019-01-07 13:31                   ` Qu Wenruo
     [not found]                     ` <CAO6aweMu9HUn34406Kkh-UvoDyoJH2ZdGUQx3vdx1Rj955E4KQ@mail.gmail.com>
2019-01-07 17:53                       ` Fwd: " gius db
2019-01-07 22:40         ` Jeff Mahoney
2019-01-08 21:02           ` Giuseppe Della Bianca
2019-01-08 21:18             ` Jeff Mahoney
2019-01-08 21:55               ` Giuseppe Della Bianca
2019-01-07 23:11     ` Filipe Manana
2019-01-08 12:14       ` gius db
2019-01-08 12:29         ` Filipe Manana
2019-01-08 13:01           ` gius db

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=2971657.kkKnYu9ILp@exnet.gdb.it \
    --to=giusdbg@gmail.com \
    --cc=jeffm@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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 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).