From owner-freebsd-questions Sun Mar 28 6:45:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id BF9C814D3F for ; Sun, 28 Mar 1999 06:45:30 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.2/8.9.2/UCB) id RAA61482; Sun, 28 Mar 1999 17:44:07 +0300 (EEST) (envelope-from ru) Date: Sun, 28 Mar 1999 17:44:07 +0300 From: Ruslan Ermilov To: Dibyo Gahari Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to change a partition size Message-ID: <19990328174407.A60349@relay.ucb.crimea.ua> Mail-Followup-To: Dibyo Gahari , freebsd-questions@FreeBSD.ORG References: <199903261725.AAA18333@server.jad.net> <199903261725.AAA18333@server.jad.net> <19990328102707.N53452@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Dibyo Gahari on Sun, Mar 28, 1999 at 09:08:46PM +0800 X-Operating-System: FreeBSD 3.1-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 28, 1999 at 09:08:46PM +0800, Dibyo Gahari wrote: > > Hi Greg, > > Thanks for your kind explanation. > > At 08:57 28/03/99 , Greg Lehey wrote: > >On Saturday, 27 March 1999 at 1:24:50 +0800, Dibyo Gahari wrote: > > >> i need to add the size of /var > > >Why? > > Because the growing mail accounts I have to add. > > >I always recommend against having a /var file system at all. The > >situation you find yourself in now is the main reason: it's a real > >pain to have to resize file systems, and there's no good reason for a > >/var file system on the same disk as /usr in the first place. I'd > >recommend: > > > >1. For now, put subdirectories of /var on /usr and use symlinks to > > point there. > > Do you mean: > > 1. move/copy subdirectories of /var to new /usr/var > 2. umount /var (and leave the old /var unmount and unused) > 3. symlinks /var to /usr/var > 4. reboot ??? > Yup! Boot into single user mode before doing this, or, better yet, `shutdown' from multiuser. This will save your mounts in read-write. Here is my layout: # df /var /usr Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1e 29727 16715 10634 61% /var /dev/da0s1f 2956432 1746143 973775 64% /usr # ls -l /var/mail lrwxr-xr-x 1 root wheel 9 Jun 10 1998 /var/mail -> /usr/mail Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message