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

Re: [Xen-users] how to run fsck for a crashed domU?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] how to run fsck for a crashed domU?
From: Andy Burns <lists.xensource.com@xxxxxxxxxxxxxx>
Date: Fri, 01 Aug 2008 13:40:46 +0100
Delivery-date: Fri, 01 Aug 2008 05:41:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080801143023.76laokfo8csw0kgk@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: <20080801135141.mrkyj00vi8888888@localhost> <4892FC66.3010104@xxxxxxxxxx> <4892FDB7.8020609@xxxxxxxxxxxxxx> <4892FEFB.7020206@xxxxxxxxxxx> <20080801143023.76laokfo8csw0kgk@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.16) Gecko/20080708 Lightning/0.8 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0
On 01/08/2008 13:30, Rudi Ahlers wrote:

Okso what do you suggest I do then?

kpartx should make the partition(s) from the img to be visible to the dom0

if any of the partitions is an PV then you probably need a pvscan/vgscan for LVM to pick them up

then you'll probably need to mark the LV active with lvchange -ay

then you can try to mount or fsck it

beware that the /dev/mapper names will usually vary from the device names you use in the domU

I tend to use LVM in the dom0, but not in the domU, it makes life complicted like this when you come to expanding filesystems, and presumably has some sort of (minor) performance hit.


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