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

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Jonathan Tripathy
> Sent: Wednesday, October 06, 2010 4:14 PM
> To: Javier Guerra Giraldez; Xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] LVM and resize2fs
> 
> > otherwise, you expose yourself to slighly different interpretations of
> > '25G'.  not too likely, but can you be sure that 24.78G is exactly the
> > same number of bytes to LVM and resize2fs?
> >
> >
> No I can't be sure. That's what I was worried about. Do you think it's an 
> issue? I guess
> I could not specify the size, however when I want to shrink a disk for a 
> customer, then
> this becomes a bit trickier, as I have to resize2fs first and then lvresize. 
> What would I
> do in this case?

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.

-Jeff

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>