linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1)
@ 2015-07-14 12:06 David Sterba
  2015-07-20  2:07 ` Suman Chakravartula
  2015-07-21  8:00 ` René Pfeiffer
  0 siblings, 2 replies; 4+ messages in thread
From: David Sterba @ 2015-07-14 12:06 UTC (permalink / raw)
  To: linux-btrfs; +Cc: clm

Hi,

due to a buggy bugfix to mkfs, filesystems created with version 4.1.1 are not
entirely correct.

To check if the filesystem is affected run 'btrfs check' and look for

Chunk[256, 228, 0]: length(4194304), offset(0), type(2) mismatch with block group[0, 192, 4194304]: offset(4194304), objectid(0), flags(34)
Chunk[256, 228, 4194304]: length(8388608), offset(4194304), type(4) mismatch with block group[4194304, 192, 8388608]: offset(8388608), objectid(4194304), flags(36)

at the beginning of the output. Such filesystems must not be used and
must be recreated. Read-only mount should be safe to retrieve the data,
but at the moment this hasn't been verified.

Thanks to Qu Wenruo for identifying the problem, I'm sorry for the trouble.

Tarballs: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/
Git: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git

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

* Re: Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1)
  2015-07-14 12:06 Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1) David Sterba
@ 2015-07-20  2:07 ` Suman Chakravartula
  2015-07-23 12:02   ` David Sterba
  2015-07-21  8:00 ` René Pfeiffer
  1 sibling, 1 reply; 4+ messages in thread
From: Suman Chakravartula @ 2015-07-20  2:07 UTC (permalink / raw)
  To: dsterba, linux-btrfs, clm

Hi David,

We are using 4.1 progs and 4.1 kernel on Rockstor currently and what I
see is that btrfs check says device is not currently mounted. Is 4.1
effected? Do you recommend we update to 4.1.2 anyway?

[root@RockStor ~]# btrfs fi show testpool; mount | grep testpool;
btrfs check /dev/sdaa; btrfs check /dev/sdab
Label: 'testpool'  uuid: ed600942-f300-4a01-aa49-6b0ab6c0b8f9
Total devices 2 FS bytes used 3.69GiB
devid    1 size 2.00GiB used 2.00GiB path /dev/sdaa
devid    2 size 2.00GiB used 2.00GiB path /dev/sdab

btrfs-progs v4.1
/dev/sdaa on /mnt2/testpool type btrfs (rw,relatime,space_cache)
/dev/sdac on /mnt2/testpool2 type btrfs (rw,relatime,space_cache)
/dev/sdaa is currently mounted. Aborting.
/dev/sdab is currently mounted. Aborting.



On Tue, Jul 14, 2015 at 5:06 AM, David Sterba <dsterba@suse.com> wrote:
> Hi,
>
> due to a buggy bugfix to mkfs, filesystems created with version 4.1.1 are not
> entirely correct.
>
> To check if the filesystem is affected run 'btrfs check' and look for
>
> Chunk[256, 228, 0]: length(4194304), offset(0), type(2) mismatch with block group[0, 192, 4194304]: offset(4194304), objectid(0), flags(34)
> Chunk[256, 228, 4194304]: length(8388608), offset(4194304), type(4) mismatch with block group[4194304, 192, 8388608]: offset(8388608), objectid(4194304), flags(36)
>
> at the beginning of the output. Such filesystems must not be used and
> must be recreated. Read-only mount should be safe to retrieve the data,
> but at the moment this hasn't been verified.
>
> Thanks to Qu Wenruo for identifying the problem, I'm sorry for the trouble.
>
> Tarballs: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/
> Git: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
> --
> 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

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

* Re: Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1)
  2015-07-14 12:06 Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1) David Sterba
  2015-07-20  2:07 ` Suman Chakravartula
@ 2015-07-21  8:00 ` René Pfeiffer
  1 sibling, 0 replies; 4+ messages in thread
From: René Pfeiffer @ 2015-07-21  8:00 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

On Jul 14, 2015 at 1406 +0200, David Sterba appeared and said:
> ...
> at the beginning of the output. Such filesystems must not be used and
> must be recreated. Read-only mount should be safe to retrieve the data,
> but at the moment this hasn't been verified.

I was able to copy my Btrfs filesystem to a new disk by setting the old one
(created by Btrfs progs 4.1.1) read-only. I copied 292 GB with 900,000+
files and directories without errors reading from the original.

Best,
René.

-- 
  )\._.,--....,'``.  fL  Let GNU/Linux work for you while you take a nap.
 /,   _.. \   _\  (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/
`._.-(,_..'--(,_..'`-.;.'  - System administration + Consulting + Teaching -
Got mail delivery problems?  http://web.luchs.at/information/blockedmail.php

[-- Attachment #2: Type: application/pgp-signature, Size: 213 bytes --]

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

* Re: Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1)
  2015-07-20  2:07 ` Suman Chakravartula
@ 2015-07-23 12:02   ` David Sterba
  0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2015-07-23 12:02 UTC (permalink / raw)
  To: Suman Chakravartula; +Cc: clm, linux-btrfs

On Sun, Jul 19, 2015 at 07:07:40PM -0700, Suman Chakravartula wrote:
> We are using 4.1 progs and 4.1 kernel on Rockstor currently and what I
> see is that btrfs check says device is not currently mounted. Is 4.1
> effected? Do you recommend we update to 4.1.2 anyway?
> 
> [root@RockStor ~]# btrfs fi show testpool; mount | grep testpool;
> btrfs check /dev/sdaa; btrfs check /dev/sdab
> Label: 'testpool'  uuid: ed600942-f300-4a01-aa49-6b0ab6c0b8f9
> Total devices 2 FS bytes used 3.69GiB
> devid    1 size 2.00GiB used 2.00GiB path /dev/sdaa
> devid    2 size 2.00GiB used 2.00GiB path /dev/sdab
> 
> btrfs-progs v4.1
> /dev/sdaa on /mnt2/testpool type btrfs (rw,relatime,space_cache)
> /dev/sdac on /mnt2/testpool2 type btrfs (rw,relatime,space_cache)
> /dev/sdaa is currently mounted. Aborting.
> /dev/sdab is currently mounted. Aborting.

I'm not sure I understand. Fsck refuses to work on mounted filesystems
and there was no change in the 4.1.x releases. I'd recommend to update
to 4.1.2 but it's not required if 4.1 works for you or you haven't hit a
specific bug that 4.1.x fixes.

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

end of thread, other threads:[~2015-07-23 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 12:06 Btrfs progs release 4.1.2 (urgent fix, do not use 4.1.1) David Sterba
2015-07-20  2:07 ` Suman Chakravartula
2015-07-23 12:02   ` David Sterba
2015-07-21  8:00 ` René Pfeiffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).