From owner-freebsd-questions Sun Dec 17 9:11:25 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 09:11:23 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id CD1EB37B400 for ; Sun, 17 Dec 2000 09:11:22 -0800 (PST) Received: (qmail 57619 invoked by uid 100); 17 Dec 2000 17:11:22 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14908.62394.56094.776366@guru.mired.org> Date: Sun, 17 Dec 2000 11:11:22 -0600 (CST) To: "John Bolster" Cc: questions@freebsd.org Subject: Re: How to move /var directories In-Reply-To: <86399740@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Bolster types: > I set up my FBSD 4.1 box with a 20MB /var and 14GB /usr and now I've spent > ages configuring everything else- dns, ftpd, httpd, firewall, etc. Now I > come to use it as a mail server for over 100 people, I've realized that /var > needed to be much bigger and I'll probably never have much use for all the > /usr space. > > I've read that there is no Partition Magic type program for FBSD, so I > assume I'll have to move /var/mail and /var/ftp somewhere else where there > is more room. > > Can anyone tell me if this is the best way to deal with this, if there is a > better idea, and (ideally) how to do it? Christian has it right - but makes the symlink setup to difficult. It's probably best to symlink the entire directory, so that new users don't wind up on /var: # mkdir /usr/var/mail # mv /var/mail/* /usr/var/mail # rmdir /var/mail # ln -s /usr/var/mail /var If you really want to symlink individual users, you can use wildcarding on the ln to do it all like so: # mkdir /usr/mail # mv /var/mail/* /usr/mail # ln -s /usr/mail/* /var/mail Note that mail being delivered during either of this procedures could be lost, so you should disable mail delivery. If your users don't log on directly, you can just kill your SMTP server and restart it. http://www.mired.org/home/mwm/ Independent WWW/Unix/FreeBSD consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message