From owner-freebsd-questions@FreeBSD.ORG Thu Mar 29 21:33:55 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E759716A402 for ; Thu, 29 Mar 2007 21:33:55 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9EE0213C448 for ; Thu, 29 Mar 2007 21:33:55 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l2TLWkZo055986; Thu, 29 Mar 2007 17:32:46 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l2TLWkRm055985; Thu, 29 Mar 2007 17:32:46 -0400 (EDT) (envelope-from jerrymc) Date: Thu, 29 Mar 2007 17:32:46 -0400 From: Jerry McAllister To: Evren Yurtesen Message-ID: <20070329213246.GA55963@gizmo.acns.msu.edu> References: <460BE15B.5090007@ispro.net> <20070329181259.GA55191@gizmo.acns.msu.edu> <460C187B.5080703@ispro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <460C187B.5080703@ispro.net> User-Agent: Mutt/1.4.2.2i Cc: Jerry McAllister , questions@freebsd.org Subject: Re: splitting a filesystem 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, 29 Mar 2007 21:33:56 -0000 On Thu, Mar 29, 2007 at 10:50:19PM +0300, Evren Yurtesen wrote: > Jerry McAllister wrote: > > >On Thu, Mar 29, 2007 at 06:55:07PM +0300, Evren Yurtesen wrote: > > > > > >>Hi, > >> > >>Is it possible to split an existing filesystem into smaller ones(1to2). > > > > > >Well, sort of. > >You can back everything up with dump(8) > >Then delete the partition and make two in its place. > >Then newfs the two new partitions to create filesystems of them. > >Then restore(8) the parts of the old one you want on to the two > >new ones. > > > >I wonder if it is worthwhile though. > >Just make two main directories and divide the stuff and don't > >worry if they are both in the same partition. > > > > I am not worried about the data, I want to split /tmp filesystem so I can > mount it as /tmp and /var/tmp seperately. > > Because I want to enable noexec on these and unreachable from each other, > it is necessary. > > The problem was that I use open_basedir with php and session files are in > /var/tmp while open_basedir allows /tmp only and programs(like joomla) get > confused and say that they cant write to the session directory. But they > actually can because session files are created automatically by php, they > are > just not able to set directory manually. (which is weird thing of php) Well, this wouldn't make them unreachable from each other, but; You could make a symlink from /var/tmp to tmp. Then things could read and write it with either directory name. cd /var mv tmp othertmp ln -s /tmp tmp voila --- ////jerry > > Programs like joomla and oscommerce etc. work just fine but for example > joomla installer complains and my customers tell me that 'joomla says your > server is bad' :p > > But now I think about it again if I put the open_basedir to /var/tmp which > gets preset in programs most used by my customers then I should set session > save path to /tmp and same problem would occur. > > Anyhow :) it was a stupid idea... sorry to bother you all with it :) > > Thanks, > Evren