From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Mon 02 Dec 2002 - 15:19:38 GMT
On Mon, Dec 02, 2002 at 09:52:16AM -0500, Dinesh Mistry wrote:
> Hello
>
> I am running Redhat 7.3 with the 2.4.19ctx-14, I have successfuly
> installed Debian in a Vserver along with RedHat I am having some
> difficulty with Gentoo 1.4, was wondering if anyone could shed some light
> or maybe a install script?? :)
>
>
> Second issue, I am mounting loop back filesystems so I can limit the size
> of the disk space each VPS gets, is there a way to some how mount this
> loop back device when the vserver is started, and unmount it when it is
> stopped?
you can add the mount/umount to the start/stop
addon scripts in /etc/vservers
---- #!/bin/sh case $1 in pre-start) losetup ... mount ... ;; post-start) ;; pre-stop) ;; post-stop) umount ... losetup -d ... ;; *) echo $0 pre-start echo $0 pre-stop echo $0 post-start echo $0 post-stop ;; esacbut you'll ned to modify the vserver script (one line) to leave the root directory of the vserver before calling post-stop, otherwise you'll get "bla, bla busy ..."
http://www.13thfloor.at/VServer/HowTo_LVMQ.shtml#Modifications
best, Herbert
> Thanks > > Dinesh Mistry > YourHostDirect > > http://www.yourhostdirect.com > >