*BSD News Article 83868


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!spool.mu.edu!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!fjholden.OntheNet.com.au!news
From: Tony Griffiths <tonyg@OntheNet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: backing up filesystems
Date: Sat, 30 Nov 1996 10:48:54 +1000
Organization: On the Net (ISP on the Gold Coast, Australia)
Lines: 54
Message-ID: <329F8476.477E@OntheNet.com.au>
References: <57e77c$m1@quince.nac.ac.za>
Reply-To: tonyg@OntheNet.com.au
NNTP-Posting-Host: swanee.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (WinNT; I)
To: Fabian Leite <fabian@srvnac1.nac.ac.za>

Fabian Leite wrote:
> 
> I'm running INN1.4unoff4 on freebsd2.1.5
> Sometimes I get a error saying / filesystem full, when I run news.daily

news.daily rebuilds your "history" file so you will end up for a period
using twice as much space for this file (history & history.n) which can
be quite large!

> 
> The system software and inn software are on a 850Meg ide harddrive.
> 
> I want to replace the 850Meg with a 2gig scsi harddrive.
> 
> Is there  an easy way to backup all the filesystems(/,/usr,/var) on the
> 850Meg hardrive to a 2gig (scsi) harddrive and boot from the 2gig.

If your "/var/spool/news" is on your /var partition, you may have
problems with dump|restore as it may not be able to handle the number of
files in the filesystem.  If this happens then the only solution I can
think of is to 'forget' about your existing news articles and start
again (ie. blow away all existing news articles!).  This is drastic but
may be necessary.  Alternatively, your could create a partition on the
SCSI drive which is the same size as that on the IDE and simply 'dd' the
existing partition across.  This means that you then have to figure out
how to break up the news tree to use the remainder of your 2 GB SCSI
which won't be an easy task.

Actually, you would be better off doing this and simply newfs'ing the
SCSI disk and mounting it at /var/spool/news, leaving {/,/usr,/var} on
the IDE disk.  We run a news server like this, but with /var/spool/news
on one 4.3GB disk and /var/spool/news/alt on another 4.3GB disk, with /
and /usr (also /var) on an 850MB IDE drive.  Seems to work quite well,
although the 72MB of RAM would appear to be a little on the lite side
given the way news thrashes the file systems (it needs/want a HUGE
buffer cache!!!).

If you really want to keep your existing articles, init the SCSI drive
and then try dump|restore'ing your /var partition across to it.  Once
this is done (assuming it works) you can tidy up by removing those files
you don't want on each of the filesystems and then restart your news
feed.  Could be somewhat of a lengthy process, which is why we just
started again when we had to do this same exercise!

> 
> Any help would be appreciated
> 
> thanks
> 
> fabian
> 
> email>  fabian@nac.ac.za

Tony