X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,MIME_8BIT_HEADER autolearn=no version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q4IMlOlG255947 for ; Fri, 18 May 2012 17:47:24 -0500 X-ASG-Debug-ID: 1337381243-04bdf034ef8197c0001-NocioJ Received: from mail.sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id dar3lKfnq3eOE4Gp for ; Fri, 18 May 2012 15:47:23 -0700 (PDT) X-Barracuda-Envelope-From: sandeen@sandeen.net X-Barracuda-Apparent-Source-IP: 63.231.237.45 Received: from liberator.sandeen.net (liberator.sandeen.net [10.0.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sandeen.net (Postfix) with ESMTP id 25EE24943560; Fri, 18 May 2012 17:47:23 -0500 (CDT) Message-ID: <4FB6D17A.7070408@sandeen.net> Date: Fri, 18 May 2012 17:47:22 -0500 From: Eric Sandeen User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Niccol=F2_Belli?= CC: xfs@oss.sgi.com Subject: Re: How to recover data from an xfs partition References: <4FAE9DBF.1090505@linuxsystems.it> <20120518143143.GN16099@sgi.com> <4FB66430.9040202@linuxsystems.it> <4FB68AF6.1090303@sandeen.net> <4FB6B7AB.8030405@linuxsystems.it> X-ASG-Orig-Subj: Re: How to recover data from an xfs partition In-Reply-To: <4FB6B7AB.8030405@linuxsystems.it> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: sandeen.net[63.231.237.45] X-Barracuda-Start-Time: 1337381243 X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-Spam-Score: 0.41 X-Barracuda-Spam-Status: No, SCORE=0.41 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.3 tests=SUBJECT_FUZZY_TION X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.97338 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.41 SUBJECT_FUZZY_TION Attempt to obfuscate words in Subject: On 5/18/12 3:57 PM, Niccolò Belli wrote: > Il 18/05/2012 19:46, Eric Sandeen ha scritto: >> the file backing it - what was that stored on? > > It was a raw image created with dd and stored on an SSD (ext4). Some > of the virtual machines were on traditional hard disks instead > (ext4). > > Only the running virtual machines got damaged, the main filesystems > are perfect. > >> What it was that did the scribbling > > Rebooting. A simple, stupid reboot after upgrading Xen. While > rebooting the system I got some kind of kernel panic and I had to use > magic sysrq keys (remount read-only, sync, reboot). Well - somehow the first sector of the xfs image got junk written into it... hard to say how that happened, but the magic number lives in the first sector of the xfs image hosted on ext4, and it was junk post-reboot. I have never seen xfs corrupt _itself_ this way. TBH I'd be as likely to blame the SSD, as anything. But you also have to have all of the data integrity bits set up properly all along the virt stack to survive a panic or power loss w/o corruption after the fact. -Eric