[SOLVED] How disable all quota for an OpenVZ CT?

udo

Distinguished Member
Apr 22, 2009
5,975
196
163
Ahrensburg; Germany
Hi,
I have an strange issue with an bacula backup-server (bacula-dir + bacula-sd) running inside an CT.
All run fine except big full-backups stops during other backups starts/running.

With big backups I mean app. 5 TB, which are spooled first to disk (in 600Gb pieces) and copied to an lto-6 drive.

Bacula give following error:
Code:
Error: bsock.c:389 Write error sending 65536 bytes to Storage daemon:192.168.2.3:9103: ERR=Connection reset by peer
 Fatal error: backup.c:1190 Network send error to SD. ERR=Connection reset by peer
  Start time:             16-Oct-2014 09:58:57
  End time:               17-Oct-2014 21:42:15
  FD Bytes Written:       5,180,852,816,553 (5.180 TB)
Jobs which are started directly after that are also failed:
Code:
Error: bsock.c:389 Write error sending 65536 bytes to Storage daemon:192.168.2.3:9103: ERR=Connection reset by peer
 Fatal error: backup.c:1190 Network send error to SD. ERR=Connection reset by peer
  Start time:             17-Oct-2014 21:47:44
  End time:               17-Oct-2014 21:52:20
  FD Bytes Written:       14,501,165,376 (14.50 GB)
In messages on the host are quota-warnings:
Code:
Oct 16 08:52:40 prox-b kernel: vmbr4: port 4(veth102.0) entering forwarding state
Oct 16 21:42:06 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 16 21:52:22 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 16 22:02:20 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 16 22:12:39 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 17 21:41:40 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 17 21:41:40 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 17 21:41:51 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 17 21:42:33 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 17 21:51:35 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
Oct 17 21:52:06 prox-b kernel: VZ QUOTA: disk softlimit exceeded for id=102
On Oct 16 2* the process don't fail!

I had expand the memory/disk and swap-space for the CT first:
mem from 4GB to 8GB and then 12 GB
disk-size from 10GB (?) to 16GB and then 24GB
swap from 512M (?) to 1GB and then 4GB

and during the last try disable inode-quota with DISKINODES="unlimited".

CT-config:
Code:
ONBOOT="no"

PHYSPAGES="0:3145728"
SWAPPAGES="0:1048576"
KMEMSIZE="5856296960:6442450944"
DCACHESIZE="2927624192:3221225472"
LOCKEDPAGES="1572864"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="0:unlimited"
OOMGUARPAGES="0:unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="25165824:27682406"
#DISKINODES="4800000:5280000"
DISKINODES="unlimited"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"

# CPU fair scheduler parameter
CPUUNITS="1000"
CPUS="2"
HOSTNAME="backup-srv"
SEARCHDOMAIN="local"
NAMESERVER="192.168.2.220 192.168.2.230"
NETIF="ifname=eth0,bridge=vmbr4,mac=B6:51:04:01:52:BB,host_ifname=veth102.0,host_mac=9A:75:0B:44:77:D4"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/102"
OSTEMPLATE="debian-7.0-standard_7.0-2_amd64.tar.gz"
Inside the CT there aren't any restrictions
Code:
# vzctl exec 102 ulimit
unlimited

Any hint which parameter must be set/changed to avoid any form of quota-warning?

Udo
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!