From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Wed 29 Jan 2003 - 16:01:49 GMT
On Wed, Jan 29, 2003 at 03:19:00PM -0000, Mark Sutton wrote:
> I've just spent some time hacking the newvserver script to install
> VServers from local build-lists and RPM repository. It's helped me to
> better understand how everything hangs together, but there's one thing
> I don't get... What is the purpose of setting up the following mount
> point in /usr/lib/vserver/install-post.sh?
> if [ ! -f $VROOT/etc/fstab ] ; then
> echo /dev/hdv1 / ext2 defaults
> 1 1 >$VROOT/etc/fstab
> echo /dev/hdv1 / ext2 rw 1 1
> It was my understanding that root in a VServer couldn't mount/umount
> devices from within the VPS anyway, so what purpose does this serve?
several utilities (like df) use the mount entries (/etc/mtab)
for locating their devices/gathering information ...
for these utilities the fake entry is provided ...
if you use per vserver quota, you will also need a
special device to proxy the quota syscalls ...
> Also, what is the best way to entirely remove a VServer? When I do
> vserver XXX stop not everything is unmounted, so deleting all the
> contents is obviously not possible. Do I have to unmount everything
> manually and then delete or am I missing something here.
depending on the release version of the vserver scripts,
some or all automatic mounts are removed if possible
(i.e. no other programms or mounts active)
> Sorry for the newbie-ish questions but I'm nearly there with it all
> now ;)
no big deal ..
> I'll be happy to share my work with VServer once it's all figured out.
> Kind Regards,