Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #67481 > unrolled thread
| Started by | Sarah Newman <srn@prgmr.com> |
|---|---|
| First post | 2020-07-08 02:40 +0200 |
| Last post | 2020-08-19 07:10 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.kernel
Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 Sarah Newman <srn@prgmr.com> - 2020-07-08 02:40 +0200
Processed: Re: Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-07-08 05:20 +0200
Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 Ben Hutchings <ben@decadent.org.uk> - 2020-07-08 05:20 +0200
Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 Sarah Newman <srn@prgmr.com> - 2020-07-09 00:50 +0200
Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 Sarah Newman <srn@prgmr.com> - 2020-07-28 00:20 +0200
Bug#964494: Info received (Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64) Sarah Newman <srn@prgmr.com> - 2020-08-19 07:10 +0200
| From | Sarah Newman <srn@prgmr.com> |
|---|---|
| Date | 2020-07-08 02:40 +0200 |
| Subject | Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 |
| Message-ID | <Aq6hX-80m-1@gated-at.bofh.it> |
Package: linux-signed-amd64 Version: 4.19.0-9-amd64 We've had two separate reports now of debian buster users running 4.19.0-9-amd64 who experienced serious file system corruption. - Both were using ext3 - Both are running Xen HVM, but I do not have reason to believe this to be related - Both are on distinct physical hosts - Both had upgraded from an older non 4.19 kernel within the last two or three weeks One user had the error: ext4-fs error (device xvda1): ext4_validate_block_bitmap:393: comm cat: bg 812: block 26607617: invalid block bitmap aborting journal on device xvda1-8 ext4-fs error (device xvda1): ext4_journal_check_start:61: Detected abnormal journal ext4-fs (xvda1): Remounting filesystem read-only ext4-fs (xvda1): Remounting filesystem read-only ext4-fs error (device xvda1) in ext4_orphan_add:2863: Journal has aborted The other gave us the output of tune2fs -l: tune2fs 1.44.5 (15-Dec-2018) Last mounted on: / Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 4700160 Block count: 9437183 Reserved block count: 471048 Free blocks: 6164372 Free inodes: 4479367 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 730 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 16320 Inode blocks per group: 510 Filesystem created: Thu Apr 26 19:55:21 2012 Last mount time: Tue Jul 7 15:11:46 2020 Last write time: Tue Jul 7 15:11:45 2020 Mount count: 1 Maximum mount count: 26 Last checked: Tue Jul 7 15:10:50 2020 Check interval: 15552000 (6 months) Next check after: Sun Jan 3 14:10:50 2021 Lifetime writes: 10 TB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 First orphan inode: 1224109 Default directory hash: tea Directory Hash Seed: 77ef7ea3-5e01-4e55-b3da-3036769fb64b Journal backup: inode blocks --Sarah
[toc] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2020-07-08 05:20 +0200 |
| Subject | Processed: Re: Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64 |
| Message-ID | <Aq8MO-1eA-7@gated-at.bofh.it> |
| In reply to | #67481 |
Processing control commands: > reassign -1 src:linux Bug #964494 [linux-signed-amd64] File system corruption with ext3 + kernel-4.19.0-9-amd64 Bug reassigned from package 'linux-signed-amd64' to 'src:linux'. No longer marked as found in versions 4.19.0-9-amd64. Ignoring request to alter fixed versions of bug #964494 to the same values previously set > tag -1 moreinfo Bug #964494 [src:linux] File system corruption with ext3 + kernel-4.19.0-9-amd64 Added tag(s) moreinfo. -- 964494: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964494 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2020-07-08 05:20 +0200 |
| Message-ID | <Aq8MO-1eA-3@gated-at.bofh.it> |
| In reply to | #67481 |
[Multipart message — attachments visible in raw view] — view raw
Control: reassign -1 src:linux
Control: tag -1 moreinfo
On Tue, 2020-07-07 at 17:30 -0700, Sarah Newman wrote:
> Package: linux-signed-amd64
> Version: 4.19.0-9-amd64
>
> We've had two separate reports now of debian buster users running
> 4.19.0-9-amd64 who experienced serious file system corruption.
Which version? (I.e. what does "uname -v" or
"dpkg -s linux-image-4.19.0-9-amd64" say?)
> - Both were using ext3
> - Both are running Xen HVM, but I do not have reason to believe this to be related
I have no reason to assume that this is unrelated to the hypervisor, so
please report the version of Xen and whatever provides the back-end
block driver.
> - Both are on distinct physical hosts
> - Both had upgraded from an older non 4.19 kernel within the last two or three weeks
From which older versions?
> One user had the error:
>
> ext4-fs error (device xvda1): ext4_validate_block_bitmap:393: comm cat: bg 812: block 26607617: invalid block bitmap
> aborting journal on device xvda1-8
> ext4-fs error (device xvda1): ext4_journal_check_start:61: Detected abnormal journal
> ext4-fs (xvda1): Remounting filesystem read-only
> ext4-fs (xvda1): Remounting filesystem read-only
> ext4-fs error (device xvda1) in ext4_orphan_add:2863: Journal has aborted
And were there any other error messages, e.g. relating to I/O errors,
around the same time? How about in the back-end domain?
> The other gave us the output of tune2fs -l:
[...]
Looks like a fairly ordinary ext3 filesystem. It doesn't tell us
anything about what went wrong.
In general I would advise against continued use of the ext3 format. It
should continue to be supported by the ext4 code, but it is inevitably
going to be less well-tested than the ext4 format. So far as I can
remember, it is easy to upgrade in-place.
Ben.
--
Ben Hutchings
The most exhausting thing in life is being insincere.
- Anne Morrow Lindberg
[toc] | [prev] | [next] | [standalone]
| From | Sarah Newman <srn@prgmr.com> |
|---|---|
| Date | 2020-07-09 00:50 +0200 |
| Message-ID | <Aqr33-3EZ-1@gated-at.bofh.it> |
| In reply to | #67483 |
On 7/7/20 8:13 PM, Ben Hutchings wrote: > Control: reassign -1 src:linux > Control: tag -1 moreinfo > > On Tue, 2020-07-07 at 17:30 -0700, Sarah Newman wrote: >> Package: linux-signed-amd64 >> Version: 4.19.0-9-amd64 >> >> We've had two separate reports now of debian buster users running >> 4.19.0-9-amd64 who experienced serious file system corruption. > > Which version? (I.e. what does "uname -v" or > "dpkg -s linux-image-4.19.0-9-amd64" say?) One is version: 4.19.118-2+deb10u1 >> - Both were using ext3 >> - Both are running Xen HVM, but I do not have reason to believe this to be related > > I have no reason to assume that this is unrelated to the hypervisor, so > please report the version of Xen and whatever provides the back-end > block driver. For the failures there are two different Xen hypervisor versions involved, the most recent being 4.9.4.45.g8d2a6880, with various patches for security issues applied. For Linux, the base version is 4.9.197. That's missing the xen blockback patches "xen/blkback: Avoid unmapping unmapped grant pages" and "xen-blkback: prevent premature module unload" but I don't think either of those are relevant here based on the descriptions for those patches. Nothing in the backend has been updated within the last few weeks. We believe that we have positively identified around 90 VMs running Debian Buster under the same backend versions, though we can't say for certain what kernel version or file system. I would guess at least 15 of them to be running ext4 + linux-image-4.19.0-8-amd64/4.19.98-1 or later. Some of our own test systems on the exact same kernel and hypervisor as the ones with failures are running: 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux They are running on top of ext4, with file system options: rw,relatime,nobarrier,errors=remount-ro,stripe=XX They are not heavily loaded, so if load is related then they would not exhibit issues. What we don't have personal knowledge of is 4.19.0-9-amd64, either with or without ext3. Normally we would gather more data before making an upstream report, but given the severity I thought best to do this sooner rather than later. > >> - Both are on distinct physical hosts >> - Both had upgraded from an older non 4.19 kernel within the last two or three weeks > > From which older versions? In one case: "the upgrade was from Debian 9 Stretch and the system was up to date before running the upgrade." For the other, linux-image-4.9.0-11-amd64. > >> One user had the error: >> >> ext4-fs error (device xvda1): ext4_validate_block_bitmap:393: comm cat: bg 812: block 26607617: invalid block bitmap >> aborting journal on device xvda1-8 >> ext4-fs error (device xvda1): ext4_journal_check_start:61: Detected abnormal journal >> ext4-fs (xvda1): Remounting filesystem read-only >> ext4-fs (xvda1): Remounting filesystem read-only >> ext4-fs error (device xvda1) in ext4_orphan_add:2863: Journal has aborted > > And were there any other error messages, e.g. relating to I/O errors, > around the same time? How about in the back-end domain? For the backend, I do not see errors around that time or for several weeks previous on either physical host. One user, the one who gave us that report, reports no other errors. They say: After the live recovery fsck completed, I was able to use the partition and it reported clean, but it was clearly still pretty damaged. Grub2 for example wouldn't install, insisting unknown filesystem. I copied all the data to a new ext4 filesystem and was able to boot into that, but later saw there was pretty significant file corruption, including files that had not been modified in weeks or months. PHP files had random strings inserted in them. Debsums reported probably 10% of packages having invalid sumchecks in some of the installed files. And a few mysql database tables had corruption. I was able to restore the database and replace pretty much everything else from backups that had been made about 10 minutes prior to the filesystem corruption, and then re-installed every package. So far things seem to be working fine, since I've more or less replaced every file. The other user I am not sure about. > >> The other gave us the output of tune2fs -l: > [...] > > Looks like a fairly ordinary ext3 filesystem. It doesn't tell us > anything about what went wrong. > > In general I would advise against continued use of the ext3 format. It > should continue to be supported by the ext4 code, but it is inevitably > going to be less well-tested than the ext4 format. So far as I can > remember, it is easy to upgrade in-place. Thank you. One user has already converted to ext4 and the other plans to. --Sarah
[toc] | [prev] | [next] | [standalone]
| From | Sarah Newman <srn@prgmr.com> |
|---|---|
| Date | 2020-07-28 00:20 +0200 |
| Message-ID | <AxjDs-3iS-5@gated-at.bofh.it> |
| In reply to | #67481 |
On 7/20/20 11:24 AM, Hans van Kranenburg wrote: > Hi, > > On Wed, 15 Jul 2020 20:52:40 -0700 Sarah Newman <srn@prgmr.com> wrote: >> On 7/7/20 8:13 PM, Ben Hutchings wrote: >>> Control: reassign -1 src:linux >>> Control: tag -1 moreinfo >>> >>> On Tue, 2020-07-07 at 17:30 -0700, Sarah Newman wrote: >>>> Package: linux-signed-amd64 >>>> Version: 4.19.0-9-amd64 >>>> >>>> We've had two separate reports now of debian buster users running >>>> 4.19.0-9-amd64 who experienced serious file system corruption. >>> >>> Which version? (I.e. what does "uname -v" or >>> "dpkg -s linux-image-4.19.0-9-amd64" say?) >>> >>>> - Both were using ext3 >>>> - Both are running Xen HVM, but I do not have reason to believe this to be related >> >> [...] > > I have servers which run 4.19.118-2 as dom0 kernel and a Xen 4.11.4-1 > rebuild for Buster. > > One example is a smallish 6-server cluster that got a reboot cycle 48 > days ago. > > It contains a few heavily loaded domUs with 4.19.118 or 4.19.131 based > kernels. > > No problems or disk corruption or anything is seen yet. dom0 filesystem > is ext4, domUs use a mix of ext4 and btrfs (over iscsi). So, no ext3 > anywhere. > > We haven't got bug reports against Debian Xen packages in the BTS about > this. > > I have not yet tried to make an ext3 fs on a block device in a test domU > and then have it do things with the fs and reboot it now and then. If > wanted, I can do that and see if there's any problem after a week or > two. Just to add chaos to help correlating. > > FWIW, > Hans > We've had 9 reports of users running 4.19.0-9-amd64 total, only 2 with ext3, no uptimes longer than maybe 5 weeks for the ext3 + 4.19.0-9-amd64 users. No more reported failures. Our attempts to reproduce so far have not been successful, but that might be because we were running a debug kernel build and I think there may have been a deadlock in between depot_lock and console_owner which killed the tests. I'm not sure what the next steps are here, but it sounds like ext4 has not shown any problems. --Sarah
[toc] | [prev] | [next] | [standalone]
| From | Sarah Newman <srn@prgmr.com> |
|---|---|
| Date | 2020-08-19 07:10 +0200 |
| Subject | Bug#964494: Info received (Bug#964494: File system corruption with ext3 + kernel-4.19.0-9-amd64) |
| Message-ID | <AFowh-7fb-5@gated-at.bofh.it> |
| In reply to | #67481 |
We haven't had any further reports of file system corruption. I would guess that converting to EXT4 is sufficient to avoid the issue.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web