-
Notifications
You must be signed in to change notification settings - Fork 420
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
mkdir: cannot stat ‘/mnt/hgfs’: Input/output error during dnf update to 12.0.5 on Fedora 36 guest #594
Comments
EIO (Input/Output Error) usually points to a hardware failure, such as a bad disk or disk controller. |
Sorry if I’m not understanding what you are pointing to, but the directory path already existed and was mounted during the |
The dnf installer isn't part of open-vm-tools, it's provided by Fedora, so we don't know exactly what it's doing, but from the error message it appears that it was running "mkdir /mnt/hgfs" to create the hgfs mount point. There are a few possible scenarios, depending on when during the upgrade the error occurred:
The error message says that the stat system call failed, so the mkdir command is probably checking whether the mount point already exists prior to creating it. The error code corresponds to EIO, which is an input/out error. That error is usually from a hardware issue, eg. something like a bad disk block or a faulty disk controller, though it's also possible that if things were in state (3) above, something in the hgfs file system stack would be broken. For both (1) and (2), you can check whether you see the same EIO error by running "sudo mkdir /mnt/hgfs". In both cases the expected behavior is that mkdir reports the directory already exists with no message about an input/output error. I'm not sure how state (1) could generate the stat EIO error, since if hgfs is up and running, then the stat syscall should succeed and report the directory already exists. I think you've already confirmed that by running the stat command, but the command that is failing is "mkdir", so you should consider trying that. Running mkdir should be non-destructive if the directory is already present. If there is an underlying disk error in the root file system, then state (2) might report stat failing with EIO. To check that, you'd need to first unmount hgfs with "sudo umount /mnt/hgfs". I think that is a potential scenario, eg. during the update hgfs was unmounted and stopped, and the installer was (re)creating the mount point. If that's the case, then then problem could be hidden while hgfs is mounted, because when it's running, as soon as the file system code hits the mount point, it transfers control to hgfs, so you won't see the underlying error in the root file system. If you check this, be sure to remount hgfs after you're done If checking state (2) generates an EIO error, that might indicate a hardware issue with the root drive. Since the error is observed inside a VM, that would suggest an issue with the vmdk file on the host. Running a disk verification utility inside the VM State (3) should not happen, but there could be an installer bug in the upgrade path. There's no simple way to recreate that scenario, but if (1) and (2) both return that the directory exists and don't generate the stat EIO error, then it points to an installer bug as being the problem. If you want to check for that, I think the best you can do is to completely remove open-vm-tools, make sure the mount point doesn't exist, and then reinstall open-vm-tools. If there's no stat error, then it's probably a bug in the upgrade path where it's not unmounting /mnt/hgfs before it stops the hgfs service. That's not a serious issue, since hgfs is not expected to work while the upgrade is being done, and you've already confirmed that stat and hgfs are working after the upgrade completes. Hope this helps explain it. |
The Fedora packaging of open-vm-tools has not changed much over the past year. I believe that there was a change in the 11.3.0 packaging to improve the conditional around the "mkdir -p /mnt/hgfs" in the post install scriptlet. Did you experience any problems using the Shared Folders following the update? I will try to reproduce the problem internally. |
It actually didn't do anything negative. My shared folder mount already existed was mounted before the |
@hermidalc Thanks for the update. |
On the next |
This has gone away and is fixed now in version |
Describe the bug
During
dnf update
to12.0.5-1.fc36.x86_64
I get this error even though my/mnt/hgfs
is there and I can stat it:Not sure if this is a big deal or not.
Reproduction steps
Expected behavior
No errors during
dnf update
Additional context
No response
The text was updated successfully, but these errors were encountered: