From: Dave Chinner <david@fromorbit.com>
To: dm-devel@redhat.com
Cc: fstests@vger.kernel.org, xfs@oss.sgi.com
Subject: Re: [4.7-rc6 snapshot] xfstests::generic/081 unable to tear down snapshot VG
Date: Thu, 21 Jul 2016 09:18:05 +1000 [thread overview]
Message-ID: <20160720231805.GX12670@dastard> (raw)
In-Reply-To: <20160719002202.GE16044@dastard>
On Tue, Jul 19, 2016 at 10:22:02AM +1000, Dave Chinner wrote:
> Hi folks,
>
> I'm currently running the latest set of XFS patches through QA, and
> I'm getting generic/081 failing and leaving a block device in an
> unrecoverable EBUSY state. I'm running xfstests on a pair of 8GB
> fake pmem devices:
>
> $ sudo ./run_check.sh " -i sparse=1" "" " -s xfs generic/081"
....
More problems after this failure, while trying to sort out a
workaround I can use. Reboot the machine after triggering it, and on
next boot I've ended up with:
$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
base_081 vg_081 owi---s--- 256.00m
snap_081 vg_081 swi---s--- 4.00m base_081
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
vg_081 1 2 1 wz--n- 8.00g 7.74g
$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/pmem1 vg_081 lvm2 a-- 8.00g 7.74g
$ sudo lvremove -f vg_081/snap_081
Incorrect metadata area header checksum on /dev/pmem1 at offset 4096
WARNING: Failed to write an MDA of VG vg_081.
Failed to write VG vg_081.
Incorrect metadata area header checksum on /dev/pmem1 at offset 4096
$ sudo vgremove -f vg_081
Incorrect metadata area header checksum on /dev/pmem1 at offset 4096
WARNING: Failed to write an MDA of VG vg_081.
Failed to write VG vg_081.
Incorrect metadata area header checksum on /dev/pmem1 at offset 4096
$ sudo pvremove -f /dev/pmem1
PV /dev/pmem1 belongs to Volume Group vg_081 so please use vgreduce first.
(If you are certain you need pvremove, then confirm by using --force twice.)
$
So whatever is going wrong is also resulting in corrupted LVM
headers on disk.
Ok, so it appears that the only workaround I've found that is
reliable is to add a "sleep 5" between the unmount and the vgremove
command. Adding udev settle commands does nothing, and there's
nothing else i can think of that would affect the unmounted
filesystem or block device once the unmount has returned to
userspace.
I've only ever seen this occur on pmem devices, so maybe it's
something perculiar to them....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2016-07-20 23:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-19 0:22 [4.7-rc6 snapshot] xfstests::generic/081 unable to tear down snapshot VG Dave Chinner
2016-07-20 23:18 ` Dave Chinner [this message]
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=20160720231805.GX12670@dastard \
--to=david@fromorbit.com \
--cc=dm-devel@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=xfs@oss.sgi.com \
/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