Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Progress of device deletion?
@ 2013-09-29  7:13 Fredrik Tolf
  2013-09-30 14:27 ` Chris Murphy
  0 siblings, 1 reply; 6+ messages in thread
From: Fredrik Tolf @ 2013-09-29  7:13 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-01 12:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-29  7:13 Progress of device deletion? Fredrik Tolf
2013-09-30 14:27 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox