Cannot mount ext4 fs with orphan_file as read-only

Bug #2023244 reported by Jeffery To
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm using Ubuntu 23.04 with lvm. I have a backup script where it takes a snapshot of the file system, mounts the snapshot as read-only, then backs up from the mounted snapshot.

I recently upgraded my hard disk and created a new ext4 file system on the new disk with the orphan_file feature before transferring my files. (I booted into SystemRescue 10.01 from a USB drive to do this.)

Now my backup script fails because it cannot mount the snapshot as read-only. When I try to mount the snapshot manually I get this error message:

mount: /media/backup: mount(2) system call failed: Structure needs cleaning.
       dmesg(1) may have more information after failed mount system call.

Checking dmesg, I see this:

[ 149.810442] EXT4-fs (dm-6): write access unavailable, skipping orphan cleanup
[ 149.810463] EXT4-fs (dm-6): recovery complete
[ 149.810472] EXT4-fs error (device dm-6): ext4_mark_recovery_complete:6134: comm mount: Orphan file not empty on read-only fs.
[ 149.811785] EXT4-fs (dm-6): mount failed

I have booted into SystemRescue to run e2fsck on my file system but the error persists.
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jeff 3019 F.... wireplumber
 /dev/snd/seq: jeff 3009 F.... pipewire
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 23.04
HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap
InstallationDate: Installed on 2010-10-17 (4616 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: LENOVO 3626PL2
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.2.0-20-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash acpi_osi=! "acpi_osi=Windows 2009" intel_iommu=off zswap.enabled=1 vt.handoff=7
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-20-generic N/A
 linux-backports-modules-6.2.0-20-generic N/A
 linux-firmware 20230323.gitbcdcfbcf-0ubuntu1.1
Tags: lunar
Uname: Linux 6.2.0-20-generic x86_64
UpgradeStatus: Upgraded to lunar on 2023-05-02 (36 days ago)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 10/11/2012
dmi.bios.release: 1.64
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET70WW (1.40 )
dmi.board.name: 3626PL2
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.ec.firmware.release: 1.21
dmi.modalias: dmi:bvnLENOVO:bvr6QET70WW(1.40):bd10/11/2012:br1.64:efr1.21:svnLENOVO:pn3626PL2:pvrThinkPadX201:rvnLENOVO:rn3626PL2:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:sku:
dmi.product.family: ThinkPad X201
dmi.product.name: 3626PL2
dmi.product.version: ThinkPad X201
dmi.sys.vendor: LENOVO

Revision history for this message
Jeffery To (jefferyto) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected lunar
description: updated
Revision history for this message
Jeffery To (jefferyto) wrote : CRDA.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : IwConfig.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : Lspci.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : Lspci-vt.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : Lsusb.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : Lsusb-t.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : Lsusb-v.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : ProcEnviron.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : ProcModules.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : RfKill.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : UdevDb.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : WifiSyslog.txt

apport information

Revision history for this message
Jeffery To (jefferyto) wrote : acpidump.txt

apport information

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeffery To (jefferyto) wrote :

I added the noload mount option and now the mount succeeds with no error. Not sure if the described issue is expected behaviour (with the noload/norecovery mount option expected to be used) or if it is still an issue (I lean towards the latter).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.