linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: Florian Uekermann <florian@uekermann.me>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Device only missing if unmounted
Date: Wed, 24 Dec 2014 23:45:01 +0800	[thread overview]
Message-ID: <549ADF7D.2030505@oracle.com> (raw)
In-Reply-To: <1184043001.122994.1419096721838.JavaMail.open-xchange@ptangptang.store>


Very strange, user space reads num_device as 4 but kernel
reads it as 3 (total_device), thus a device missing when
mounted.
Not sure what kind of hardware at your end, Can cache be
issue ? could you drop cache and check for me.
  echo 3 > /proc/sys/vm/drop_cache

Thanks, Anand

On 21/12/2014 01:32, Florian Uekermann wrote:
>
>  > > I checked this for all three devices and num_devices is 4 for all
> of them.
>  > > The full output is below.
>  >
>  > so now if you mount and run 'btrfs fi show <mnt>' that should tell
>  > device missing, which then 'btrfs device missing <mnt>' should be
>  > successful theoretically.
>
> No it doesn't. It says:
> root@oot:/home/shared# btrfs device delete missing /srv/storage/
> ERROR: error removing the device 'missing' - no missing devices found to
> remove
> and btrfs fi show /srv/storage doesn't report a missing device either
> (after mount).
> This behavior is the reason why I wrote here in the first place. It
> seems like a bug to me.
> Could the btrfs command line utility be the problem here (I am using the
> version the upcoming debian 8 ships)?
> Best regards,
> Florian

  parent reply	other threads:[~2014-12-24 15:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09 11:15 Device only missing if unmounted Florian Uekermann
2014-12-10  2:46 ` Anand Jain
2014-12-13 14:24   ` Florian Uekermann
2014-12-18  0:56     ` Anand Jain
     [not found]       ` <1184043001.122994.1419096721838.JavaMail.open-xchange@ptangptang.store>
2014-12-24 15:45         ` Anand Jain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-01-11 15:49 Florian Uekermann

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=549ADF7D.2030505@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=florian@uekermann.me \
    --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).