Hoping White
2011-Apr-26 03:20 UTC
[Xen-users] guest os failed after resize file base image
Hi, all I have tried to resize my vm image which is file based using lvm because my guest os is centos5.3. After all was done, I tried "xm create" and failed with the following message: Scanning logical volumes Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 Activating logical volumes device-mapper: table: device 202:2 too small for target device-mapper: table: 253:0: linear: dm-linear: Device lookup failed device-mapper: ioctl: error adding target to table device-mapper: reload ioctl failed: Invalid argument 2 logical volume(s) in volume group "VolGroup00" now active 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! My xen version as follows: kernel-xen-2.6.18-238.5.1.el5 xen-3.0.3-120.el5_6.1 xen-libs-3.0.3-120.el5_6.1 I also tried to losetup my resized image on domain0, and mount on domain0, all seems ok. Could someone help me with this? Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2011-Apr-26 04:10 UTC
Re: [Xen-users] guest os failed after resize file base image
2011/4/26 Hoping White <baihaoping@gmail.com>> Hi, all > > I have tried to resize my vm image which is file based using lvm because > my guest os is centos5.3. >How? The best practice when domU is using LVM is NOT to resize the disk image, but add another disk image as additional PV to domU I also tried to losetup my resized image on domain0, and mount on> domain0, all seems ok. > >If you can mount it and all files are there (no corruption/missing files), then the resize should not make a difference. I''d try by using a known-to-work kernel and initrd (possibly by copying from a freshly-installed domU system with LVM). -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users