From: Marc MERLIN <marc@merlins.org>
To: moparisthebest <admin@moparisthebest.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: abort device removal?
Date: Sun, 7 Dec 2014 09:59:29 -0800 [thread overview]
Message-ID: <20141207175929.GD8916@merlins.org> (raw)
In-Reply-To: <5481EB59.2020603@moparisthebest.com>
On Fri, Dec 05, 2014 at 12:28:57PM -0500, moparisthebest wrote:
> Hello all,
>
> I had a 6-device array I added a 4tb device to last night and ran the
> command to remove a previous 4tb device that still worked fine
> overnight. Unfortunately, one of the OTHER devices completely failed
> while this was happening, and it *looks* like btrfs did the right thing
> and stopped the move, except it's still marked as 0 space in btrfs fi
> show. The delete command is still running, though iotop shows it's not
> actually reading or writing anything and no further moving messages in
> dmesg/kern.log seems to indicate that too.
>
> So what I think I *need* to do is re-add the drive it's currently trying
> to remove so I can delete the now non-functioning other drive without
> losing any data. My fear is a reboot or unmount/remount will fail to
> mount the currently-being-removed drive as well causing me to lose
> everything.
So I didn't try this, but my understanding is that remove actually runs
a rebalance to remove all the data from that drive.
If the rebalance didn't finish, the drive is still good and part of the
array.
Obviously, you'd be better off with a full backup, but my guess is that
you could just shutdown, remove the failing drive, and leave all the
other drives.
Then run rebalance and it should recreate the missing data from your
failed drive from parity.
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
prev parent reply other threads:[~2014-12-07 17:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 17:28 abort device removal? moparisthebest
2014-12-07 17:59 ` Marc MERLIN [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=20141207175929.GD8916@merlins.org \
--to=marc@merlins.org \
--cc=admin@moparisthebest.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 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.