Package: vzctl
Version: 3.0.11-13

The "vzsplit" program seems to use "/vz" instead of "/var/lib/vz" to
determine available space for splitting and therefore gives inaccurate
information.

On my system, "/vz" is a symlink to "/var/lib/vz".  "/var/lib/vz" is a
separate partition.  Here are my mounts:

---
hera:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1             4.7G  1.1G  3.7G  23% /
/dev/sdc3              28G  8.2G   20G  30% /var/lib/vz
---

Here is my "vzsplit" output:

---
hera:~# vzsplit -n 20
WARNING: Recommended minimal sizeof /vz partition is 20Gb!
WARNING: /vz partition do not have space required for 20 VPS
The maximum allowed value is 0
Default disc space values will be used

# Configuration file generated by vzsplit for 20 VPS
# on HN with total amount of physical mem 1009 Mb
# low memory 881 Mb, swap size 1906 Mb, Max treads 8000
# Resourse commit level 0:
# Free resource distribution. Any parameters may be increased
# Primary parameters
NUMPROC="400:400"
AVNUMPROC="112:112"
NUMTCPSOCK="400:400"
NUMOTHERSOCK="400:400"
VMGUARPAGES="155025:2147483647"

# Secondary parameters
KMEMSIZE="9241559:10165714"
TCPSNDBUF="1442119:3080519"
TCPRCVBUF="1442119:3080519"
OTHERSOCKBUF="721059:2359459"
DGRAMRCVBUF="721059:721059"
OOMGUARPAGES="155025:2147483647"
PRIVVMPAGES="155025:170527"

# Auxiliary parameters
LOCKEDPAGES="451:451"
SHMPAGES="15502:15502"
PHYSPAGES="0:2147483647"
NUMFILE="3584:3584"
NUMFLOCK="358:393"
NUMPTY="40:40"
NUMSIGINFO="1024:1024"
DCACHESIZE="2004256:2064384"
NUMIPTENT="100:100"
DISKSPACE="204799:225280"
DISKINODES="80000:88000"
CPUUNITS="4954"
---

As you can see, it can't figure out that I'm using the "/var/lib/vz"
as a separate partition and it uses instead the default "diskspace"
attribute of 200MB.

My "/etc/vz/vz.conf" uses "/var/lib/vz" for everything instead of
"/vz".  Here's my "vz.conf" file:

---
hera:~# cat /etc/vz/vz.conf
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

## Template parameters
TEMPLATE=/var/lib/vz/template

## Defaults for VEs
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="debian-4.0-i386-generictemplate"

## Load vzwdog module
VZWDOG="no"

IPTABLES="ipt_REJECT ipt_LOG ipt_state ipt_tos ipt_limit ipt_multiport
iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length
iptable_nat ip_conntrack_ftp ip_nat_ftp"
---


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to