Public bug reported:

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

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: apport-collected lunar

** Tags added: apport-collected lunar

** Description changed:

  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.
+ 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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2023244

Title:
  Cannot mount ext4 fs with orphan_file as read-only

Status in linux package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2023244/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to