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: Rudi Ahlers <Rudi@xxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] how to run fsck for a crashed domU?
From: Alexander Hoßdorf <xen-users@xxxxxxxxxxx>
Date: Fri, 01 Aug 2008 16:34:57 +0200
Cc:
Delivery-date: Fri, 01 Aug 2008 07:35:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48931D1A.9000205@xxxxxxxxxxx>
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: <LY2rplGxyCjS.W0mDJnCq@xxxxxxxxxxxxxxxx> <48931D1A.9000205@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)
Alexander Hoßdorf schrieb:
yes, you can. I don't have X, too.
The name kpartx confuses... it's a tool for console.

Rudi Ahlers schrieb:
What do I use if I don't have X / KDE installed? Can I run kpart without X?

And only for Information:
There is another way... Ther is a patch aviable for "loop" module,
so that it can use partitions directly.

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

__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3317 (20080801) __________

E-Mail wurde gepr�ft mit ESET NOD32 Antivirus.

http://www.eset.com





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

__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3317 (20080801) __________

E-Mail wurde gepr�ft mit ESET NOD32 Antivirus.

http://www.eset.com





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