From: Fredrik Tolf <fredrik@dolda2000.com>
To: linux-btrfs@vger.kernel.org
Subject: Progress of device deletion?
Date: Sun, 29 Sep 2013 09:13:47 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.10.1309290902050.24007@shack.dolda2000.com> (raw)
Dear list,
Is there a way to find out what "btrfs device delete" is doing, and how
far it has come? I know there's no "status" command, but I'm thinking it
might be possible to obtain something via some other channel, such as
"btrfs fi df" and "btrfs fi show", which I have been using to try and
figure out what is happening.
In this context, I've been trying to remove two drives from a filesystem
of four, using the following command:
btrfs dev del /dev/sdg1 /dev/sdh1 /home/pub
It has been running for almost 36 hours by now, however, and I'm kinda
wondering what's happening. :)
I've been trying to monitor it using "btrfs fi df /home/pub" and "btrfs fi
show". Before starting to remove the devices, they gave the following
output:
$ sudo btrfs fi df /home/pub
Data, RAID0: total=10.9TB, used=3.35TB
System, RAID1: total=32.00MB, used=200.00KB
Metadata, RAID1: total=5.00GB, used=3.68GB
$ sudo btrfs fi show
Label: none uuid: 40d346bb-2c77-4a78-8803-1e441bf0aff7
Total devices 4 FS bytes used 3.35TB
devid 5 size 2.73TB used 2.71TB path /dev/sdh1
devid 4 size 2.73TB used 2.71TB path /dev/sdg1
devid 3 size 2.73TB used 2.71GB path /dev/sdd1
devid 2 size 2.73TB used 2.71GB path /dev/sde1
The Data part of the "df" output has since been decreasing (which I have
been using as sign of progress), but only until it hit 3.36 TB:
$ sudo btrfs fi df /home/pub/video/
Data, RAID0: total=3.36TB, used=3.35TB
System, RAID1: total=32.00MB, used=200.00KB
Metadata, RAID1: total=5.00GB, used=3.68GB
It has been sitting there for quite some hours by now. "show", on its
hand, displays the following:
$ sudo btrfs fi show
Label: none uuid: 40d346bb-2c77-4a78-8803-1e441bf0aff7
Total devices 4 FS bytes used 3.35TB
devid 5 size 2.73TB used 965.00GB path /dev/sdh1
devid 4 size 2.73TB used 2.71TB path /dev/sdg1
devid 3 size 2.73TB used 968.03GB path /dev/sdd1
devid 2 size 2.73TB used 969.03GB path /dev/sde1
This I find quite weird. Why is the usage of sdd1 and sde1 decreasing,
when those are not the disks I'm trying to remove, while sdg1 sits there
at its original usage, when it is one of those I have requested to have
removed? By the way, since the Data part hit 3.36TB, those usages of sdd1,
sde1 and sdh1 have been fluctuating up and down between around 850GB up to
around those values shown right now.
Is there any way I can find out what's going on?
--
Fredrik Tolf
next reply other threads:[~2013-09-29 7:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-29 7:13 Fredrik Tolf [this message]
2013-09-30 14:27 ` Progress of device deletion? Chris Murphy
2013-10-01 1:05 ` Chris Murphy
2013-10-01 4:43 ` Duncan
2013-10-01 5:26 ` Chris Murphy
2013-10-01 12:54 ` Duncan
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=alpine.DEB.2.10.1309290902050.24007@shack.dolda2000.com \
--to=fredrik@dolda2000.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