Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2002 19:32:42 -0500
From:      Paul Murphy <pnmurphy@cogeco.ca>
To:        "Brian T.Schellenberger" <bts@babbleon.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Filesystem Full (was (No Subject))
Message-ID:  <20020106193242.50a03fc8.pnmurphy@cogeco.ca>
In-Reply-To: <0d9aa3501230612FE6@Mail6.nc.rr.com>
References:  <20020106162046.2dfa4beb.pnmurphy@cogeco.ca> <20020106170559.42eef3c8.pnmurphy@cogeco.ca> <0d9aa3501230612FE6@Mail6.nc.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Jan 2002 18:00:56 -0500
"Brian T.Schellenberger" <bts@babbleon.org> wrote:

> On Sunday 06 January 2002 05:05 pm, Paul Murphy wrote:
> > On Sun, 6 Jan 2002 16:20:46 -0500
> >
> > Paul Murphy <pnmurphy@cogeco.ca> wrote:
> > > /dev/da1s1f    663553     2764   607705     0%    /usr/home
> > > /dev/da1s1e    192543   183627    -6487   104%    /usr/ports
> > >
> > >  I want to switch these two filesystems, here is my plan:
> > >
> > > 1) back them up to /usr/tmp
> 
> You have a /usr/tmp big enough for both??
> 
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/da0s1a     49583    33439    12178    73%    /
/dev/da0s1f    792401   355863   373146    49%    /usr
/dev/da1s1f    663553     2764   607705     0%    /usr/home
/dev/da1s1e    192543   109677    67463    62%    /usr/ports
/dev/da0s1e     19815     2059    16171    11%    /var
/dev/mlxd0c  10088196   953953  8327188    10%    /stuff
procfs              4        4        0   100%    /proc

 I built this box back in the day when I was new to FreeBSD, and so did
not know the best filesystem juggling. I am just now regretting some
choises :-( Fortunatly the mylex array of this particular machine (HP
Netserver) has recently become supported.

> > > 2) rm -r /usr/home && rm -r /usr/ports
> 
> You can save yourself a little trouble and just mv them.  It'll do all
that > for you.
> 
> > > 3) edit the fstab appropriately
> > > 4) umount /usr/home && umount /usr/ports
> > > 5) mount /usr/home && mount /usr/ports
> 
> Sounds sensible
> 
> > > 6) cp -r /usr/tmp/home/* /usr/home && cp -r /usr/tmp/ports/*
/usr/ports> 
> Again, mv is easier & preserves all the file attributes; if you don't
use mv > for some reason (extra paranoia?), use pax -rw or cp -pr or a
tar-pipe to > preserve all the file attributes.
> 

I forgot about tar, don't know pax <me reads man page>hmm</me reads man
page>

> > >
> > >  Does this seem right? Any gotcha's? I don't want to loose any data
as> > > these are fairly important filesystems (although I could cvsup
ports).> >
> >  Sorry, I don't believe I sent that without a Subject line, please DO
> > read.
> 
> -- 
> Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
> Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
>                                         http://www.babbleon.org
> 
> -------> Free Dmitry Sklyarov!  (let him go home)  <-----------
> 
> http://www.eff.org                 http://www.programming-freedom.org 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


-- 
 I call it "No-Pants Wonderday," but it turns out the police just call it
"Thursday." Go figure.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020106193242.50a03fc8.pnmurphy>