Can't start VM - Input/output error - TASK ERROR: start failed: QEMU exited with code 1

mikegodin23

New Member
Nov 17, 2023
3
0
1
Hi.
Since this morning I can´t start a VM. I get this error:

kvm: -drive file=/mnt/pve/BACKUP_DADOS/images/103/vm-103-disk-0.raw,if=none,id=drive-sata0,discard=on,format=raw,cache=none,aio=io_uring,detect-zeroes=unmap: Could not open '/mnt/pve/BACKUP_DADOS/images/103/vm-103-disk-0.raw': Input/output error
TASK ERROR: start failed: QEMU exited with code 1

________________________

root@pve:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 4.7M 1.6G 1% /run
/dev/mapper/pve-root 94G 25G 65G 28% /
tmpfs 7.8G 51M 7.8G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
efivarfs 192K 33K 155K 18% /sys/firmware/efi/efivars
/dev/nvme0n1p2 1022M 344K 1022M 1% /boot/efi
/dev/sdc1 2.7T 847G 1.8T 33% /mnt/pve/BACKUP_DADOS
DISCO2 10G 128K 10G 1% /DISCO2
/dev/fuse 128M 44K 128M 1% /etc/pve
/dev/sdb1 1007G 56K 956G 1% /mnt/pve/DISCO1
tmpfs 1.6G 0 1.6G 0% /run/user/0


Can anyone please help me?
Thanks.

Miguel
 
Last edited:
Hi @mikegodin23 , welcome to the forum.

Could not open '/mnt/pve/BACKUP_DADOS/images/103/vm-103-disk-0.raw': Input/output error
The message does mean that there was an IO error trying to open the file. The error likely comes from the Kernel and can be caused by a few things:
- actual disk read error
- slow enough disk that the IO gives up
- bad disk interface (usb/etc)
- less likely - io_uring complication

You can try a few things:
- read the whole file: dd if=[filepath/name] of=/dev/null
- move the file to another location, change the config and try to start
- check the hardware stats of the disk
- check the "dmesg"

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hi @mikegodin23 , welcome to the forum.


The message does mean that there was an IO error trying to open the file. The error likely comes from the Kernel and can be caused by a few things:
- actual disk read error
- slow enough disk that the IO gives up
- bad disk interface (usb/etc)
- less likely - io_uring complication

You can try a few things:
- read the whole file: dd if=[filepath/name] of=/dev/null
- move the file to another location, change the config and try to start
- check the hardware stats of the disk
- check the "dmesg"

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Hi @bbgeek17
I'm trying this now.
I'll post the output.
Thanks
 
Hi @bbgeek17 and forum. Good night.
I was getting more and more errors... and decided to "build " another V, for the same purpose, with a different structure and using other directories/ZFS (local-lvm for system and ZFS for data. I powered off the previews VM until I get everything settle on the new one.
Later I would like to "free" the directory that was having trouble (BACKUP_DADOS), try to remove it and use the disk space.
Can anyone help me to know/verify if is safe to remove it or see what is using it, before removal?
Thanks
Miguel

This morning I received the following warning:

"This message was generated by the smartd daemon running on:

host name: pve
DNS domain: local

The following warning/error was logged by the smartd daemon:

Device: /dev/sdc [SAT], 1 Currently unreadable (pending) sectors

Device info:
MB3000GCVBT, S/N:WCC130652162, WWN:5-0014ee-2087f386f, FW:HPG3, 3.00 TB"


------------
root@pve:~# smartctl -a /dev/sdc
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.8.12-5-pve] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: MB3000GCVBT
Serial Number: WCC130652162
LU WWN Device Id: 5 0014ee 2087f386f
Firmware Version: HPG3
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database 7.3/5319
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Jan 9 20:25:38 2025 WET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (34260) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 371) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x703d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 199 198 051 Pre-fail Always - 9
3 Spin_Up_Time 0x0027 224 223 021 Pre-fail Always - 7791
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 133
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 3
7 Seek_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 038 038 000 Old_age Always - 45468
10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0033 100 253 051 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 59
180 Unknown_HDD_Attribute 0x002f 200 200 100 Pre-fail Always - 0
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 097 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 093 093 000 Old_age Always - 7
188 Command_Timeout 0x0032 093 093 000 Old_age Always - 7
190 Airflow_Temperature_Cel 0x0022 076 044 045 Old_age Always In_the_past 24
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 56
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 82
194 Temperature_Celsius 0x0022 128 096 000 Old_age Always - 24
196 Reallocated_Event_Count 0x0033 200 200 140 Pre-fail Always - 3
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 
Last edited: