Bug 1600789
| Summary: | qemu-system-x86_64: Could not write to allocated cluster for streamOptimized | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Haigang <lihaigang1995> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED CANTFIX | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | lihaigang1995, ptoscano, rbalakri | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-07-13 09:34:26 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Haigang
2018-07-13 03:55:45 UTC
Please add ‘guestmount -v -x’ options to the failing command and attach the complete output to the bug. Created attachment 1458680 [details]
log file
I found this machine enbale selinux, Is it related to selinux?
SELINUX=enforcing
If so, can I turn it off via libguestfs?
sorry , this machine is centos7.vmdk guest os No, the problem is that the qemu driver for VMDK does not
support writes to the VMDK subformat (streamOptimized). This is
a bug / shortcoming in qemu.
The only workaround is to convert to a simpler format, eg. raw.
qemu-system-x86_64: Could not write to allocated cluster for streamOptimized
qemu-system-x86_64: Could not write to allocated cluster for streamOptimized
qemu-system-x86_64: Could not write to allocated cluster for streamOptimized
[ 3.628276] sd 2:0:0:0: [sda] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 3.632265] sd 2:0:0:0: [sda] tag#2 Sense Key : Aborted Command [current]
[ 3.632265] sd 2:0:0:0: [sda] tag#2 Add. Sense: I/O process terminated
[ 3.632265] sd 2:0:0:0: [sda] tag#2 CDB: Write(10) 2a 00 01 70 32 e4 00 00 48 00
[ 3.632265] print_req_error: I/O error, dev sda, sector 24130276
[ 3.632265] sd 2:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 3.632265] sd 2:0:0:0: [sda] tag#1 Sense Key : Aborted Command [current]
[ 3.632265] sd 2:0:0:0: [sda] tag#1 Add. Sense: I/O process terminated
[ 3.632265] sd 2:0:0:0: [sda] tag#1 CDB: Write(10) 2a 00 01 70 28 e4 00 0a 00 00
[ 3.632265] print_req_error: I/O error, dev sda, sector 24127716
[ 3.632265] sd 2:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 3.632265] sd 2:0:0:0: [sda] tag#0 Sense Key : Aborted Command [current]
[ 3.632265] sd 2:0:0:0: [sda] tag#0 Add. Sense: I/O process terminated
[ 3.632265] sd 2:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 01 70 23 2c 00 05 b8 00
[ 3.632265] print_req_error: I/O error, dev sda, sector 24126252
[ 3.632265] XFS (dm-1): xfs_do_force_shutdown(0x1) called from line 1217 of file /build/linux-jIx23a/linux-4.15.11/fs/xfs/xfs_buf.c. Return address = 0x00000000834a9276
[ 3.731935] XFS (dm-1): I/O Error Detected. Shutting down filesystem
[ 3.737333] XFS (dm-1): Please umount the filesystem and rectify the problem(s)
[ 3.743614] XFS (dm-1): metadata I/O error: block 0x110132c ("xlog_bwrite") error 5 numblks 8192
[ 3.751021] XFS (dm-1): failed to locate log tail
[ 3.755130] XFS (dm-1): log mount/recovery failed: error -5
[ 3.759962] XFS (dm-1): log mount failed
You might try upgrading to a later version of qemu if one is available for Debian. Closing this as CANTFIX. Libguestfs just uses the capabilities of qemu. In this case qemu cannot write to a particular VMDK subformat, so there's nothing we can do about it. I suggest opening a bug about this in the qemu bug tracker. Yes, this is indeed a problem with qemu. Thank you |