Discussion:
Problems running Balance and checking integrity concurrently.
(too old to reply)
Wang Shilong
2014-10-10 13:35:02 UTC
Permalink
Raw Message
Hello=A3=AC

I have reproduced a problem with Btrfs integrity and balance using late=
st
btrfs kernel,it is very easy to reproduce:

With mount option =A1=B0check_int=A1=B1, and run xfstests/btrfs/ tests,=
below test could definitely
reproduce problem:

=2E/check tests/btrfs/014

5.122248] Written block @25800343552 (sdc/1210187776/0) found in hash t=
able, M, bytenr mismatch (!=3D stored 20968505344).
[ 455.122283] Written block @25800359936 (sdc/1210204160/1) found in h=
ash table, M, bytenr mismatch (!=3D stored 20968521728).
[ 455.122301] Written block @25800376320 (sdc/1210220544/1) found in h=
ash table, M, bytenr mismatch (!=3D stored 20968538112).
[ 455.122347] Referenced block @25800343552 (sdc/1344405504/2) found i=
n hash table, M, bytenr mismatch (!=3D stored 20968505344).
[ 455.122427] Referenced block @25800359936 (sdc/1344421888/2) found i=
n hash table, M, bytenr mismatch (!=3D stored 20968521728).
[ 455.122853] Written block @25800376320 (sdc/1344438272/0) found in h=
ash table, M, bytenr mismatch (!=3D stored 20968538112).
[ 455.126275] BTRFS critical (device sdc): unable to find logical 3452=
043264 len 4096
[ 455.126491] btrfsic: btrfsic_map_block(root @3452043264) failed!
[ 455.126496] BTRFS critical (device sdc): unable to find logical 3452=
059648 len 4096
[ 455.126769] btrfsic: btrfsic_map_block(root @3452059648) failed!
[ 455.126773] BTRFS critical (device sdc): unable to find logical 3452=
076032 len 4096
[ 455.127007] btrfsic: btrfsic_map_block(root @3452076032) failed!
[ 455.127011] BTRFS critical (device sdc): unable to find logical 3452=
092416 len 4096
<snip>
[ 455.129864] btrfsic: btrfsic_map_block(root @3452272640) failed!
[ 455.129869] BTRFS critical (device sdc): unable to find logical 3452=
289024 len 4096
[ 455.130113] btrfsic: btrfsic_map_block(root @3452289024) failed!
[ 455.130756] BTRFS critical (device sdc): unable to find logical 3451=
994112 len 4096
[ 455.130984] btrfsic: btrfsic_map_block(root @3451994112) failed!
[ 455.130988] BTRFS critical (device sdc): unable to find logical 3452=
010496 len 4096
[ 455.131192] btrfsic: btrfsic_map_block(root @3452010496) failed!
[ 455.131195] BTRFS critical (device sdc): unable to find logical 3452=
026880 len 4096
[ 455.131401] btrfsic: btrfsic_map_block(root @3452026880) failed!
[ 455.131914] Written block @25800392704 (sdc/1210236928/0) found in h=
ash table, M, bytenr mismatch (!=3D stored 20968554496).
[ 455.131938] Referenced block @25800409088 (sdc/1210253312/1) found i=
n hash table, M, bytenr mismatch (!=3D stored 20968570880).
[ 455.131971] Referenced block @25800409088 (sdc/1344471040/2) found i=
n hash table, M, bytenr mismatch (!=3D stored 20968570880).
[ 455.132017] Referenced block @25800425472 (sdc/1210269696/1) found i=
n hash table, M, bytenr mismatch (!=3D stored 20968587264).
[ 455.132030] Referenced block @25800425472 (sdc/1344487424/2) found i=
n hash table, M, bytenr mismatch (!=3D stored 20968587264).
[ 455.132344] Written block @25800392704 (sdc/1344454656/0) found in h=
ash table, M, bytenr mismatch (!=3D stored 20968554496

I supposed there are some race problems between integrity check and
Btrfs balance, could you guys please take a look at this issue!


Best Regards,
Wang Shilong

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Stefan Behrens
2014-10-16 15:48:36 UTC
Permalink
Raw Message
Hello=EF=BC=8C
=20
I have reproduced a problem with Btrfs integrity and balance using la=
test
=20
With mount option =E2=80=9Ccheck_int=E2=80=9D, and run xfstests/btrfs=
/ tests, below test could definitely
=20
./check tests/btrfs/014
The following two patches fix the issue.


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Wang Shilong
2014-10-17 04:26:12 UTC
Permalink
Raw Message
Hi Stefan Behrens,

Thanks very much for your attention!

More stress tests will be followed and will
give you feedbacks when finished.
Post by Stefan Behrens
Post by Wang Shilong
Hello=A3=AC
=20
I have reproduced a problem with Btrfs integrity and balance using l=
atest
Post by Stefan Behrens
Post by Wang Shilong
=20
With mount option =A1=B0check_int=A1=B1, and run xfstests/btrfs/ tes=
ts, below test could definitely
Post by Stefan Behrens
Post by Wang Shilong
=20
./check tests/btrfs/014
=20
The following two patches fix the issue.
=20
=20
Best Regards,
Wang Shilong

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