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: "Grant McWilliams" <grantmasterflash@xxxxxxxxx>
Date: Fri, 1 Aug 2008 09:18:41 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 01 Aug 2008 09:19:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=bN2GFhElOkSSv8Y+mnBIB0mXpVRMpveJTKPMJ/8DyiY=; b=dlLw01ywO6pBQfylQpgeyHjRqF0K9dTC6IWv39trlQONRFxs28mvXfI5A9PcdsrwPl CTY9qwRnZlnjOPQ2YOLoqT2crvkyzKzvhZEGQsbGX8XI/MxTOKk6HkhD7kXkispJ1Qon TCQFIYeB6fiTGMMPSoTzoKBqdVUvnUriPOxUo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=VHJYs5sstmmT6vqG/J+fTDZu1sCOHDZq2TSyS6rHpF0Ts+IE2B1S2uiwC0U4mGegHe P86QmcJa7j4j2S1JhHLUTOH3rxHXdXTEoCTr7dsJ+tfT1w/vegA00Ch6XyYBxj3drlfQ vNm5lRuf/6a6+sfafdEnFEiGV8nfz79UNoJHE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <489336C0.4020006@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: <20080801135141.mrkyj00vi8888888@localhost> <ed123fa30808010909k1ef183acrcc059ff73f505cf0@xxxxxxxxxxxxxx> <489336C0.4020006@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

On Fri, Aug 1, 2008 at 9:16 AM, Alexander Hoßdorf <xen-users@xxxxxxxxxxx> wrote:
You're right ;-)

But it won't kill him, to know how to mount LVM Partitions from DomU in Dom0.



Grant McWilliams schrieb:


   ----snip-----
   Setting up Logical Volume Management:   2 logical volume(s) in
   volume group "VolGroup00" now active
   [  OK  ]
   Checking filesystems
   Checking all file systems.
   [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/VolGroup00/LogVol00
   /dev/VolGroup00/LogVol00 contains a file system with errors, check
   forced.
   /dev/VolGroup00/LogVol00: Inode 67830 has illegal block(s).

   /dev/VolGroup00/LogVol00: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
          (i.e., without -a or -p options)
   [FAILED]

   *** An error occurred during the file system check.
   *** Dropping you to a shell; the system will reboot
   *** when you leave the shell.


   ----snip-----


   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

   --
   Kind Regards
   Rudi Ahlers
   SoftDux CEO

   _______________________________________________
   Xen-users mailing list
   Xen-users@xxxxxxxxxxxxxxxxxxx <mailto:Xen-users@xxxxxxxxxxxxxxxxxxx>

   http://lists.xensource.com/xen-users


Am I missing something? It seems like people like making things more complicated than they are. What's stopping you from doing an fsck from the console within the DomU just like if it were a real machine? It dropped you to a shell so just run fsck on it manually.

Grant McWilliams
------------------------------------------------------------------------


It's definitely better to learn something new but I also live by the idea that the simplest solution is the best.

It's quite strange that the DomU dies after throwing the error. Where does that fault lie? It seems like Xen should keep it running as if it were a real machine.

Grant McWilliams

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