From mboxrd@z Thu Jan 1 00:00:00 1970 From: RW Subject: Re: Segfault Date: Fri, 22 Jan 2010 15:45:30 +0100 Message-ID: <4B59BA0A.3070008@tauceti.net> References: <201001192240.17970.r.wimmer@tomorrow-focus.de> <4B56DC1C.9000905@tauceti.net> <229432dd1001220635t5ba74dah982d5e5862035a0@mail.gmail.com> Reply-To: kvm@tauceti.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: KVM mailing list To: Liang Guo Return-path: Received: from tauceti.net ([62.245.250.166]:49317 "EHLO www.tauceti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180Ab0AVOpb (ORCPT ); Fri, 22 Jan 2010 09:45:31 -0500 In-Reply-To: <229432dd1001220635t5ba74dah982d5e5862035a0@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Thanks for the hint but unfortunately every qemu command quits with a segfault with this image: scotty images # qemu-nbd nweb.img Segmentation fault [192749.840652] qemu-nbd[16052]: segfault at 7f88b1382000 ip 0000000000419492 sp 00007fff1e94f710 error 7 in qemu-nbd[400000+31000] It's sad that a segfault of Qemu/KVM can corrupt a whole image while the host itself was running without any problems as the segfault happened. Seems that the data is lost. But thanks again anyway! Robert On 01/22/10 15:35, Liang Guo wrote: > > 2010/1/20 RW > > > > > Is there any chance to get (some) data in the image back? Backup > is a few weeks old :-( > > > > > you may use kvm-nbd or qemu-nbd to present kvm image as a NBD device, so > that you can use nbd-client to access them. eg: > > kvm-nbd /vm/sid1.img > modprobe nbd > nbd-client localhost 1024 /dev/nbd0 > fdisk -l /dev/nbd0 > > -- > Liang Guo > http://bluestone.cublog.cn