Hi, I have a working windows lvm of 1.62GB size. I just do an lvextend +1Gb on it, and then the Guest gets stuck at ''booting from harddisk'' the initial stage. Is there something more I should do? I had tried getting it working with parted etc, but it doesn''t seem to work. Is there some documentation on manipulating windows image files and the partitions inside them? Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matthew Palmer
2007-Jun-23 05:32 UTC
[Xen-users] Re: Resizing Windows LVM makes it unbootable
On Sat, Jun 23, 2007 at 10:53:27AM +0530, Ligesh wrote:> I have a working windows lvm of 1.62GB size. I just do an lvextend +1Gb > on it, and then the Guest gets stuck at ''booting from harddisk'' the > initial stage. Is there something more I should do? I had tried getting > it working with parted etc, but it doesn''t seem to work. Is there some > documentation on manipulating windows image files and the partitions > inside them?You''d almost certainly want to resize the filesystem inside the LV as well, to minimise confusion. I can''t find a vfat resizer on my system, but there''s ntfsresize here. Difficulties may arise if there''s internal partition tables in the LV, but I''ve never played with HVM domains so I don''t know if that sort of thing goes on or if the partition table is managed at some higher level. - Matt -- For instance "Mine eyes haves seen the glory of the coming of the Lord," the anthem of the abolitionists (and the Union forces in the civil war) doesn''t actually refer to theology but the superiority of Arch over CVS. -- Jaldhar H. Vyas, debian-devel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, 2007-06-23 at 10:53 +0530, Ligesh wrote:> Hi, > > I have a working windows lvm of 1.62GB size. I just do an lvextend +1Gb on it, and then the Guest gets stuck at ''booting from harddisk'' the initial stage. Is there something more I should do? I had tried getting it working with parted etc, but it doesn''t seem to work. Is there some documentation on manipulating windows image files and the partitions inside them? > > Thanks. >I don''t know if qemu has a way to talk to ioctl inside of the guest from the host, but when dealing with slices this is to be expected. I mean outside of just passing sysrqs. I try to avoid slicing VBDs for this reason. In essence you made the universe bigger but forgot to inform the laws of physics to take it into account. A better way to obviate that is to consider the reverse, making the universe smaller while the old laws still apply. If you had taken 1G, it would have been even worse. Re-sizing a sliced block device is re-sizing many file systems at once. Unless you have a tool that talks and listens to the ioctl API on every file system on both ends, its really problematic. Its one of the biggest reasons I really prefer PV guests is the complications they avoid. You need to treat the drive on dom-0, and the sliced image residing on that drive like they are two totally different drives unless you write a lvresize tool kit with super powers and teach it about all known file systems, even ones that don''t lend at all to changing size. Hope this helps, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Jun-23 10:13 UTC
Re: [Xen-users] Re: Resizing Windows LVM makes it unbootable
Matthew Palmer wrote:> On Sat, Jun 23, 2007 at 10:53:27AM +0530, Ligesh wrote: > >> I have a working windows lvm of 1.62GB size. I just do an lvextend +1Gb >> on it, and then the Guest gets stuck at ''booting from harddisk'' the >> initial stage. Is there something more I should do? I had tried getting >> it working with parted etc, but it doesn''t seem to work. Is there some >> documentation on manipulating windows image files and the partitions >> inside them? >> > > You''d almost certainly want to resize the filesystem inside the LV as well, > to minimise confusion. I can''t find a vfat resizer on my system, but > there''s ntfsresize here. Difficulties may arise if there''s internal > partition tables in the LV, but I''ve never played with HVM domains so I > don''t know if that sort of thing goes on or if the partition table is > managed at some higher level. >There''s not much point to a VFAT resizer. It''s almost always easier to mount it, copy to a new directory, unmount it, rebuild with a new size that partition, then copy the material back. VFAT doesn''t have the complex ownership settings of NTFS, so that should work. (I''ve used that for dual-boot OS building on thousands of machines: it works well.) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jun 23, 2007 at 01:42:23PM +0800, Tim Post wrote:> On Sat, 2007-06-23 at 10:53 +0530, Ligesh wrote: > > Hi, > > > > I have a working windows lvm of 1.62GB size. I just do an lvextend +1Gb on it, and then the Guest gets stuck at ''booting from harddisk'' the initial stage. Is there something more I should do? I had tried getting it working with parted etc, but it doesn''t seem to work. Is there some documentation on manipulating windows image files and the partitions inside them? > > > > Thanks. > >> > I don''t know if qemu has a way to talk to ioctl inside of the guest from > the host, but when dealing with slices this is to be expected. I mean > outside of just passing sysrqs. I try to avoid slicing VBDs for this > reason. > > In essence you made the universe bigger but forgot to inform the laws of > physics to take it into account. A better way to obviate that is to > consider the reverse, making the universe smaller while the old laws > still apply. If you had taken 1G, it would have been even worse.As such, would it matter for a small part of the universe if the whole was now larger? I am not _stretching_ the lv, but merely extending it. Theoretically, I was expcting the initial segments to be completely oblivous of the change. I mean, I am not expecting windows to automatically fill to the extended device, but I am not expecting it to crash like this at the very beginning either. Anyway, I have tried creating a fresh disk using parted, and copying using ntfsclone, but that doesn''t work either. Btw, the universe IS expanding even as we speak, but the humans on earth here continue to carry out their inconsequential and ultimately pointless lives even without spending a moment reflecting about this. If it is possible for these pesky humans, why not the harddisk?> > Re-sizing a sliced block device is re-sizing many file systems at once.I am not ignoring the file system resize. I am using ntfsresize for that. But should the guest refuse to boot itself, merely because of the resize?> > Unless you have a tool that talks and listens to the ioctl API on every > file system on both ends, its really problematic. Its one of the biggest > reasons I really prefer PV guests is the complications they avoid.Of course, for linux, I won''t even bother going for Full Virt. But for windows, I don''t know, if only MS would allow PV. Thanks for the response. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Harper
2007-Jun-23 11:53 UTC
RE: [Xen-users] Re: Resizing Windows LVM makes it unbootable
> > Btw, the universe IS expanding even as we speak, but the humans onearth> here continue to carry out their inconsequential and ultimatelypointless> lives even without spending a moment reflecting about this. If it is > possible for these pesky humans, why not the harddisk? >Okay hands up those who now have Monty Pythons ''Galaxy Song'' stuck in their heads? James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Jun 23, 2007 at 03:32:26PM +1000, Matthew Palmer wrote:> On Sat, Jun 23, 2007 at 10:53:27AM +0530, Ligesh wrote: > > I have a working windows lvm of 1.62GB size. I just do an lvextend +1Gb > > on it, and then the Guest gets stuck at ''booting from harddisk'' the > > initial stage. Is there something more I should do? I had tried getting > > it working with parted etc, but it doesn''t seem to work. Is there some > > documentation on manipulating windows image files and the partitions > > inside them? > > You''d almost certainly want to resize the filesystem inside the LV as well, > to minimise confusion. I can''t find a vfat resizer on my system, but > there''s ntfsresize here. Difficulties may arise if there''s internal > partition tables in the LV, but I''ve never played with HVM domains so I > don''t know if that sort of thing goes on or if the partition table is > managed at some higher level. >I tried that, but that doesn''t work either. I first ran parted to extend the partition inside the volume, and then ran ntfsresize on it to extend the filesystem, but still I am getting error at the beginning itself. Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users