From danm@prime.gushi.org  Wed Jul 21 23:58:20 2004
Return-Path: <danm@prime.gushi.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1671416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Jul 2004 23:58:20 +0000 (GMT)
Received: from prime.gushi.org (prime.gushi.org [65.125.228.130])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C86EC43D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Jul 2004 23:58:19 +0000 (GMT)
	(envelope-from danm@prime.gushi.org)
Received: from prime.gushi.org (danm@localhost.com [127.0.0.1] (may be forged))
	by prime.gushi.org (8.12.11/8.12.11) with ESMTP id i6M0A42l028448
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Jul 2004 20:10:04 -0400 (EDT)
Received: (from danm@localhost)
	by prime.gushi.org (8.12.11/8.12.11/Submit) id i6M0A3sv028447;
	Wed, 21 Jul 2004 20:10:03 -0400 (EDT)
Message-Id: <200407220010.i6M0A3sv028447@prime.gushi.org>
Date: Wed, 21 Jul 2004 20:10:03 -0400 (EDT)
From: Dan Mahoney <danm@prime.gushi.org>
Reply-To: Dan Mahoney <danm@prime.gushi.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mysql-server ports use ridiculous layout
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69399
>Category:       ports
>Synopsis:       mysql-server ports use ridiculous layout
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 22 00:00:41 GMT 2004
>Closed-Date:    Thu Jul 22 21:43:43 GMT 2004
>Last-Modified:  Thu Jul 22 21:43:43 GMT 2004
>Originator:     Dan Mahoney
>Release:        FreeBSD 4.9-RELEASE-p4 i386
>Organization:
Gushi Systems
>Environment:
System: FreeBSD prime.gushi.org 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #0: Thu Mar 18 21:12:47 EST 2004 danm@prime.gushi.org:/usr/obj/usr/src/sys/PRIME49 i386

Any base install of FreeBSD with ports.

>Description:

FreeBSD by default installs a very small /var partition for the user.  This small partition is used not only for mail, and 
logs (both of which can grow on occasion without warning), but the mysql-server port uses this location as the default 
location for all databases.  Additionally, the /var/tmp directory is used 

	

>How-To-Repeat:

cd /usr/ports/mysql40-server
make install

let logs and/or mail run for a while (especially easy if you've also installed apache from ports), as the apache logs are 
written to /var/log with no rotation.

Watch your tables corrupt themselves and mysql die with error 28 from the table handler.

	
>Fix:

The "fix" is something like:

mkdir /usr/var
cd /var
cp db /usr/var
ln -s /usr/var/db
cp tmp /usr/var
ln -s /usr/var/tmp

However, it's generally my opinion that at least a WARNING or something should be printed, as the default table types 
(especially InnoDB) tend to grow by fairly large increments.

Either an alternate location needs to be found for "big" semi-permanent files (/var is for mainly transient files -- it's not 
supposed to be a huge earth-shattering disaster if you lose /var), or that partition needs to be defaulted to something a lot 
bigger.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Jul 22 21:33:17 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer, but I think this PR is bogus. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69399 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Jul 22 21:41:41 GMT 2004 
State-Changed-Why:  
Bogus. Suggestion: don't use symbolink link, use DB_DIR for speed :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69399 
>Unformatted:
