Re: device balance times

2014-10-24 Thread Rich Freeman
On Thu, Oct 23, 2014 at 10:35 PM, Zygo Blaxell wrote: > > - single profile: we can tolerate zero missing disks, > so we don't allow rw mounts even if degraded. > That seems like the wrong logic here. By all means mount read-only by default for safety, but there sh

Re: [PATCH] btrfs: Enhance btrfs chunk allocation algorithm to reduce ENOSPC caused by unbalanced data/metadata allocation.

2014-10-24 Thread Liu Bo
On Thu, Oct 23, 2014 at 10:37:51AM +0800, Qu Wenruo wrote: > When btrfs allocate a chunk, it will try to alloc up to 1G for data and > 256M for metadata, or 10% of all the writeable space if there is enough 10G for data, if (type & BTRFS_BLOCK_GROUP_DATA) { max_stripe_size

Re: Heavy nocow'd VM image fragmentation

2014-10-24 Thread Marc MERLIN
On Thu, Oct 23, 2014 at 06:04:43PM -0500, Larkin Lowrey wrote: > I have a 240GB VirtualBox vdi image that is showing heavy fragmentation > (filefrag). The file was created in a dir that was chattr +C'd, the file > was created via fallocate and the contents of the orignal image were > copied into th

Problem converting data raid0 to raid1: enospc errors during balance

2014-10-24 Thread Jasper Verberk
Hello, I'm trying to change my 4 disk btrfs data from raid0 to raid1. The metadata is allready in raid1 and now I'm trying to also make the data raid1. I'm getting the following errors and I got told on irc to go report this as a bug. Hoping there is anybody that can give me a hand here in sol

Re: device balance times

2014-10-24 Thread Zygo Blaxell
On Fri, Oct 24, 2014 at 05:13:27AM +, Duncan wrote: > Zygo Blaxell posted on Thu, 23 Oct 2014 22:35:29 -0400 as excerpted: > > > My pet peeve: if balance is converting profiles from RAID1 to single, > > the conversion should be *instantaneous* (or at least small_constant * > > number_of_block

Re: btrfs: WARN_ON(data_sinfo->bytes_may_use < bytes);

2014-10-24 Thread Liu Bo
Hi Dave, On Wed, Oct 22, 2014 at 09:22:36PM -0400, Dave Jones wrote: > On Wed, Oct 22, 2014 at 09:07:31PM -0400, Dave Jones wrote: > > Just hit this while running trinity. > > > > WARNING: CPU: 3 PID: 9612 at fs/btrfs/extent-tree.c:3799 > btrfs_free_reserved_data_space+0x1d1/0x280 [btrfs]() >

Re: device balance times

2014-10-24 Thread Zygo Blaxell
On Fri, Oct 24, 2014 at 06:58:25AM -0400, Rich Freeman wrote: > On Thu, Oct 23, 2014 at 10:35 PM, Zygo Blaxell > wrote: > > > > - single profile: we can tolerate zero missing disks, > > so we don't allow rw mounts even if degraded. > > That seems like the wrong log

Re: what is the best way to monitor raid1 drive failures?

2014-10-24 Thread Chris Murphy
On Oct 14, 2014, at 2:11 PM, Suman C wrote: > After the reboot step, where I indicated that I mounted ro, I was > unable to mount rw or rw,degraded. I get the "mount: wrong fs type, > bad option, bad superblock…." error if I try to mount it rw. I would test with kernel 3.17 at least, but better

read block failed check_tree_block / Couldn't read chunk tree

2014-10-24 Thread Rene Thomas
Dear Developers / Maintainer, I’ve set up a running RAID5 with three devices (sda1 / sdb1 /sdc1) Mountpoint was /home, filesystem was mounted A chain of unfortunal circumstances gives me the chance to run as root in a terminal. mkfs.ntfs /dev/sdb1 where /dev/sdb1 is device 1 in the Array. After

Re: btrfs: WARN_ON(data_sinfo->bytes_may_use < bytes);

2014-10-24 Thread Dave Jones
On Fri, Oct 24, 2014 at 11:52:47PM +0800, Liu Bo wrote: > > I also see this WARN_ON being hit from the sync path.. > > > > WARNING: CPU: 2 PID: 11166 at fs/btrfs/extent-tree.c:3799 > > btrfs_free_reserved_data_space+0x1d1/0x280 [btrfs]() > > CPU: 2 PID: 11166 Comm: trinity-c61 Tainted: G

Re: Problem converting data raid0 to raid1: enospc errors during balance

2014-10-24 Thread Chris Murphy
On Oct 24, 2014, at 7:32 AM, Jasper Verberk wrote: > > [60104.040776] BTRFS info (device sdc): 1046 enospc errors during balance To get more information, remount with enospc_debug option, and try to convert again. > root@BlackMesa:/mnt# btrfs --version > Btrfs v3.14.1 There are many fixes s

RE: Problem converting data raid0 to raid1: enospc errors during balance

2014-10-24 Thread Jasper Verberk
Did that, you can find the result in the pastebin. http://paste.debian.net/128552/ > Subject: Re: Problem converting data raid0 to raid1: enospc errors during > balance > From: li...@colorremedies.com > Date: Fri, 24 Oct 2014 11:11:21 -0600 > To: linux-bt

Re: Problem converting data raid0 to raid1: enospc errors during balance

2014-10-24 Thread Chris Murphy
On Oct 24, 2014, at 11:49 AM, Jasper Verberk wrote: > Did that, you can find the result in the pastebin. > > http://paste.debian.net/128552/ Maybe Josef or David will have some idea. I'd still take a btrfs-image and btrfs check with current btrfs-progs. Chris Murphy -- To unsubscribe from t

Re: device balance times

2014-10-24 Thread Rich Freeman
On Fri, Oct 24, 2014 at 12:07 PM, Zygo Blaxell wrote: > > We could also leave this as an option to the user "mount -o > degraded-and-I-want-to-lose-my-data", but in my opinion the use > case is very, very exceptional. Well, it is only exceptional if you never shut down dur

Re: Check tree block failed, want=17716610236416, have=0 [RESOLVED]

2014-10-24 Thread Zygo Blaxell
On Thu, Oct 23, 2014 at 07:16:22PM -0400, Zygo Blaxell wrote: > I attempted to run btrfs check --repair, but it got stuck spinning > in what appeared to be an infinite loop. strace and ltrace revealed > nothing, and gdb wasn't particularly helpful, so I rebuilt btrfs with > debug symbols and tried

Re: Heavy nocow'd VM image fragmentation

2014-10-24 Thread Robert White
On 10/24/2014 04:49 AM, Marc MERLIN wrote: On Thu, Oct 23, 2014 at 06:04:43PM -0500, Larkin Lowrey wrote: I have a 240GB VirtualBox vdi image that is showing heavy fragmentation (filefrag). The file was created in a dir that was chattr +C'd, the file was created via fallocate and the contents of

Re: Heavy nocow'd VM image fragmentation

2014-10-24 Thread Duncan
Robert White posted on Fri, 24 Oct 2014 19:41:32 -0700 as excerpted: > On 10/24/2014 04:49 AM, Marc MERLIN wrote: >> On Thu, Oct 23, 2014 at 06:04:43PM -0500, Larkin Lowrey wrote: >>> I have a 240GB VirtualBox vdi image that is showing heavy >>> fragmentation (filefrag). The file was created in a