From: Amir Goldstein <amir73il@gmail.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Eryu Guan <eguan@redhat.com>,
linux-xfs@vger.kernel.org, fstests <fstests@vger.kernel.org>
Subject: Re: [PATCH v5 0/9] xfstests: online scrub/repair support
Date: Sat, 21 Jan 2017 21:38:23 +0200 [thread overview]
Message-ID: <CAOQ4uxgDPEQiC72-o7yt0P6o2xdVTb6kQNxoePOzYWRbCCXxKw@mail.gmail.com> (raw)
In-Reply-To: <148498621936.17109.4249711513404036449.stgit@birch.djwong.org>
[-- Attachment #1: Type: text/plain, Size: 3218 bytes --]
On Sat, Jan 21, 2017 at 10:10 AM, Darrick J. Wong
<darrick.wong@oracle.com> wrote:
> Hi all,
>
> This is the fifth revision of a patchset that adds to XFS userland tools
> support for online metadata scrubbing and repair.
>
> The new patches in this series do three things: first, they expand the
> filesystem populate commands inside xfstests to be able to create all
> types of XFS metadata. Second, they create a bunch of xfs_db wrapper
> functions to iterate all fields present in a given metadata object and
> fuzz them in various ways. Finally, for each metadata object type there
> is a separate test that iteratively fuzzes all fields of that object and
> runs it through the mount/scrub/repair loop to see what happens.
>
> If you're going to start using this mess, you probably ought to just
> pull from my github trees for kernel[1], xfsprogs[2], and xfstests[3].
> The kernel patches in the git trees should apply to 4.10-rc4; xfsprogs
> patches to for-next; and xfstest to master.
>
> The patches have survived all auto group xfstests both with scrub-only
> mode and also a special debugging mode to xfs_scrub that forces it to
> rebuild the metadata structures even if they're not damaged.
>
Darrick,
xfs/1301 hogs every time at the same point in the test
after Fuzz dirblklog = middlebit, those are the last words in dmesg:
Log size 12800 blocks too small, minimum size is 23646 blocks
XFS (dm-2): AAIEEE! Log failed size checks. Abort!
XFS (dm-2): log mount failed
Then xfs_repair stays at 100% (waited >10 min).
This is the backtrace from xfs_repair:
libxfs_trans_log_buf (tp=<optimized out>, bp=bp@entry=0x9d7200,
first=first@entry=65272, last=last@entry=65275) at trans.c:385
385 xfs_buf_item_log(bip, first, last);
(gdb) bt
#0 libxfs_trans_log_buf (tp=<optimized out>, bp=bp@entry=0x9d7200,
first=first@entry=65272, last=last@entry=65275) at trans.c:385
#1 0x000000000045c28d in xfs_dir2_data_log_unused
(args=args@entry=0xa1fe00, bp=0x9d7200, dup=dup@entry=0xadacf8) at
xfs_dir2_data.c:712
#2 0x000000000045b3d2 in xfs_dir2_sf_to_block
(args=args@entry=0xa1fe00) at xfs_dir2_block.c:1209
#3 0x0000000000462b84 in xfs_dir2_sf_addname
(args=args@entry=0xa1fe00) at xfs_dir2_sf.c:339
#4 0x00000000004594e8 in libxfs_dir_createname (tp=0x9e31b0,
dp=0x9d6e60, name=name@entry=0x7ffe5fff3690, inum=inum@entry=161,
first=first@entry=0x7ffe5fff3688, dfops=dfops@entry=0x7ffe5fff36a0,
total=1848) at xfs_dir2.c:297
#5 0x000000000042259e in mv_orphanage (mp=mp@entry=0x7ffe5fff4b30,
ino=ino@entry=161, isa_dir=0) at phase6.c:1205
#6 0x0000000000423ed4 in check_for_orphaned_inodes (irec=<optimized
out>, agno=<optimized out>, mp=<optimized out>) at phase6.c:3105
#7 phase6 (mp=mp@entry=0x7ffe5fff4b30) at phase6.c:3284
#8 0x0000000000403b5d in main (argc=<optimized out>, argv=<optimized
out>) at xfs_repair.c:947
Attached 1301.full and dmesg from 2 runs.
Using to following branch tips:
xfstests:
949963c xfs: actually record per-field fuzzing online repair output
xfsprogs:
3dd963c xfs_scrub: create a script to scrub all xfs filesystems
kernel:
fbcd13f xfs: avoid mount-time deadlock in CoW extent recovery
Will let it run through the night see what happens...
Amir.
[-- Attachment #2: 1301.full.gz --]
[-- Type: application/x-gzip, Size: 64150 bytes --]
[-- Attachment #3: 1301.dmesg.gz --]
[-- Type: application/x-gzip, Size: 100596 bytes --]
next prev parent reply other threads:[~2017-01-21 19:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-21 8:10 [PATCH v5 0/9] xfstests: online scrub/repair support Darrick J. Wong
2017-01-21 8:10 ` [PATCH 1/9] populate: create all types of XFS metadata Darrick J. Wong
2017-01-21 8:10 ` [PATCH 2/9] populate: add _require_populate_commands to check for tools Darrick J. Wong
2017-01-21 8:10 ` [PATCH 3/9] populate: optionally fill the filesystem when populating fs Darrick J. Wong
2017-01-21 8:10 ` [PATCH 4/9] populate: fix some silly errors when modifying a fs while fuzzing Darrick J. Wong
2017-01-21 8:10 ` [PATCH 5/9] common/fuzzy: move fuzzing helper functions here Darrick J. Wong
2017-01-27 8:12 ` Eryu Guan
2017-01-27 9:24 ` Darrick J. Wong
2017-01-21 8:10 ` [PATCH 6/9] populate: cache scratch metadata images Darrick J. Wong
2017-01-21 8:11 ` [PATCH 7/9] populate: discover XFS structure fields and fuzz verbs, and use them to fuzz fields Darrick J. Wong
2017-01-21 8:11 ` [PATCH 8/9] common/populate: create attrs in different namespaces Darrick J. Wong
2017-01-21 8:11 ` [PATCH 9/9] xfs: fuzz every field of every structure Darrick J. Wong
2017-01-21 19:38 ` Amir Goldstein [this message]
2017-01-22 5:01 ` [PATCH v5 0/9] xfstests: online scrub/repair support Darrick J. Wong
2017-01-22 6:10 ` Amir Goldstein
2017-01-26 5:08 ` Eryu Guan
2017-01-26 6:44 ` Darrick J. Wong
2017-01-26 7:26 ` Eryu Guan
2017-01-26 7:53 ` Darrick J. Wong
2017-01-27 1:41 ` Eryu Guan
2017-01-27 9:22 ` Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOQ4uxgDPEQiC72-o7yt0P6o2xdVTb6kQNxoePOzYWRbCCXxKw@mail.gmail.com \
--to=amir73il@gmail.com \
--cc=darrick.wong@oracle.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).