From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 07:09:20 2003 Return-Path: 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 3F29816A4B3 for ; Fri, 3 Oct 2003 07:09:20 -0700 (PDT) Received: from merle.it.northwestern.edu (merle.it.northwestern.edu [129.105.16.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 489CC43FBF for ; Fri, 3 Oct 2003 07:09:19 -0700 (PDT) (envelope-from r-militante@northwestern.edu) Received: (from mailnull@localhost) by merle.it.northwestern.edu (8.12.10/8.12.10) id h93E9GlT027395 for ; Fri, 3 Oct 2003 09:09:16 -0500 (CDT) Received: from merle.it.northwestern.edu (darkpossum.medill.northwestern.edu [129.105.51.23]) by merle.it.northwestern.edu via smap (V2.0) id xma026379; Fri, 3 Oct 03 09:09:01 -0500 Date: Fri, 3 Oct 2003 09:00:43 -0500 From: Redmond Militante To: freebsd-questions@freebsd.org Message-ID: <20031003140043.GB80565@darkpossum> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Sender: redmond@darkpossum.medill.northwestern.edu X-URL: http://darkpossum.medill.northwestern.edu/modules.php?name=Content&pa=showpage&pid=1 X-DSA-and-ElGamal-Fingerprint: 2AA2 E78E A6FC 9144 3534 39A2 EE0F 8D26 5FDF 481D Subject: var partition is too small X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Redmond Militante List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2003 14:09:20 -0000 --dTy3Mrz/UPE2dbVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi all the var partition on my apache box may be too small. this is a problem because -=20 i originally had newsyslog set at /var/log/httpd-access.log 644 7 100 24 B /var/run/ht= tpd.pid 30 which sets httpd-access.log to be rotated in binary format everytime it rea= ches 100 mb or once every hour for 24 hours. which basically means we only archive less than a day's worth of httpd-acce= ss.log's on this machine... the /var partition on this machine is 252 mb. yesterday i was told asked to start archiving httpd-access.logs for analysi= s over longer periods of time - that i should be keeping a year's worth of = logs, if possible. i remember the original reason i set up newsyslog.conf = to rotate httpd-access.logs on this machine so frequently is because the we= bserver is really busy, and this file tends to grow pretty rapidly, and i d= idn't want to have to log in, stop apache, and archive the logs by hand eve= ry day... yesterday i looked into expanding the size of my /var partition by symlinki= ng. -drop to single user mode -stop syslogd -mv /var to /usr/var -umount /var -delete /var directory -create symlink from /usr/var to /var it seems easy, and i did it successfully once, but i hosed a (non)productio= n box yesterday practicing the above procedure. i have a number of questions: -if i copy the contents of /var to /usr/var, then delete the var directory,= do i need to modify my fstab? my fstab right now looks like /dev/aacd0s1g /usr ufs rw 2 2 /dev/aacd0s1e /var ufs rw 2 2 -do i need to modify this so that /var now points to a directory inside /us= r? and how? -i'm thinking that this may be too risky a procedure to try on a production= box (i guess i'm spooked from ruining the practice box...) - anyone think = i should just archive these logs by hand to someplace in my home directory = (/usr is very large on this box - 65 gb - and hardly used)? my goal is bas= ically to keep an archive of httpd-access.logs for as long as possible to p= roduce a comprehensive webalizer report... thanks again redmond --=20 FreeBSD 5.1-RELEASE-p5 FreeBSD 5.1-RELEASE-p5 #0: Wed Sep 24 09:12:23 CDT 2= 003 8:30AM up 1 day, 17:54, 2 users, load averages: 0.61, 0.58, 0.55 =20 Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the numerous idiot lights which plague the modern driver. Rather, if the driver makes any mistake, a giant "?" lights up in the center of the dashboard. "The experienced driver", he says, "will usually know what's wrong." =20 --dTy3Mrz/UPE2dbVg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/fYEL7g+NJl/fSB0RArGMAJ0dHSe30RZ7B3oOn8CmFCeh9YqUlgCcD5C3 o8tkbBqt8tYiLFGJZ37oG1I= =4wuh -----END PGP SIGNATURE----- --dTy3Mrz/UPE2dbVg--