From owner-freebsd-current@FreeBSD.ORG Tue Aug 9 21:36:10 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFA4A16A439 for ; Tue, 9 Aug 2005 21:36:09 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id E0D7B43E9D for ; Tue, 9 Aug 2005 21:35:24 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 09 Aug 2005 21:35:24 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp029) with SMTP; 09 Aug 2005 23:35:24 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-current@freebsd.org, drvince@anonymnet.net Date: Tue, 9 Aug 2005 23:35:11 +0200 User-Agent: KMail/1.8.1 References: In-Reply-To: X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1938111.iGpC1iNhs3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508092335.21889@harrymail> X-Y-GMX-Trusted: 0 Cc: Subject: Re: More into /etc/rc.d/jail X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 21:36:10 -0000 --nextPart1938111.iGpC1iNhs3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Dienstag, 9. August 2005 21:10 CEST schrieb drvince@safe-mail.net: > Hi, > I'm using jails inside md devices to limit the disk space each jail can > use. It's working great but I have to start manually all of them at > startup. Here's my drill: > > mdconfig -a -t vnode -f ${IMAGE} -u ${ID} > fsck_ufs /dev/md${ID}c > mount /dev/md${ID}c ${DEST} > mount_devfs devfs ${DEST}/dev > jail -l -U root ${DEST} ${FQDN} ${IP} /bin/sh /etc/rc And you don't suffer from a big disk performance degradation with that? If you don't have I/O load it doesn't matter but I need usual I/O=20 performance so I give each jail its own partition (GPT partitions). But I think some good guys are looking for fixing the performance issue=20 like they already solved the nullfs problem :) Thanks again for that!=20 (Jeff?) So it was fine to have the stuff you suggested in the future. =2DHarry=20 > Therefore, I can't use the /etc/rc.d/jail facility. So I thought, it > would be good to add *fsck before mounting* and an optional mdconfig > beforehand. > > jail_${NAME}_md_device=3D"" # The device to attach or NO > jail_${NAME}_image=3D"" # The image file containing the jail, used > with md_device jail_${NAME}_fsck_options=3D"" # Options to pass to fsck > > In fsck_options I could put "-t ufs". Of course, /dev/md${ID}c must be > present before mounting, could happen if the image isn't bsdlabel'ed. > > I'm a terrible coder, I could do it, but I'll need coaching and I've > never made a patch. I would gladly hand that to someone else but I also > need it to be done, I can't babysit the server forever. So, how does it > sound? > > DrVince > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" --nextPart1938111.iGpC1iNhs3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBC+SGZBylq0S4AzzwRAjTlAJ9mhUvMPp6EXvZf6tVtEwPBi/MzDgCfdwE/ QIx7gd/0/pR8R+DWlpn83rE= =HaFQ -----END PGP SIGNATURE----- --nextPart1938111.iGpC1iNhs3--