WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Im Resize

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Im Resize
From: "David Morris" <david.morris@xxxxxxxxxx>
Date: Tue, 28 Aug 2007 13:27:14 -0700
Delivery-date: Tue, 28 Aug 2007 13:27:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1188272205.7134.0.camel@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfpJLhQe+4hEsZSQQWe9QcJHajlGwAjPRdw
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 partitioned 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 partition. 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

<Prev in Thread] Current Thread [Next in Thread>