From owner-freebsd-questions@FreeBSD.ORG Thu Jun 2 16:22:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5375C16A41C for ; Thu, 2 Jun 2005 16:22:28 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from lakecmmtao06.coxmail.com (lakecmmtao06.coxmail.com [68.99.120.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id C430143D48 for ; Thu, 2 Jun 2005 16:22:27 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dns1 ([64.58.171.82]) by lakecmmtao06.coxmail.com (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050602162227.CPCC6121.lakecmmtao06.coxmail.com@dns1>; Thu, 2 Jun 2005 12:22:27 -0400 From: Vizion To: Giorgos Keramidas Date: Thu, 2 Jun 2005 09:18:04 -0700 User-Agent: KMail/1.8 References: <200506021316.j52DG1dP023970@clunix.cl.msu.edu> <200506020644.17257.vizion@vizion.occoxmail.com> <20050602161349.GA2778@orion.daedalusnetworks.priv> In-Reply-To: <20050602161349.GA2778@orion.daedalusnetworks.priv> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506020918.05408.vizion@vizion.occoxmail.com> Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: /var too small [was Gap of years = loss of memory!!] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 16:22:28 -0000 On Thursday 02 June 2005 09:13, the author Giorgos Keramidas contributed to the dialogue on- Re: /var too small [was Gap of years = loss of memory!!]: >On 2005-06-02 06:44, Vizion wrote: >>On Thursday 02 June 2005 06:16, the author Jerry McAllister contributed to >>the dialogue on- >> >> Re: /var too small [was Gap of years = loss of memory!!]: >>>> This is the sort of thing I used to do regularly but not having >>>> done this task for a few years I feel the need to check up on the >>>> best way to deal with the circumstances described below. >>>> >>>> I decided to change the subject - maybe you thought the original >>>> was spam :-) I have a freebsd system with the following hard drive >>>> configuration: >>>> >>>> $ df >>>> Filesystem 1K-blocks Used Avail Capacity Mounted on >>>> /dev/ad6s1a 253678 44804 188580 19% / >>>> devfs 1 1 0 100% /dev >>>> /dev/ad6s1e 253678 15732 217652 7% /tmp >>>> /dev/ad6s1f 148665266 18848290 117923756 14% /usr >>>> /dev/ad6s1d 253678 107022 126362 46% /var >>> >>> As for moving the /var partition: >>> After you fdisk(8) and disklabel(8) the new drive and newfs(8) the newly >>> created file system[s], create a different temporaty mount point for it >>> to use while you are moving thing - say /newvar. >>> Then mount the file system on /newvar. >>> Then tar stuff in /var up and move it to /newvar >>> Unroll it in newvar and check it out. >>> (Since it is a whole filesystem, you could as easily use >>> dump(8)/restore(8) When you are convinced it looks good, unmount /var and >>> /newvar and remount the new partition as /var. Remount the old one as >>> /oldlogs if you like. >>> Then edit /etc/fstab to make the new mounts the default. >>> Then rmove the tar(dump) file. >> >> Understood > >A step by step description of what I used to move my data from a 45 GB >IDE disk to a larger, new 200 GB disk back in October, can also be found >at the following post: > >http://keramida.serverhive.com/weblog/archives/2004-10-26/daemonizing-a-new- >disk > >This may come handy, so feel free to give it a look. It more or less >includes everything described by Jerry McAllister and shows how the >whole process can be done using the command line tools of FreeBSD. >Some times, sysinstall doesn't work quite right for me; so I prefer >using fdisk/bsdlabel/newfs when I have a choise. > >- Giorgos Thank you very much Giorgios BTW did you read the bit about SATA drives - I seem not to be able to get freebsd to boot off a drive on SATA2 if I place my new drive on SATA1 - any ideas? david -- 40 yrs navigating and computing in blue waters. English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus. Currently in San Diego, CA. Sailing May/June bound for Europe via Panama Canal.