Package: vzctl
Severity: important

Hi Dusty

On Tue, Mar 20, 2007 at 03:27:31PM -0700, Dusty Wilson wrote:
> Ola,
> 
> I'm sending this to you because you're listed as maintainer of the
> "vzctl" Debian package.  I don't know if there is a more proper place
> to file a bug about this.  If so, please pardon my message and let me
> know where I should be filing this instead.

[EMAIL PROTECTED] is a good place, but I have done that for you now. :)

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

I know. This bug was actually fixed just a few days ago, but only in the
version in experimental.

> 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.

This is interesting, but quite likely to be caused by a symlink...
You could try a bind mount instead, just to see if that works better.

> 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"
> ---
> 
> Let me know if there is anything else you need to know from me.

No as I know the faulty lines in the source, I do not need that. :)

I'll upload a version to unstable now to see if that works better. But in
that version you need to remove the symlink...

Regards,

// Ola

> Thanks,
> Dusty Wilson
> 
> 
> -- 
> Dusty Wilson
> Conceptual Arc, LLC
> Cell: 360-701-4943
> 
> Conceptual Arc, LLC
> [formerly The Zetein Network, LLC]
> 309 Washington St NE Ste B
> Olympia, WA 98501
> Office: 360-705-2445
> www.conceptualarc.com
> 

-- 
 --- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ----
/  [EMAIL PROTECTED]                   Annebergsslingan 37        \
|  [EMAIL PROTECTED]                   654 65 KARLSTAD            |
|  http://opalsys.net/               Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---------------------------------------------------------------


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

Reply via email to