[afnog] Resize FreeBSD partition

Todd Underwood todd at renesys.com
Fri Sep 2 13:30:29 EAT 2005


phil, all,

On Fri, Sep 02, 2005 at 08:40:35AM +0200, Phil Regnauld wrote:
> On Thu, Sep 01, 2005 at 08:31:32PM -0400, Todd Underwood wrote:
> > 
> > this is not true for linux using logical volume management and the
> > ext2online tools.  i've been using that toolset to resize live (and
> > mounted) partitions for years.  doing one right now, in fact.
> 
> 	Try _shrinking_ the partition, even with lots of free space.

indeed.  that's why best practices involve keeping all your partitions
relatively small and increasing their size when you need to.  so i
have a 3.0TB partition that i will bump up by 200-300GB whenver it
hits some threshold (let's say 80% or 90%, depending on rate of
growth).  

if you need to reclaim unused space, you really do have to go back to
the copy/restore techniques being discussed.

the best one is probably:

--make a new partition of the right size
--make a new fs on it
--mount it as /new
--cd /old
-- rsync -avP * /new/

t.

-- 
_____________________________________________________________________
todd underwood
director of operations & security
renesys - interdomain intelligence
todd at renesys.com   www.renesys.com



More information about the afnog mailing list