Re: kernel crashes with btrfs and busy database IO - how to debug?

2015-06-12 Thread Tomasz Chmielewski
On 2015-06-12 18:09, Qu Wenruo wrote: while true; do dmesg -c ; done but that's usually incomplete. If your dmesg is up-to-date, dmesg -w should do it better than your script. And normally, I can get a full trace with backtrace when kernel down with it. And if it still can't get the full tr

Re: [RESEND][PATCH] btrfs: Align EOF length to block in extent_same

2015-06-12 Thread Mark Fasheh
On Fri, Jun 12, 2015 at 04:18:25PM -0400, Chris Mason wrote: > Hi Mark, > > This one conflicts with your btrfs: Handle unaligned length in > extent_same, which is in integration now. If we need both, can you > please rework it? They both fix the same bug, so we just need one of them. You can kee

Re: [RESEND][PATCH] btrfs: Align EOF length to block in extent_same

2015-06-12 Thread Chris Mason
On 06/10/2015 06:13 PM, Mark Fasheh wrote: > Hi, > > Can this patch please be considered for upstream inclusion? I reviewed > it myself and have tested it on a few files with an updated duperemove > branch: > > https://github.com/markfasheh/duperemove/tree/alignment_fix > > as described below, t

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-12 Thread Goffredo Baroncelli
On 2015-06-12 20:04, Andrei Borzenkov wrote: > В Fri, 12 Jun 2015 21:16:30 +0800 > Anand Jain пишет: > >> >> >> BTRFS_IOC_DEVICES_READY is to check if all the required devices >> are known by the btrfs kernel, so that admin/system-application >> could mount the FS. It is checked against a device

subvolume parent id and uuid mismatch (progs 4.0, kernel 4.0.2)

2015-06-12 Thread Suman C
Hi, I have a raid1 filesystem: Label: 'raid1pool' uuid: b97d3055-c60c-4f10-aa1b-bf9554f043c9 Total devices 2 FS bytes used 320.00KiB devid1 size 2.00GiB used 437.50MiB path /dev/sdd devid2 size 2.00GiB used 417.50MiB path /dev/sde It's mounted at /mnt2/raid1pool # mount | grep raid1poo

Re: [systemd-devel] [survey] BTRFS_IOC_DEVICES_READY return status

2015-06-12 Thread Andrei Borzenkov
В Fri, 12 Jun 2015 21:16:30 +0800 Anand Jain пишет: > > > BTRFS_IOC_DEVICES_READY is to check if all the required devices > are known by the btrfs kernel, so that admin/system-application > could mount the FS. It is checked against a device in the argument. > > However the actual implementatio

Re: kernel crashes with btrfs and busy database IO - how to debug?

2015-06-12 Thread Chris Mason
On 06/11/2015 07:33 AM, Tomasz Chmielewski wrote: > I have a server where I've installed a couple of LXC guests, btrfs - so > easy to test things with snapshots. Or so it seems. > > Unfortunately the box crashes when I put "too much IO load" - with too > much load being these two running at the sa

Re: [PATCH RFC] btrfs: csum: Introduce partial csum for tree block.

2015-06-12 Thread Chris Mason
On 06/11/2015 11:00 PM, Qu Wenruo wrote: > Introduce the new partial csum mechanism for tree block. > > [Old tree block csum] > 0 4 8121620242832 > - > |csum | unused, all 0 | >

Re: Can't mount btrfs volume on rbd

2015-06-12 Thread Steve Dainard
Hi Qu, I have another volume with the same error, btrfs-debug-tree output from btrfs-progs 4.0.1 is here: http://pastebin.com/k3R3bngE I'm not sure how to interpret the output, but the exit status is 0 so it looks like btrfs doesn't think there's an issue with the file system. I get the same mou

Re: [PATCH RFC] btrfs: csum: Introduce partial csum for tree block.

2015-06-12 Thread Liu Bo
On Fri, Jun 12, 2015 at 11:00:15AM +0800, Qu Wenruo wrote: > Introduce the new partial csum mechanism for tree block. > > [Old tree block csum] > 0 4 8121620242832 > - > |csum | unused, all 0

[survey] BTRFS_IOC_DEVICES_READY return status

2015-06-12 Thread Anand Jain
BTRFS_IOC_DEVICES_READY is to check if all the required devices are known by the btrfs kernel, so that admin/system-application could mount the FS. It is checked against a device in the argument. However the actual implementation is bit more than just that, in the way that it would also scan an

[PATCH] btrfs: add error handling for scrub_workers_get()

2015-06-12 Thread Zhaolei
From: Zhao Lei Although it is a rare case, we'd better free previous allocated memory on error. Signed-off-by: Zhao Lei --- fs/btrfs/scrub.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index ab58115..

btrfs partition converted from ext4 becomes read-only minutes after booting: WARNING: CPU: 2 PID: 2777 at ../fs/btrfs/super.c:260 __btrfs_abort_transaction+0x4b/0x120

2015-06-12 Thread Robert Munteanu
Hi, I have converted my root ext4 partition to btrfs. I used an USB stick to boot and used btrfs-convert. I also did a balance and defrag ( in that order ) , both when the fs was mounted. After logging in to KDE I quickly get a read-only filesystem. I've pasted the backtrace below Jun 11 23:13:

Re: rw-mount-problem after raid1-failure

2015-06-12 Thread Anand Jain
On 06/11/2015 09:03 PM, Martin wrote: It is reproduceable but the logs doesn't say much: dmesg: [151183.214355] BTRFS info (device sdb2): allowing degraded mounts [151183.214361] BTRFS info (device sdb2): disk space caching is enabled [151183.317719] BTRFS: bdev (null) errs: wr 7988389, rd 770

Re: multiple "devices" with multiple partitions on one SSD

2015-06-12 Thread Tom Yan
Thank you for you reply. I thought of the same thing as you've told, but because I don't really know how SSD/SATA works internally, so I was also thinking if "raid0" on the same drive might works as something like "Hyper-Threading" in CPU. I'll go for "single" then. With that I don't have to start

Re: multiple "devices" with multiple partitions on one SSD

2015-06-12 Thread Duncan
Tom Yan posted on Thu, 11 Jun 2015 19:34:13 +0800 as excerpted: > So I am thinking of having multiple partitions (50GiB per one) on an > SATA3 SSD (200GiB available) to be used with a single btrfs filesystem. > The reason I am thinking about this is I would like to start from one > partition (or t

Re: [PATCH 0/4] Btrfs: RAID 5/6 missing device replace

2015-06-12 Thread wangyf
Hi. I have tested this patchset in Virtual Machine. Environment: Oracle VirtualBox 4.3.10 + Ubuntu 14.10 server + LVM 2.02.98 Kernel: 4.1.0-rc7 (12 June, 2015 / Today) with your 4 patches. Btrfs-progs: 4.0 Generic Test Procedure: mkfs.btrfs -f -m $RAID -d $RAID && mount

Re: kernel crashes with btrfs and busy database IO - how to debug?

2015-06-12 Thread Qu Wenruo
Original Message Subject: Re: kernel crashes with btrfs and busy database IO - how to debug? From: Tomasz Chmielewski To: Qu Wenruo Date: 2015年06月12日 16:35 On 2015-06-12 16:13, Qu Wenruo wrote: Remote syslog does not capture anything. No backtrace? No (nothing saved o

Re: kernel crashes with btrfs and busy database IO - how to debug?

2015-06-12 Thread Tomasz Chmielewski
On 2015-06-12 16:13, Qu Wenruo wrote: Remote syslog does not capture anything. No backtrace? No (nothing saved on disk, don't have VNC access). The only way to capture anything is: while true; do dmesg -c ; done but that's usually incomplete. Without backtrace, it's much harder to debug

RE: [PATCH 4/4] Btrfs: fix device replace of a missing RAID 5/6 device

2015-06-12 Thread Zhao Lei
Hi, Omar Sandoval > -Original Message- > From: Omar Sandoval [mailto:osan...@osandov.com] > Sent: Friday, June 12, 2015 4:12 PM > To: Zhao Lei > Cc: linux-btrfs@vger.kernel.org; 'Miao Xie'; 'Philip' > Subject: Re: [PATCH 4/4] Btrfs: fix device replace of a missing RAID 5/6 > device > > H

Re: [PATCH 4/4] Btrfs: fix device replace of a missing RAID 5/6 device

2015-06-12 Thread Omar Sandoval
Hi, Zhaolei, On Thu, Jun 11, 2015 at 06:29:15PM +0800, Zhao Lei wrote: > Hi, Omar Sandoval > > > -Original Message- > > From: linux-btrfs-ow...@vger.kernel.org > > [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Omar Sandoval > > Sent: Monday, May 11, 2015 3:58 PM > > To: linux-bt

Re: kernel crashes with btrfs and busy database IO - how to debug?

2015-06-12 Thread Duncan
Tomasz Chmielewski posted on Thu, 11 Jun 2015 20:33:41 +0900 as excerpted: > I have a server where I've installed a couple of LXC guests, btrfs - so > easy to test things with snapshots. Or so it seems. > > Unfortunately the box crashes when I put "too much IO load" - with too > much load being t

Re: Can't mount btrfs volume on rbd

2015-06-12 Thread Qu Wenruo
Original Message Subject: Can't mount btrfs volume on rbd From: Steve Dainard To: Date: 2015年06月11日 23:26 Hello, I'm getting an error when attempting to mount a volume on a host that was forceably powered off: # mount /dev/rbd4 climate-downscale-CMIP5/ mount: mount /dev/

Re: kernel crashes with btrfs and busy database IO - how to debug?

2015-06-12 Thread Qu Wenruo
Original Message Subject: kernel crashes with btrfs and busy database IO - how to debug? From: Tomasz Chmielewski To: linux-btrfs Date: 2015年06月11日 19:33 I have a server where I've installed a couple of LXC guests, btrfs - so easy to test things with snapshots. Or so it se

[PATCH] btrfs: [RFC] Don't use workqueue for raid56 parity scrub

2015-06-12 Thread Zhaolei
From: Zhao Lei The code in workqueue only do fast initialization and submit a bio in end, plus, it will not called in interrupe context, no need to queue a work for this type of work. Call it directly will make code simple, easy to debug and reduce potential problem. Signed-off-by: Zhao Lei --