linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lluís Batlle i Rossell" <viric@viric.name>
To: Btrfs mailing list <linux-btrfs@vger.kernel.org>
Subject: Re: Can't replace a faulty disk of raid1
Date: Wed, 31 Oct 2012 19:50:33 +0100	[thread overview]
Message-ID: <20121031185033.GP2052@vicerveza.homeunix.net> (raw)
In-Reply-To: <20121026105721.GU2052@vicerveza.homeunix.net>

On Fri, Oct 26, 2012 at 12:57:21PM +0200, Lluís Batlle i Rossell wrote:
> I had a raid1 btrfs (540GB) on vanilla 3.6.3, a disk failed, and removed it at
> power off, plugged in a new one, partitioned it (to 110GB, by error), and added
> it to btrfs.
> 
> I tried to remove the missing device, and it said "Input/output error" after a
> while. Next attempts simply gave "Invalid argument".
> 
> Some data:
> 
> # btrfs fi df /
> Data, RAID1: total=507.62GB, used=417.08GB
> Data: total=25.32GB, used=22.48GB
> System, RAID1: total=32.00MB, used=92.00KB
> System: total=4.00MB, used=0.00
> Metadata, RAID1: total=19.97GB, used=5.50GB

For the sake of mail archiving and future searches, problem solved; there is
some 'single' data there (22.48GB). Removing the files containing that data
allowed "btrfs device delete missing /" to work.

For what I know, at 3.6 there were no error messages indicating about that.
Then, scrub does not check anything related to missing disks, so it reports that
all works. And I think that btrfsck also does not report anything related to
missing disks.

The way to get what files had the missing data was to run "tar c /", and wait
for the errors report on EIO. Then I removed those files.

Thanks a lot to Josef, who sent me patches adding error reports, to get closer
to the source the errors, and the rest of the helpful people at the #btrfs @
freenode

Regards,
Lluís.

      parent reply	other threads:[~2012-10-31 18:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26 10:57 Can't replace a faulty disk of raid1 Lluís Batlle i Rossell
2012-10-26 10:59 ` Lluís Batlle i Rossell
2012-10-26 11:41   ` Goffredo Baroncelli
2012-10-26 13:23     ` Lluís Batlle i Rossell
2012-10-31 18:50 ` Lluís Batlle i Rossell [this message]

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=20121031185033.GP2052@vicerveza.homeunix.net \
    --to=viric@viric.name \
    --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).