Hi, I want to know 1) How can I add space to LVM based DomU ? 2) How can I remove a LVM based DomU -- Tapas +91 8971248477 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra wrote:> I want to know >1) How can I add space to LVM based DomU ? >2) How can I remove a LVM based DomUHmm, more than a bit vague there - I''ll have to make a few assumptions. 1) Assuming that you mean the DomU is stored in LVM logical volumes defined in Dom0 and exported as block devices to the DomU then : In Dom0, use LVM to expand the LV - eg "lvm lvresize -L +5G /dev/vg0/somedomurootlv" to add 5G. Shutdown the DomU, and use the appropriate filesystem tool to resize the filesystem. Eg, for Ext2/Ext3, it''s "resize2fs /dev/vg0/somedomurootlv". You''ll need to fsck it first, eg "fsck -f /dev/vg0/somedomurootlv" Startup the DomU, it should now have a larger filesystem available to it. If on the other hand, you are exporting a single block device and then running LVM within the DomU, you''ll need to resize the Dom0 LVM, shutdown and restart the DomU to recognise the change, use a partitioning tool to extend the endpoint of the partition holding the LVM physical device to use the extra space, and then resize the logical volumes as required within the DomU. I''m not entirely certain of the exact sequence of tools to run, and the exact syntax, to do this. 2) Fairly simple - stop the DomU, delete the logical volume(s) it uses. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jpp@jppozzi.dyndns.org
2010-Apr-08 10:48 UTC
Re: [Xen-users] how to add space do LVM based DomU
Hello,> > Hi, > I want to know > 1) How can I add space to LVM based DomU ?Use LVM tools to - enlarge the "partitions" allocated to the domU, and finally "resize" the filesystem mounted in the domU - affect new LWM "partitions" to the domU and update the domU definition.> 2) How can I remove a LVM based DomU- stop the VM either gracefully or even with "xm shutdown" - Remove the VM from the pool : xm delete - destroy or reaffect LVM partitions It is now like if the VM was never created. That''s all folks. Regards JPP _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users