| Summary: | In RHEL5.10 guest, the MD5 value of the file saved in libiscsi data disk is changed after cut off the host power. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | huiqingding <huding> |
| Component: | qemu-kvm | Assignee: | Paolo Bonzini <pbonzini> |
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | acathrow, areis, hhuang, huding, juzhang, knoel, pbonzini, virt-maint |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-21 14:58:01 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: | |
|
Description
huiqingding
2013-12-04 08:04:15 UTC
sync may not be enough. Try using virtio-scsi and "sync; sg_sync /dev/sdX". (In reply to Paolo Bonzini from comment #2) > sync may not be enough. Try using virtio-scsi and "sync; sg_sync /dev/sdX". Hi Huiding, Could you please have a try and update the testing result in the bz? Best Regards, Junyi (In reply to Paolo Bonzini from comment #2) > sync may not be enough. Try using virtio-scsi and "sync; sg_sync /dev/sdX". Hello, Paolo I test RHEL7.0 guest using virtio-blk and virtio-scsi. Not hit this bug. Since the kernel of RHEL5.10 has not the driver of virtio-scsi, I cannot test this bug using virtio-scsi. On virtio-blk you can replace sg_sync /dev/sdX with this C program:
#include <fcntl.h>
#include <unistd.h>
int main(int argc, char **argv)
{
if (argc == 1) return 1;
int fd = open(argv[1], O_RDWR);
fsync(fd);
}
(In reply to Paolo Bonzini from comment #5) > On virtio-blk you can replace sg_sync /dev/sdX with this C program: > > #include <fcntl.h> > #include <unistd.h> > > int main(int argc, char **argv) > { > if (argc == 1) return 1; > int fd = open(argv[1], O_RDWR); > fsync(fd); > } Hello, Paolo I use the above C program to sync my virtio-blk device. But the MD5 values are also different. I think this is a rhel5 kernel bug. |