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

RE: [Xen-users] Im Resize


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "David Morris" <david.morris@xxxxxxxxxx>
  • Date: Tue, 28 Aug 2007 12:11:12 -0700
  • Delivery-date: Thu, 30 Aug 2007 02:47:31 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcfpJLhQe+4hEsZSQQWe9QcJHajlGwAe5HLw
  • Thread-topic: [Xen-users] Im Resize

The method will vary depending on how your file systems are stored, what OS is 
represented in the file systems, etc. In my case, my data is stored in LVM 
'devices'... here is the outline
my expert provided of the steps:

  1) reduce the size of the filesystem (resize2fs or parted) (see also qtparted)
  2) reduce the size of the lvm using lvreduce (or lvresize)
  3) reduce the size of the physical volume using pvreduce
  4) reduce the size of the raid array using 'mdadm grow -z somesize'
  5) reduce the physical partition size using fdisk (or similar)

Step 1 will have to be repeated for EACH file system. If the devices contain
partitions, then you'll need to apply fdisk et al to each paritioned device and 
may
need to move partition data in that process ... in my example, the LVM space 
was the
last partition.

If your devices are all standard linux file systems, and you aren't using HVM 
(e.g., don't need to worry about MBRs), your easiest approach may be to mount 
and tar/gzip each parition. Resize it and then put the data back.


> -----Original Message-----
> From: Alejandro Weintz Aguilar [mailto:alejandro@xxxxxxxxxxxxxxxxx]
> Sent: Monday, August 27, 2007 8:37 PM
> 
> I Have a Xen 3.0 running and want to resize a few images that 
> are backup
> up with rsync. They are 20G and need them to be 5Gb. Can that be done?
> 

_______________________________________________
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®.