[Users] vzctl start

albinootje albinootje at gmail.com
Thu Aug 21 16:37:48 EDT 2008


Papp Tamás wrote:

hi,

> $ vzctl start 100
> Starting VE ...
> vzquota : (error) Quota on syscall for 100: Device or resource busy
> vzquota on failed [3]
> 
> $ umount /vz/100/private/tmp

> Why could it not start with other mounted partitions inside the VE?

you should use /vz/100/root/ for mounting other things,
not /vz/100/private/

and you can do that automatically with a script, e.g.

# ls -la  /etc/vz/conf/100.mount

-rwxr-xr-x 1 root root 1804 2008-06-06 15:24 /etc/vz/conf/100.mount
^^^^^^
(must be executable)


#!/bin/bash
# Mount script to bind-mount /var/something into a VPS
[ -f /etc/vz/vz.conf ] || exit 1
[ -f $VE_CONFFILE ] || exit 1

. /etc/vz/vz.conf
. $VE_CONFFILE

echo -n "mounting shares in#!/bin/bash
# Mount script to bind-mount /var/something into a VPS
[ -f /etc/vz/vz.conf ] || exit 1
[ -f $VE_CONFFILE ] || exit 1

. /etc/vz/vz.conf
. $VE_CONFFILE

echo -n "mounting shares inside web-VPS..."

mkdir -p /var/lib/vz/root/100/var/www/random-share
mount -n --bind /var/www/random-share
/var/lib/vz/root/100/var/www/random-share


More information about the Users mailing list