From owner-freebsd-questions@FreeBSD.ORG Tue Jan 30 11:43:38 2007 Return-Path: X-Original-To: freebsd-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 8C1AD16A506 for ; Tue, 30 Jan 2007 11:43:38 +0000 (UTC) (envelope-from philippe.lang@attiksystem.ch) Received: from mail.attiksystem.ch (f29.attiksystem.ch [212.147.59.29]) by mx1.freebsd.org (Postfix) with ESMTP id 1395E13C4B6 for ; Tue, 30 Jan 2007 11:43:37 +0000 (UTC) (envelope-from philippe.lang@attiksystem.ch) Received: from poweredge.attiksystem.ch (poweredge.attiksystem.ch [10.0.0.29]) by mail.attiksystem.ch (8.12.11/8.12.11) with ESMTP id l0UBhMFk078564; Tue, 30 Jan 2007 12:43:23 +0100 (CET) (envelope-from philippe.lang@attiksystem.ch) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 30 Jan 2007 12:43:22 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Message-ID: <6C0CF58A187DA5479245E0830AF84F4218CD56@poweredge.attiksystem.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Multiple Directories for Jails Thread-Index: AcdD+IRZ2DMgSihmTBOLlG4+UJaZVQAag44g References: <45BE0D1A.5090405@cs.tu-berlin.de> From: "Philippe Lang" To: "Karl Fischer" , =?iso-8859-1?B?Qmr2cm4gS/ZuaWc=?= X-Spam-Score: -1.44 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.49 on 10.0.0.111 Cc: FreeBSD Questions Subject: RE: Multiple Directories for Jails 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: Tue, 30 Jan 2007 11:43:38 -0000 owner-freebsd-questions@freebsd.org wrote: > On 29 Jan 2007, at 5:04 PM, Bj=F6rn K=F6nig wrote: >=20 >> Karl Fischer schrieb: >>> Hi >>> I'm a n00b to freebsd and jails is there away that I can specify >>> multiple Directories in the jails.conf ? >>> JAIL_HOME=3D"/data1; /data2" etc. >>=20 >> What are you trying to do or what do you expect? >>=20 >> A file system hierarchy can only have one root directory. You >> probably want to play with unionfs. You can read about its concept >> here: http://people.freebsd.org/~daichi/unionfs/ >> http://en.wikipedia.org/wiki/UnionFS >>=20 >> Regards Bj=F6rn >=20 > Hi > Basically the Drive that the Jails are hosted on is running out of > space.=20 > By adding another mounted Partition I will have more space. >=20 > If I add a new Drive to the Machine ... > mount it under /data2 can I just stop the jails and copy them across > modify the jails.conf and start it up ? I guess the best procedure > should be to back them up and restore them there ?=20 >=20 > Thanks for the help > Karl Hi, Jails don't absolutely need to have the same root. I'm not sure where = you found your "JAIL_HOME" and "jails.conf" (a script?), but each jail = needs a "rootdir", which can be a path to whatever you want. You can = configure this "rootdir" in /etc/rc.conf. Have a look there. Depending on how much space your actual jails are using, you may = consider moving all your jails onto a new drive, instead of moving part = of them. It is maybe easier to manage your system this way, although not = necessary at all. Hope this will help you, Philippe