From owner-freebsd-questions@FreeBSD.ORG Thu Dec 20 14:33:41 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FB4816A420 for ; Thu, 20 Dec 2007 14:33:41 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from wmail.teledomenet.gr (wmail.teledomenet.gr [213.142.128.16]) by mx1.freebsd.org (Postfix) with ESMTP id C4F7A13C467 for ; Thu, 20 Dec 2007 14:33:40 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by wmail.teledomenet.gr (Postfix, from userid 1002) id C82BA1C81CD; Thu, 20 Dec 2007 16:33:39 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on wmail.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7-deb Received: from iris (unknown [192.168.1.71]) by wmail.teledomenet.gr (Postfix) with ESMTP id D2F591C81CD; Thu, 20 Dec 2007 16:33:29 +0200 (EET) From: Nikos Vassiliadis To: "Marc G. Fournier" Date: Thu, 20 Dec 2007 16:37:19 +0200 User-Agent: KMail/1.9.7 References: <74F0F91EA046A1B9EAB79AF7@ganymede.hub.org> <200712201457.42052.nvass@teledomenet.gr> <09EB40C88507ABCB81E6AFA0@ganymede.hub.org> In-Reply-To: <09EB40C88507ABCB81E6AFA0@ganymede.hub.org> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712201637.20690.nvass@teledomenet.gr> Cc: freebsd-questions@freebsd.org, Norberto Meijome Subject: Re: OSS Virtualization options ... 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, 20 Dec 2007 14:33:41 -0000 On Thursday 20 December 2007 15:57:05 Marc G. Fournier wrote: > > I think the question about virtualization is far too broad. > > For example, you mentioned quotas. I think you can bypass storage > > control problems, using seperate devices for each client filesystem. > > Just create n vnode md(4) devices for your n jails. This has another > > advantage besides partitioning storage. Since UFS supports sparse > > files, only used blocks will occupy storage space, thus you don't > > have to preallocate all storage. > > Again, as mentioned in the original, the problem isn't quotaing the > whole VPS, the problem is software (in this case, plesk) that seems to > have a requirement to set a hard quota *within* the VPS itself, which > isn't supported, currently, by jails ... > > In the past, for quotaing 'the whole VPS', I had tried the whole md(4) > device idea, but found that insufficent inodes were being created for to > do much, and no matter what I tried with newfs, couldn't seem to get > more to be created, as if, due to the small size of the device, a 'max > ratio' was being hit ... but, this was way back on 4.x when I tried that > ... UFS2 does not initialize inodes at newfs time as UFS did. So, things are much better now! root:0:~# truncate -s 10G jail.00 root:0:~# mdconfig -at vnode -f jail.00 md0 root:0:~# newfs md0 /dev/md0: 10240.0MB (20971520 sectors) block size 16384, fragment size 2048 using 56 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, ... root:0:~# ls -ls jail.00 4592 -rw-r--r-- 1 root wheel 10737418240 Dec 20 16:21 jail.00 4.5MB for a 10GB filesystems is fine, isn't it? Nikos