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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html