-
Notifications
You must be signed in to change notification settings - Fork 45
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
kvdo 6.2.7.17 storage read/write issue with kernel 6.0 from KVM VMs #61
Comments
Hi, Andrea. I apologize for the delay in getting back to you. Our Fedora testing has started using the 6.0.12 kernel at this point, but that’s testing the newer 8.x branch; the 6.2 code is mainly tested on RHEL 8 and its 4.18-based kernels. So I wouldn’t suggest mixing them like this. Also, our testing tends to use file systems or direct I/O and not running VMs atop VDO. All that said, I don’t recall seeing any problems that would likely result in what you’re seeing. If VDO was returning an error in the hypervisor environment, it should’ve logged something to that effect, and you said there were “no significant message[s]” from the hypervisor. So I suspect the SCSI errors are coming from some other source. That doesn’t mean it couldn’t be related to the VDO configuration. I note that the “emulate 512 byte” option is disabled in your VDO device, yet lvremove (at least) was trying to do I/O of 512 bytes. Depending on the flags set in various places, I imagine it might be possible that this size difference could cause an error instead of a read-modify-write sequence. There are a couple of things you could try to see what’s going on: Depending what you’ve got stored in your VDO device, the losetup approach might be the easier way to figure out if the 4k block size is the actual issue. Unfortunately I don’t think the emulate512 option can be modified for an already-created device, at least in the version of the vdo script I looked at. If it’s just a test system and you don’t mind hacking config files directly, you could try changing “logicalBlockSize” in /etc/vdoconf.yml from 4096 to 512, instead of recreating the VDO device. But getting that edit wrong could stop VDO from starting at all... Any of these might give us some insights as to what’s going on with the SCSI errors reported from the guests. Where VDO is reported no problems at all, I doubt it’s anything internal to VDO, and I expect the data is still safe on the volume. |
Hi, just to let you know that probably vdo is not the origin of my problem: I've uninstalled (kmod + vdo) from the system, but problems persist, so it should be something else. Thanks for the feedback and ideas. |
OS Fedora36
Arch x86_64
components from https://copr.fedorainfracloud.org/coprs/rhawalsh/dm-vdo/
modules releases:
After upgrading to kernel 6.0.5-200 or 6.0.7-200, the volume
kvm
created on top of a partition is recognized, but the logical volumes built ontop, that are used as disk for VMs, have some problems.Existing VMs do not boot, fails to proceed to bootloader and if uefi remain stuck at uefi shell.
Trying to create install RHEL7 from scratch in a new VM, it fails at the beginning of the installation, during partitioning/fs creation with:
mkfs.xfs: pwrite64 failed: Input/output error
I checked in the logs from the live iso of the installer and this error from the kernel:
from console I've tried also to delete an lvm - the disk I was installing rhel to was not clean - and if failed:
and the kernel logs:
If I try to create an ext4 filesystem, the command complete successfully (but I haven't tried to do a full installation on a blank disk).
On the physical host/hypervisor, there's no significant message during the guest setup.
Below the kvdo kernel messages at boot:
kernel 6.0.5 boot
If I boot with a 5.19 kernel, everything works fine:
kernel 5.19 boot
And some infos on the VDO volume:
vdoconf.yml
Is this setup supported (kvdo 6.2 on kernel 6.0.x)?
Is it a known bug/limit?
Are data on the volume safe?
The text was updated successfully, but these errors were encountered: