mitch at bitblock
Apr 16, 2013, 8:01 AM
Post #7 of 10
Presuming the files are recoverable, is there likely any way to recognize them? I guess I will be searching for the virtual disk files themselves which I could add as storage to the replacement virtual machine - on vmware I could find files related to a vm under a folder often named for that vm - the structure wasn't very deep...
Re: Storage recovery question / recommendations
[In reply to]
Is the xen structure similar? I must be using the wrong keywords - but so far I haven't seen at a command promt what or where xen vm files are stored and what they look like so I'm not sure what to expect.
Does anyone have any tips in this regard?
Will post my results whether or not I'm successful.
----- Original Message -----
From: Errol Neal [mailto:eneal [at] businessgrade]
Sent: Tuesday, April 16, 2013 04:48 AM
To: Mitch (Bitblock)
Cc: 'Xen-users [at] lists' <Xen-users [at] lists>
Subject: Re: [Xen-users] Storage recovery question / recommendations
On Tue, 04/16/2013 12:46 AM, "mitch [at] bitblock" <mitch [at] bitblock> wrote:
> I did some reading - on vgcfgbackup / restore / display etc.
> I think I'm still stuck - or I'm not getting it - how would the backup exist - does xen / xcp automatically back up any existing LVM data on a new SR if it sees one there first when it's mounting what it see's as a new drive? Otherwise, the backups I have would only be for the newly re-initialized LVM - meaning the data is still on the drive - or gone. Not in the backups - right?
We aren't talking about backups of data. We are talking about metadata backups of the volume groups(s) themselves.They are created when you make changes to a VG like adding or removing an LV.. So long as actually haven't written any data to the new volume group, then it should be possible to restore the previous layout and logical volumes. You should review each of the files and see which one matches the characteristics of the VG that you are trying to recover.
> Maybe I should restate what happened in case I was unclear... I think I might have been - sorry about that - in trying to be concise I might have oversimplified.
> I installed 1.6 on a machine that had 1.1 - it wasn't an upgrade in the proper sense - it didn't detect the drives in the same order. So I reinstalled. Plus I wanted to break up a different SR (which was one LVM spanning a couple disks into separate SR's).
Well if you didn't upgrade and just reinstalled, also reformatting the root partition, then your are right, you don't have any backups.
> Is there a tool that can extract the details I need from the drive itself? Like a backup of a partition table or "superblock" etc.?
You can try testdisk. I've never used it for lvm recovery, but it's saved my ass for other stuff. Here is an example of someone using it for LVM recovery:
Let me know how it works out..
Xen-users mailing list
Xen-users [at] lists