On Mon, Apr 28, 2008 at 2:55 PM, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > Amos Shapira wrote: > > > Any ideas on how can I save this system without re-installing it? > > > > > fsck?
Tried it. It checks out fine. Also the switch to read-only seems to have happened while the system was running. I was doing more tests on this xen guest while rebuilding another xen guest (using an automated script for the other one) and am beginning to suspect that maybe having both of them use the same volume group name might have something to do with it. > > Some types of errors cause the filesystem (if it's root) to be mounted read > only. > > Also, try to mount the filesystem from outside of the Xen guest (i.e. - > from the host). Is it mounted ok from there? Yes. "kpartx -a"/"vgchange -ay .../"mount" works fine. Also force a full filesystem check including bad-block scan. I've since rebuilt the host by snapshotting a "gold" image which uses "main" for the volume group name and renaming the volume group name from "main" to "reecetest" (i.e. unique to that host). I updated everything I could find on the guest's /etc file system (removed /etc/lvm/cache/.cache, moved aside the files under /etc/lvs/backup and /etc/lvm/archive) but still get the following error during Xen boot: Loading xenblk.ko module Registering block device major 202 xvda: xvda1 xvda2 xvdc: xvdc1 Loading dm-mod.ko module device-mapper: ioctl: 4.11.0-ioctl (2006-09-14) initialised: [EMAIL PROTECTED] dm-mirror.ko module Loading dm-zero.ko module Loading dm-snapshot.ko module Scanning and configuring dmraid supported devices Scanning logical volumes Reading all physical volumes. This may take a while... Found volume group "testvg" using metadata type lvm2 Found volume group "reecetest" using metadata type lvm2 Activating logical volumes Volume group "main" not found Creating root device. Mounting root filesystem. mount: could not find filesystem '/dev/root' Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! I.e. it looks like it still looks for "main" VG. I also updated the grub config file (/boot/grub/grub.cnf on CentOS) to use the new VG for the root file system name. Here is the grub file inside the xen guest: default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-53.el5xen) root (hd0,0) kernel /vmlinuz-2.6.18-53.el5xen ro root=/dev/reecetest/root console=xvc0 initrd /initrd-2.6.18-53.el5xen.img Any more ideas? Thanks, --Amos ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]