All of lore.kernel.org
 help / color / mirror / Atom feed
* Strangeness on btrfs balance..
@ 2011-02-05 10:31 Evert Vorster
  2011-02-05 10:44 ` Felix Blanke
  2011-02-05 11:34 ` Helmut Hullen
  0 siblings, 2 replies; 3+ messages in thread
From: Evert Vorster @ 2011-02-05 10:31 UTC (permalink / raw)
  To: linux-btrfs

Hi there...

I have kernel version 2.6.36.3, compiled with gcc 4.4.5, btrfstools
version 0.19+20101101

I have a btrfs filesystem (/data) consisting of two 1TB hard disks, raid0.

I added in another 1TB hard drive.

root@X86-64:~# btrfs filesystem show
failed to read /dev/sdh
failed to read /dev/sdg
failed to read /dev/sdf
failed to read /dev/sde
failed to read /dev/sr0
failed to read /dev/fd0u800
failed to read /dev/fd0
Label: none  uuid: 91a3ca88-7883-45a1-b83d-d95bf98a1d51
        Total devices 3 FS bytes used 1.20TB
        devid    3 size 931.51GB used 0.00 path /dev/sdb
        devid    1 size 931.51GB used 889.15GB path /dev/sdc
        devid    2 size 931.51GB used 889.13GB path /dev/sdd

Btrfs Btrfs v0.19

Sat Feb 05 03:22:29
root@X86-64:~#
----------------------------------------------------
So, I want to balance my data across these three devices, but I
noticed an inconsistencybteween "man btrfs" and btrfs' help...

root@X86-64:~# man btrfs | grep balance
       btrfs device balance <path>
       device balance <path>

Sat Feb 05 03:23:50

and

Sat Feb 05 03:24:19
root@X86-64:~# btrfs | grep balance
        btrfs filesystem balance <path>

Sat Feb 05 03:24:20

According to the man page, to balance a filesystem, the command is:
btrfs device balance <path>
In my case: btrfs device balance /data
This returns an error:

root@X86-64:~# btrfs device balance /data
ERROR: unknown command 'device'

When I try with
btrfs filesystem balance /data, I can see data being read and written
to the two original disks, but the new disk is not getting written to.
I keep an eye on disk IO with gkrellm. Also, after about an hour of
balancing, /dev/sdb is still completely empty.

Any idea of why this is happening?
Last few lines of dmesg:
floppy0: disk absent or changed during operation
end_request: I/O error, dev fd0, sector 128
end_request: I/O error, dev fd0, sector 0
btrfs: found 69 extents
btrfs: relocating block group 1897465380864 flags 9
btrfs: found 95 extents
btrfs: found 95 extents
btrfs: relocating block group 1895317897216 flags 9
btrfs: found 81 extents
btrfs: found 81 extents
btrfs: relocating block group 1893170413568 flags 9
btrfs: found 93 extents
btrfs: found 93 extents
btrfs: relocating block group 1891022929920 flags 9
btrfs: found 96 extents
btrfs: found 96 extents
btrfs: relocating block group 1888875446272 flags 9
btrfs: found 93 extents
btrfs: found 93 extents
btrfs: relocating block group 1886727962624 flags 9
btrfs: found 90 extents
btrfs: found 90 extents
btrfs: relocating block group 1884580478976 flags 9
btrfs: found 99 extents
btrfs: found 99 extents
btrfs: relocating block group 1882432995328 flags 9
btrfs: found 1 extents
btrfs: found 1 extents
btrfs: relocating block group 1880285511680 flags 9
btrfs: found 101 extents
btrfs: found 101 extents
btrfs: relocating block group 1878138028032 flags 9
btrfs: found 105 extents
btrfs: found 105 extents
btrfs: relocating block group 1875990544384 flags 9
btrfs: found 82 extents
btrfs: found 82 extents
btrfs: relocating block group 1873843060736 flags 9
btrfs: found 344 extents
btrfs: found 344 extents
btrfs: relocating block group 1871695577088 flags 9






-- 
http://magnatune.com - Music shared the way it should be.

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

* Re: Strangeness on btrfs balance..
  2011-02-05 10:31 Strangeness on btrfs balance Evert Vorster
@ 2011-02-05 10:44 ` Felix Blanke
  2011-02-05 11:34 ` Helmut Hullen
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Blanke @ 2011-02-05 10:44 UTC (permalink / raw)
  To: Evert Vorster; +Cc: linux-btrfs

Hi,

balancing 1TB of data can take > 1 day. So I don't think there is something wrong
just because the third device got no io. Just wait some more hours.

I don't know how the balancing does his work, but it is possible that it first
balance throught the old devices and then add the new one or something like that.


Regards,
Felix


On 05. February 2011 - 03:31, Evert Vorster wrote:
> Date:	Sat, 5 Feb 2011 03:31:27 -0700
> From: Evert Vorster <evorster@gmail.com>
> To: linux-btrfs@vger.kernel.org
> Subject: Strangeness on btrfs balance..
> 
> Hi there...
> 
> I have kernel version 2.6.36.3, compiled with gcc 4.4.5, btrfstools
> version 0.19+20101101
> 
> I have a btrfs filesystem (/data) consisting of two 1TB hard disks, raid0.
> 
> I added in another 1TB hard drive.
> 
> root@X86-64:~# btrfs filesystem show
> failed to read /dev/sdh
> failed to read /dev/sdg
> failed to read /dev/sdf
> failed to read /dev/sde
> failed to read /dev/sr0
> failed to read /dev/fd0u800
> failed to read /dev/fd0
> Label: none  uuid: 91a3ca88-7883-45a1-b83d-d95bf98a1d51
>         Total devices 3 FS bytes used 1.20TB
>         devid    3 size 931.51GB used 0.00 path /dev/sdb
>         devid    1 size 931.51GB used 889.15GB path /dev/sdc
>         devid    2 size 931.51GB used 889.13GB path /dev/sdd
> 
> Btrfs Btrfs v0.19
> 
> Sat Feb 05 03:22:29
> root@X86-64:~#
> ----------------------------------------------------
> So, I want to balance my data across these three devices, but I
> noticed an inconsistencybteween "man btrfs" and btrfs' help...
> 
> root@X86-64:~# man btrfs | grep balance
>        btrfs device balance <path>
>        device balance <path>
> 
> Sat Feb 05 03:23:50
> 
> and
> 
> Sat Feb 05 03:24:19
> root@X86-64:~# btrfs | grep balance
>         btrfs filesystem balance <path>
> 
> Sat Feb 05 03:24:20
> 
> According to the man page, to balance a filesystem, the command is:
> btrfs device balance <path>
> In my case: btrfs device balance /data
> This returns an error:
> 
> root@X86-64:~# btrfs device balance /data
> ERROR: unknown command 'device'
> 
> When I try with
> btrfs filesystem balance /data, I can see data being read and written
> to the two original disks, but the new disk is not getting written to.
> I keep an eye on disk IO with gkrellm. Also, after about an hour of
> balancing, /dev/sdb is still completely empty.
> 
> Any idea of why this is happening?
> Last few lines of dmesg:
> floppy0: disk absent or changed during operation
> end_request: I/O error, dev fd0, sector 128
> end_request: I/O error, dev fd0, sector 0
> btrfs: found 69 extents
> btrfs: relocating block group 1897465380864 flags 9
> btrfs: found 95 extents
> btrfs: found 95 extents
> btrfs: relocating block group 1895317897216 flags 9
> btrfs: found 81 extents
> btrfs: found 81 extents
> btrfs: relocating block group 1893170413568 flags 9
> btrfs: found 93 extents
> btrfs: found 93 extents
> btrfs: relocating block group 1891022929920 flags 9
> btrfs: found 96 extents
> btrfs: found 96 extents
> btrfs: relocating block group 1888875446272 flags 9
> btrfs: found 93 extents
> btrfs: found 93 extents
> btrfs: relocating block group 1886727962624 flags 9
> btrfs: found 90 extents
> btrfs: found 90 extents
> btrfs: relocating block group 1884580478976 flags 9
> btrfs: found 99 extents
> btrfs: found 99 extents
> btrfs: relocating block group 1882432995328 flags 9
> btrfs: found 1 extents
> btrfs: found 1 extents
> btrfs: relocating block group 1880285511680 flags 9
> btrfs: found 101 extents
> btrfs: found 101 extents
> btrfs: relocating block group 1878138028032 flags 9
> btrfs: found 105 extents
> btrfs: found 105 extents
> btrfs: relocating block group 1875990544384 flags 9
> btrfs: found 82 extents
> btrfs: found 82 extents
> btrfs: relocating block group 1873843060736 flags 9
> btrfs: found 344 extents
> btrfs: found 344 extents
> btrfs: relocating block group 1871695577088 flags 9
> 
> 
> 
> 
> 
> 
> -- 
> http://magnatune.com - Music shared the way it should be.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
---end quoted text---

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

* Re: Strangeness on btrfs balance..
  2011-02-05 10:31 Strangeness on btrfs balance Evert Vorster
  2011-02-05 10:44 ` Felix Blanke
@ 2011-02-05 11:34 ` Helmut Hullen
  1 sibling, 0 replies; 3+ messages in thread
From: Helmut Hullen @ 2011-02-05 11:34 UTC (permalink / raw)
  To: linux-btrfs

Hallo, Evert,

Du meintest am 05.02.11:

> I have kernel version 2.6.36.3, compiled with gcc 4.4.5, btrfstools
> version 0.19+20101101

> I have a btrfs filesystem (/data) consisting of two 1TB hard disks,
> raid0.

> I added in another 1TB hard drive.

> root@X86-64:~# btrfs filesystem show
> failed to read /dev/sdh
> failed to read /dev/sdg
> failed to read /dev/sdf
> failed to read /dev/sde
> failed to read /dev/sr0
> failed to read /dev/fd0u800
> failed to read /dev/fd0

That's a "well known" error; the fix isn't yet implemented.

> Any idea of why this is happening?
> Last few lines of dmesg:
> floppy0: disk absent or changed during operation
> end_request: I/O error, dev fd0, sector 128
> end_request: I/O error, dev fd0, sector 0

May be that's another "well known" error; there is a fix too ...


> btrfs: found 69 extents
> btrfs: relocating block group 1897465380864 flags 9
> btrfs: found 95 extents
> btrfs: found 95 extents
> btrfs: relocating block group 1895317897216 flags 9
> btrfs: found 81 extents
> btrfs: found 81 extents

Just wait some time.
When I remember correctly: the "relocating" message appears every minute  
(slightly rounded).
In your example there's a difference of about 1/1000, you have to wait  
about 1000 minutes.

Viele Gruesse!
Helmut

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

end of thread, other threads:[~2011-02-05 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-05 10:31 Strangeness on btrfs balance Evert Vorster
2011-02-05 10:44 ` Felix Blanke
2011-02-05 11:34 ` Helmut Hullen

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.