[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.