Re: Btrfs read-only after btrfs-convert from Ext4 workaround

2015-07-13 Thread René Pfeiffer
On Jul 12, 2015 at 2026 -0600, Chris Murphy appeared and said:
 On Sun, Jul 12, 2015 at 7:23 PM, René Pfeiffer l...@luchs.at wrote:
 ...
  Output of uname, btrfs, and the dmesg log is attached. Let me know if you
  need anything else. The old Btrfs is still on another disk, and I can
  extract information from it.
 
 If you can run 'btrfs check' on it (without repair) using btrfs-progs
 4.0, and 3.19.1, and report the results of each, that would be really
 useful.

Here we go.

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
Checking filesystem on /dev/mapper/oldcrypt
UUID: 703fc8b4-b2b9-470b-af2f-9aae9536c2fb
checking extents
checking free space cache
There is no free space entry for 163242479616-163242483712
There is no free space entry for 163242479616-167537278976
cache appears valid but isnt 162168569856
found 358532382931 bytes used err is -22
total csum bytes: 346644792
total tree bytes: 3568107520
total fs tree bytes: 3061465088
total extent tree bytes: 50102272
btree space waste bytes: 987626752
file data blocks allocated: 355459522560
 referenced 354990657536
btrfs-progs v3.19.1
Checking filesystem on /dev/mapper/oldcrypt
UUID: 703fc8b4-b2b9-470b-af2f-9aae9536c2fb
checking extents
checking free space cache
block group 162168569856 has wrong amount of free spacefailed to load free 
space cache for block group 162168569856
checking fs roots
root 5 inode 39321856 errors 200, dir isize wrong
root 5 inode 40898635 errors 200, dir isize wrong
found 358532382931 bytes used err is 1
total csum bytes: 346644792
total tree bytes: 3568107520
total fs tree bytes: 3061465088
total extent tree bytes: 50102272
btree space waste bytes: 987626752
file data blocks allocated: 355459522560
 referenced 354990657536
btrfs-progs v4.0


pgp1xPu9NdcZy.pgp
Description: PGP signature


Re: Btrfs read-only after btrfs-convert from Ext4 workaround

2015-07-12 Thread Chris Murphy
On Sun, Jul 12, 2015 at 7:23 PM, René Pfeiffer l...@luchs.at wrote:
 Hello!

 I also hit the Btrfs read-only after btrfs-convert bug when converting my
 Ext4 root filesystem with btrfs-convert. I used the btrfs tools v4.0 and
 Linux kernel 4.1.1.

 As a workaround I mounted the converted Btrfs read-only and copied it to a
 new Btrfs created by mkfs.btrfs (from the btrfs tools v4.0). Debian 8
 system booted without problems, and the bug hasn't been seen (so far).

 Output of uname, btrfs, and the dmesg log is attached. Let me know if you
 need anything else. The old Btrfs is still on another disk, and I can
 extract information from it.

If you can run 'btrfs check' on it (without repair) using btrfs-progs
4.0, and 3.19.1, and report the results of each, that would be really
useful.

-- 
Chris Murphy
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Btrfs read-only after btrfs-convert from Ext4 workaround

2015-07-12 Thread René Pfeiffer
Hello!

I also hit the Btrfs read-only after btrfs-convert bug when converting my
Ext4 root filesystem with btrfs-convert. I used the btrfs tools v4.0 and
Linux kernel 4.1.1.

As a workaround I mounted the converted Btrfs read-only and copied it to a
new Btrfs created by mkfs.btrfs (from the btrfs tools v4.0). Debian 8
system booted without problems, and the bug hasn't been seen (so far).

Output of uname, btrfs, and the dmesg log is attached. Let me know if you
need anything else. The old Btrfs is still on another disk, and I can
extract information from it.

Best regards,
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
Linux nephtys 4.1.1 #1 SMP Thu Jul 2 03:28:56 CEST 2015 x86_64 GNU/Linux

btrfs-progs v4.0

btrfs-progs v4.0
Data, single: total=450.00GiB, used=237.20GiB
System, single: total=32.00MiB, used=48.00KiB
Metadata, single: total=188.00GiB, used=96.78GiB
GlobalReserve, single: total=512.00MiB, used=0.00B


[0.00] Initializing cgroup subsys cpuset
[0.00] Initializing cgroup subsys cpu
[0.00] Initializing cgroup subsys cpuacct
[0.00] Linux version 4.1.1 (lynx@nephtys) (gcc version 4.9.2 (Debian 
4.9.2-10) ) #1 SMP Thu Jul 2 03:28:56 CEST 2015
[0.00] Command line: BOOT_IMAGE=/vmlinuz-4.1.1 
root=UUID=703fc8b4-b2b9-470b-af2f-9aae9536c2fb ro nordrand rd.auto rd.auto=1
[0.00] e820: BIOS-provided physical RAM map:
[0.00] BIOS-e820: [mem 0x-0x0009cfff] usable
[0.00] BIOS-e820: [mem 0x0009d000-0x0009] reserved
[0.00] BIOS-e820: [mem 0x000e-0x000f] reserved
[0.00] BIOS-e820: [mem 0x0010-0xcfcdcfff] usable
[0.00] BIOS-e820: [mem 0xcfcdd000-0xdce3efff] reserved
[0.00] BIOS-e820: [mem 0xdce3f000-0xdcf7efff] ACPI NVS
[0.00] BIOS-e820: [mem 0xdcf7f000-0xdcffefff] ACPI data
[0.00] BIOS-e820: [mem 0xdcfff000-0xdf9f] reserved
[0.00] BIOS-e820: [mem 0xf800-0xfbff] reserved
[0.00] BIOS-e820: [mem 0xfec0-0xfec00fff] reserved
[0.00] BIOS-e820: [mem 0xfed08000-0xfed08fff] reserved
[0.00] BIOS-e820: [mem 0xfed1-0xfed19fff] reserved
[0.00] BIOS-e820: [mem 0xfed1c000-0xfed1] reserved
[0.00] BIOS-e820: [mem 0xfee0-0xfee00fff] reserved
[0.00] BIOS-e820: [mem 0xff00-0xff000fff] reserved
[0.00] BIOS-e820: [mem 0xffc0-0x] reserved
[0.00] BIOS-e820: [mem 0x0001-0x00031e5f] usable
[0.00] NX (Execute Disable) protection: active
[0.00] SMBIOS 2.7 present.
[0.00] DMI: LENOVO 20C6003AGE/20C6003AGE, BIOS J9ET91WW (2.11 ) 
07/04/2014
[0.00] e820: update [mem 0x-0x0fff] usable == reserved
[0.00] e820: remove [mem 0x000a-0x000f] usable
[0.00] e820: last_pfn = 0x31e600 max_arch_pfn = 0x4
[0.00] MTRR default type: write-back
[0.00] MTRR fixed ranges enabled:
[0.00]   0-9 write-back
[0.00]   A-B uncachable
[0.00]   C-F write-protect
[0.00] MTRR variable ranges enabled:
[0.00]   0 base 00E000 mask 7FE000 uncachable
[0.00]   1 base 00DE00 mask 7FFE00 uncachable
[0.00]   2 base 00DD00 mask 7FFF00 uncachable
[0.00]   3 disabled
[0.00]   4 disabled
[0.00]   5 disabled
[0.00]   6 disabled
[0.00]   7 disabled
[0.00]   8 disabled
[0.00]   9 disabled
[0.00] PAT configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- UC  
[0.00] e820: last_pfn = 0xcfcdd max_arch_pfn = 0x4
[0.00] Scanning 1 areas for low memory corruption
[0.00] Base memory trampoline at [88097000] 97000 size 24576
[0.00] Using GB pages for direct mapping
[0.00] init_memory_mapping: [mem 0x-0x000f]
[0.00]  [mem 0x-0x000f] page 4k
[0.00] BRK [0x2d7cd000, 0x2d7cdfff] PGTABLE
[0.00] BRK [0x2d7ce000, 0x2d7cefff] PGTABLE
[0.00] BRK [0x2d7cf000, 0x2d7c] PGTABLE
[0.00] init_memory_mapping: [mem 0x31e40-0x31e5f]
[0.00]  [mem 0x31e40-0x31e5f] page 2M
[0.00] BRK [0x2d7d, 0x2d7d0fff] PGTABLE
[0.00] init_memory_mapping: [mem 0x3-0x31e3f]
[0.00]  [mem 0x3-0x31e3f] page 2M
[0.00] init_memory_mapping: [mem 0x2e000-0x2]
[0.00]  [mem