WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] How to xfs_repair a domU image

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] How to xfs_repair a domU image
From: <peter.chiu@xxxxxxxxxx>
Date: Sat, 27 Feb 2010 20:40:29 -0000
Cc: peter.chiu@xxxxxxxxxx
Delivery-date: Sat, 27 Feb 2010 12:41:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4B88EEED.40803@xxxxxxx> <96b40cab1002271048n6a2b94b5n7134cf3305834d22@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acq33cyh0RrKcyG0SxCQqZuIvahqJQAChNtH
Thread-topic: How to xfs_repair a domU image
I would appreciate for some advice on how to recover a broken DomU image.

On an OpenSuse 10.3 (x86-64) server, I am hosting a OpenSuse 10.3 (x86-64) 
guest, using an image file.

The guest os has been running fine for sometime, until recently it suddenly 
reported IO errors to whatever commands one entered.  At that point,  the Guest 
OS would not allow any ssh log in attempts.

I stopped the domU by issuing "xm shutdown guest", and restart it with "xm 
create -c guest".

However it fails to start up with an error:

    Error: Boot loader didn't return any data!


I did try to use lomount:

   lomount -diskimage image-file -partition 1 mnt-pt

but it fails with  

  mount: Structure needs cleaning

Google search on the above error suggests it is an xfs file system error and it 
needs xfs_repair on a usual system with a native disk.

However, xfs_repair does not provide an option to select offset for partition 1.

Any idea how to recover from this situation?

Many thanks.

Peter

--
Scanned by iCritical.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>