|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] how to run fsck for a crashed domU?
Alexander Hoßdorf wrote:
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
______________________________________________
Awesome, thanx!!!
I got as far as seeing the partitions, but can only run e2fsck on one of
them:
lvscan
ACTIVE '/dev/backup/pluto' [20.00 GB] inherit
ACTIVE '/dev/backup/bck' [40.00 GB] inherit
ACTIVE '/dev/backup/anya_zanet' [7.00 GB] inherit
inactive '/dev/VolGroup00/LogVol00' [9.34 GB] inherit
inactive '/dev/VolGroup00/LogVol01' [544.00 MB] inherit
ACTIVE '/dev/sysvg/root' [2.00 GB] inherit
ACTIVE '/dev/sysvg/usr' [8.00 GB] inherit
ACTIVE '/dev/sysvg/var' [8.00 GB] inherit
ACTIVE '/dev/sysvg/home' [53.38 GB] inherit
ACTIVE '/dev/sysvg/tmp' [1.00 GB] inherit
There's no VolGroup00 in /dev/ - but I do see /dev/mapper/loop4p1 &
/dev/mapper/loop4p2
Running e2fsck on it seems ok,
# e2fsck /dev/mapper/loop4p1
e2fsck 1.39 (29-May-2006)
/boot: clean, 45/26104 files, 22630/104388 blocks
Yet, when booting up, I still get the error :(
[/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.
--
Kind Regards
Rudi Ahlers
Check out my technical blog, http://blog.softdux.com for Linux or other
technical stuff
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
Re: [Xen-users] how to run fsck for a crashed domU?, Javier Guerra
- Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
- [Xen-users] Multi-homed nighmare, Venefax
- Re: [Xen-users] how to run fsck for a crashed domU?,
Rudi Ahlers <=
- Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
- Re: [Xen-users] how to run fsck for a crashed domU?, Rudi Ahlers
- Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
- Re: [Xen-users] how to run fsck for a crashed domU?, Rudi Ahlers
- Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
- Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
- Re: [Xen-users] how to run fsck for a crashed domU?, Rudi Ahlers
- Re: [Xen-users] how to run fsck for a crashed domU?, Alexander Hoßdorf
- Re: [Xen-users] how to run fsck for a crashed domU?, Rudi Ahlers
- Re: [Xen-users] how to run fsck for a crashed domU?, Rudi Ahlers
|
|
|
|
|