Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Btrfs lockup during defrag and removing device
@ 2013-06-24 10:25 Ondřej Kunc
  2013-06-24 15:25 ` Josef Bacik
  0 siblings, 1 reply; 3+ messages in thread
From: Ondřej Kunc @ 2013-06-24 10:25 UTC (permalink / raw)
  To: linux-btrfs

Hi developers,

I have been playing with btrfs on our test server. I have streessed it
much ... and I can say ... it's troughput and features are very nice
and usable, but I experienced one problem during testing, btrfs
triggered lockup of 3 of 8 CPU cores of testing server.

What I was doing ?

Simultaneously:
- copying 130GB file on one subvolume to another file and measuring speed by pv
- removing one device (/dev/md3) from btrfs
- running btrfs defrag on whole  fs (via xargs)
- rsyncing files from another server to subvolume
- untaring the first 130GB tar to one subdirectory

Our server is HP-DL380, 12*146GB SAS HDD, 72GB RAM, Intel Xeon 5620
Running uptodate debian wheezy with kernel and btrfs-tools from testing
3.9-1-amd64 #1 SMP Debian 3.9.6-1 x86_64 GNU/Linux
# btrfs version
Btrfs Btrfs v0.19

btrfs was created on top on 3 software RAID6 devices, every one built
from 4 SAS drive

About one hour after this(see dmesg) server became inaccessible, so I
had to restart it by power cycle.

After reboot there was problem with free space cache, but it was fixed
automatically. I have one suspection, I have tried next this:

btrfs balance start /btrfs
and then btrfs resize 4:max /btrfs (device was previosly smaller)

it failed with dmesg output: btrfs: dev
add/delete/balance/replace/resize operation in progress.

So it is possible, that it is mutualy exclusive and should not be
permitted in the other way, to start balance or defrag when device is
being removed, is this true ?

Thank you all for your good work!

Ondrej Kunc

dmesg output: http://pastebin.com/Ndxypkxa

P.S. in case of duplicate message I'm sorry, but I was not able to
post from our company email.

--
Ondřej Kunc

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

end of thread, other threads:[~2013-06-26 11:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 10:25 Btrfs lockup during defrag and removing device Ondřej Kunc
2013-06-24 15:25 ` Josef Bacik
2013-06-26 11:02   ` Ondřej Kunc

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