|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] how to run fsck for a crashed domU?
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
|
|
|
|
|