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? thank you. -- saludos! ------------------------- Alejandro Weintz Aguilar PixelEstudios.com. Tel. (506) - 5920328 Cel. (506) - 3080035 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@pixelestudios.com] > 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@lists.xensource.com http://lists.xensource.com/xen-users
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@pixelestudios.com] > 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@lists.xensource.com http://lists.xensource.com/xen-users