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: Alexander Hoßdorf <xen-users@xxxxxxxxxxx>
Subject: Re: [Xen-users] how to run fsck for a crashed domU?
From: "Rudi Ahlers" <Rudi@xxxxxxxxxxx>
Date: Fri, 1 Aug 2008 16:21:54 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, Javier Guerra <javier@xxxxxxxxxxx>
Delivery-date: Fri, 01 Aug 2008 07:22:07 -0700
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>
Reply-to: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
What do I use if I don't have X / KDE installed? Can I run kpart without X?

Kind regards
Rudi Ahlers
CEO, SoftDux
Office: 087 805 9573
Cell: 082 554 7532
www.SoftDux.com

- original message -
Subject:        Re: [Xen-users] how to run fsck for a crashed domU?
From:   Alexander Hoßdorf <xen-users@xxxxxxxxxxx>
Date:           01/08/2008 14:11

okay, I got it now...

step by step...

1. losetup /dev/loop4  /home/vm/vm01.img
# This mounts the image file as imaginary physical to /dev/loop4

2. kpartx -va /dev/loop4
# This creates a device map with partitions in vm01.img in /dev/mapper

3. vgscan
# This should discover your lvm VGs from Image.

4. lvscan
# Should list the ACTIVE  volumes.

5. Now you can do e2fsck to the volumes listet by lvscan.
But be sure to e2fsck only the LVs from yout Image if you're using lvm 
in Dom0, too.

Please give feedback if this worked for you.


Cheers,
Alex


Javier Guerra schrieb:
> On Fri, Aug 1, 2008 at 6:51 AM, Rudi Ahlers <Rudi@xxxxxxxxxxx> wrote:
>   
>> So, how can I run fsck on that file system?
>>
>> I have tried to mount /home/vm/vm01.img - but it fails:
>>
>> # mount -o loop /home/vm/vm01.img /mnt/vm01/
>> mount: you must specify the filesystem type
>>     
>
> it might be easier to use another DomU, and add your problem image as
> an extra HD.
>
>
>   


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


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