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] LVM and resize2fs


On 06/10/10 21:47, Javier Guerra Giraldez wrote:
On Wed, Oct 6, 2010 at 3:40 PM, Jeff Sturm<jeff.sturm@xxxxxxxxxx>  wrote:
I tend to be paranoid about the same thing.  So when shrinking a filesystem, I 
often resize2fs it to a slightly smaller size, then resize it up to the 
device's size.  Growing is much faster than shrinking anyhow.
same here


Ah right, so let's say I wanted to reduce my 25GB LV down to 15GB, are the following steps correct and safe?

e2fsck -f /path/to/lv
resize2fs /path/to/lv 14G
lvresize /path/to/lv -L15G
resize2fs /path/to/lv

Thanks


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

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