-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can’t mount XFS filesystem from a partition after upgrade to 4.2 #9293
Comments
Using the same setup, I haven't been able to reproduce this problem.
Can you post the exact dom0 commands? The
Odd. Are you by any chance involving dm-integrity somehow, especially |
I apologize for the glibness of the steps to reproduce. I partitioned this drive quite a while ago, so I don't have the exact commands I ran. It was something along the lines of using
to format the drive inside the VM. This is the same SSD that holds dom0's root and boot (root is btrfs, encrypted of course; in this case LUKS2 As far as commands I use to attempt to mount the drive: dom0
ethereum
Then I can detach the volume from the ethereum VM, shut it down, and back in dom0 run:
As implied by the commands above, this is just a bare partition that has been formatted XFS. No RAID. No LUKS. No integrity. And for the record, I get the same behavior on Fedora 38, Fedora 39, and Debian 12. |
Are there any dom0 kernel messages during the period where you are attaching the partition and attempting to mount it inside the VM? I also wonder if it's possible to take XFS out of the equation: If you attach the partition and run something like |
so it appears to be XFS-specific and for what it's worth, shasum-ing the first 100M of the partition in dom0 returns the same hash |
The only logline in dom0 dmesg that appears during the process is (sorry hand copied):
which seems uninteresting |
This is so intriguing! I'm out of ideas though :( Maybe try the linux-xfs mailing list? |
Apparently I'm now experiencing the issue myself: A read error at sector 0 happening only when I attempt to mount the attached block device, but not otherwise. However my block device contains an ext4 filesystem instead of XFS. This has occurred almost all the time with kernel-latest-qubes-vm (6.9.4 and 6.9.2). I haven't been able to reproduce it with kernel-qubes-vm (6.6.33) so far. |
My source device in dom0 is a loop device with 4096 byte logical+physical block size, which in the failing case is attached to the VM with 512 byte logical+physical blocks. Can you try this in your setup (substituting your NVMe device for my
|
The discrepancy is due to the read during the mount attempt happening with direct I/O turned on. I also get it for |
Kernel regression then? |
Yeah, last good one appears to be 6.8.8-1. Unfortunately kernel-latest 6.9.2-1 is already in stable :( |
so that's different 🤔
so that's different as well EDIT: I get the same error in dom0 with |
Oh wait. I got ahead of myself and downgraded the troublesome VM to 6.8.8-1. With the vm on 6.9.2-1, I get:
|
What about adding bs=4096 ? Does it change anything?
…--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
|
Thank God 😆 There were 5 commits to |
Thanks @rustybird ! I've forwarded the info to relevant maintainers: https://lore.kernel.org/xen-devel/Znl5FYI9CC37jJLX@mail-itl/T/#u |
@rustybird @duncancmt the above linked thread has a proposed fix from Christoph Hellwig already, care to try (and preferably report back in the email thread)? |
Welp, I can't even get builderv2 to download the repo (there's a different number of missing bytes every time):
Maybe I can just build the xen_blkfront module manually somehow. Edit: Managed to download the repo and everything, it's building Edit 2: The patch works: https://lore.kernel.org/xen-devel/Znndj9W_bCsFTxkz@mutt/ |
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
Or update dom0 via Qubes Manager. |
Qubes OS release
4.2.1
Brief summary
Prior to upgrading to 4.2, I was able to mount a partition inside a VM. Now I am not. This is a separate partition on the same NVMe drive as my Qubes BTRFS root. Surprisingly, the partition mounts just fine in dom0.
https://forum.qubes-os.org/t/cant-mount-xfs-filesystem-from-a-partition-after-upgrade-to-4-2/26809
Steps to reproduce
Create partition. Format as XFS. Attempt to mount in a VM
Expected behavior
It should mount
Actual behavior
Error thrown
The text was updated successfully, but these errors were encountered: