Re: Freeing pv space for snapshots

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



On Thu, January 4, 2007 11:11 pm, Aleksandar Milivojevic wrote:
> Robert Becker Cope wrote:
>> "Paul" <unix@xxxxxxxxxxxxxx> wrote:
>>
>>> Thanks, and where can I find a version of ext2resize that will work
>>
>> You want "resize2fs". Note that I've never used it to shrink a
>> filesystem,
>> myself, only to grow one.
>
> I've used it, and it works correctly (and it is available in CentOS
> 4.4).  It shrinks file system as it should.  The only things Paul should
> be careful is to first shrink file system, than logical volume and to
> correctly calculate file system size and by how many extents he can
> shrink logical volume.  If he shrinks logical volume too much, he might
> end up loosing data.  Running fsck in non-destructive mode (fsck -N)
> and/or attempting to mount file system read-only after he shrinks
> logical volume might be a good idea to test all is OK.

Thanks all.  And can I use it when the system is online?  I would think
that would be the only way I could do it, cause I can't get to the ext3 fs
of the LV unless its online.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux