[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Resizing partitions on a VM sitting on a LVM volume



Ya, it basically worked OK.

1: kpartx -a /dev/myvg/mylv
2: Resize partition using fdisk (delete old partition, recreate new one with a larger size, note that the file system remains on the partition)
3: Reboot Dom0
4: kpartx -a /dev/myvg/mylv  (again)
5: e2fsck -y /dev/myvg/mylv5
6: resize2fs -p /dev/myvg/mylv5

That's basically it.

Mark Williamson wrote:
Out of interest, did resizing the ext3 filesystem itself work properly once you'd enlarged the partition? Did you just use resize2fs?

Cheers,
Mark

On Friday 11 January 2008, Erich Weiler wrote:
Partition 5 is formatted with ext3.  parted isn't liking this but i think
that's because it's having trouble resizing the ext3 filesystem, rather
than because it can't resize the partition itself.

Is the filesystem mounted at the time?  Maybe it can't be live-resized?
No, the file system was definitely not mounted at the time.  I was able
to do this using fdisk as Alain suggested earlier.  Thanks for offering
your advice though!

-erich




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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.