qemu-system-ppc64 easily cause file corruption

Bug #1289898 reported by wzis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Incomplete
Undecided
Unassigned

Bug Description

the qemu-system-ppc64 is used to run RHEL5.9 for IBM Power on RHEL 5.3.
Previously I was using QEMU 1.5.x for several months with no problem. But after the RHEL 5.3 host damaged, and rebuilt, now I tried both QEMU 1.6.2 and QEMU 1.7.0, found both can easily cause file corruptions. Symptoms:

* using scp to transfer a tar.bz file from the RHEL 5.3 host to the RHEL 5.9 PPC VM, found the size is correct, but the content is corrupted from the middle of the 90+ MB file. re-transfer again, got a correct file. But after untar, found some extracted files corrupted.
The extracted file corruption happened several times, and also the filesystem in the VM had corrupted several times, had to restore the boot image to recover.

Tags: ppc critical
wzis (wzis)
description: updated
wzis (wzis)
description: updated
Revision history for this message
Paolo Bonzini (bonzini) wrote :

Hi, any chance you could try the latest snapshot from git? It has a lot of PPC64 changes. Also, please pass your QEMU command line.

Revision history for this message
wzis (wzis) wrote :

I used the following way to start the VM:

#!/bin/bash
ifconfig -a|grep tap0 >/dev/null 2>&1 || qemu-ifup tap0

qemu-system-ppc64 -hda ppcrhel5.img -cpu POWER7 -machine type=pseries,usb=off -m 768 -nographic -net nic -net tap,ifname=tap0,script=no
qemu-ifdown tap0

Revision history for this message
wzis (wzis) wrote :

I found a CentOS 6.4 machine which has QEMU 1.5.3, and copied the ppcrhel5.img to that machine, and tested, found it's reliable, and no such file and filesystem easy corruption issue. So, it's the 1.6.2 and 1.7.0 have the problem.

Revision history for this message
wzis (wzis) wrote :

I can't test from git: on one box with git, it failed for the pixman missing. and the RHEL 5.3 doesn't have git.

Revision history for this message
Peter Maydell (pmaydell) wrote : Re: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

On 10 March 2014 10:00, wzis <email address hidden> wrote:
> I can't test from git: on one box with git, it failed for the pixman
> missing

Did you try the git submodule command that configure
suggests when it can't find pixman? That will pull
in and build a local copy of pixman for QEMU.

thanks
-- PMM

Revision history for this message
Paolo Bonzini (bonzini) wrote :

Also, RHEL5 does have git in the EPEL repository.

Revision history for this message
wzis (wzis) wrote : RE: [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

On my RHEL 5.3 box, there are too many problems to get git work. And on the CentOS 6.4 it has many problem to get pixman, so I just can't test the latest qemu unless you also put the pixman in as 1.7.0 does.

> Date: Mon, 10 Mar 2014 10:53:48 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption
>
> Also, RHEL5 does have git in the EPEL repository.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1289898
>
> Title:
> qemu-system-ppc64 easily cause file corruption
>
> Status in QEMU:
> New
>
> Bug description:
> the qemu-system-ppc64 is used to run RHEL5.9 for IBM Power on RHEL 5.3.
> Previously I was using QEMU 1.5.x for several months with no problem. But after the RHEL 5.3 host damaged, and rebuilt, now I tried both QEMU 1.6.2 and QEMU 1.7.0, found both can easily cause file corruptions. Symptoms:
>
> * using scp to transfer a tar.bz file from the RHEL 5.3 host to the RHEL 5.9 PPC VM, found the size is correct, but the content is corrupted from the middle of the 90+ MB file. re-transfer again, got a correct file. But after untar, found some extracted files corrupted.
> The extracted file corruption happened several times, and also the filesystem in the VM had corrupted several times, had to restore the boot image to recover.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1289898/+subscriptions

Revision history for this message
wzis (wzis) wrote : RE: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption

Yes, I tried that, but it failed due to some php component missing.

> Date: Mon, 10 Mar 2014 10:45:34 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: Re: [Qemu-devel] [Bug 1289898] Re: qemu-system-ppc64 easily cause file corruption
>
> On 10 March 2014 10:00, wzis <email address hidden> wrote:
> > I can't test from git: on one box with git, it failed for the pixman
> > missing
>
> Did you try the git submodule command that configure
> suggests when it can't find pixman? That will pull
> in and build a local copy of pixman for QEMU.
>
> thanks
> -- PMM
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1289898
>
> Title:
> qemu-system-ppc64 easily cause file corruption
>
> Status in QEMU:
> New
>
> Bug description:
> the qemu-system-ppc64 is used to run RHEL5.9 for IBM Power on RHEL 5.3.
> Previously I was using QEMU 1.5.x for several months with no problem. But after the RHEL 5.3 host damaged, and rebuilt, now I tried both QEMU 1.6.2 and QEMU 1.7.0, found both can easily cause file corruptions. Symptoms:
>
> * using scp to transfer a tar.bz file from the RHEL 5.3 host to the RHEL 5.9 PPC VM, found the size is correct, but the content is corrupted from the middle of the 90+ MB file. re-transfer again, got a correct file. But after untar, found some extracted files corrupted.
> The extracted file corruption happened several times, and also the filesystem in the VM had corrupted several times, had to restore the boot image to recover.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1289898/+subscriptions

Revision history for this message
wzis (wzis) wrote :

and lots of dependency issue .

Revision history for this message
wzis (wzis) wrote :

After got qemu 2.3.0, I tested on CentOS6.6, the qemu-system-ppc64 also causes filesystem corruption for the big endian RHEL5.9 for power. So this should confirm the qemu for ppc has bug from at least 1.7 onward.

Revision history for this message
wzis (wzis) wrote :

And seems no developer cares about this issue.

Revision history for this message
Thomas Huth (th-huth) wrote :

Is this the same issue as bug https://bugs.launchpad.net/qemu/+bug/1463812 ? If so, I think we should close one of the two tickets - no need to track an issue twice.

tags: added: ppc
Thomas Huth (th-huth)
Changed in qemu:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.