Subject: Re: [vserver] DLimit Bug in patch-2.6.31.6-vs2.3.0.36.26.diff ?
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Thu, 10 Dec 2009 13:34:49 +0100

On Wed, Dec 09, 2009 at 02:44:27PM +0100, Cryptronic wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Hi list,

> I'm currently testing patch-2.6.31.6-vs2.3.0.36.26.diff but with this
> patch dlimits seems to be broken:

> Every Guest gets the following attributes:

> <vs> #df -h
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hdv1              3051392    194132   2702304   7% /

> <host> # vserver-info
> Versions:
>                    Kernel: 2.6.31.6-vs2.3.0.36.26
>                    VS-API: 0x00020305
>              util-vserver: 0.30.216-pre2864; Nov 29 2009, 00:39:14

> Features:
>                        CC: gcc, gcc (Debian 4.3.4-6) 4.3.4
>                       CXX: g++, g++ (Debian 4.3.4-6) 4.3.4
>                  CPPFLAGS: ''
>                    CFLAGS: '-Wall -g  -O2 -std=c99 -Wall -pedantic -W
> - -funit-at-a-time'
>                  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
> - -fmessage-length=0 -funit-at-a-time'
>                build/host: x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
>              Use dietlibc: yes
>        Build C++ programs: yes
>        Build C99 programs: yes
>            Available APIs: v13,net,v21,v22,v23,netv2
>             ext2fs Source: e2fsprogs
>     syscall(2) invocation: alternative
>       vserver(2) syscall#: 236/glibc
>                crypto api: nss
>           python bindings: no
>    use library versioning: yes
> 
> Paths:
>                    prefix: /usr
>         sysconf-Directory: /etc
>             cfg-Directory: /etc/vservers
>          initrd-Directory: $(sysconfdir)/init.d
>        pkgstate-Directory: /var/run/vservers
>           vserver-Rootdir: /var/lib/vservers

> <host> # head  /etc/vservers/vs/dlimits/0/*
> ==> /etc/vservers/vs/dlimits/0/directory <==
> /var/lib/vservers/vs

> ==> /etc/vservers/vs/dlimits/0/inodes_total <==
> 1000000

> ==> /etc/vservers/vs/dlimits/0/reserved <==
> 5

> ==> /etc/vservers/vs/dlimits/0/space_total <==
> 11440000

looks fine to me so far ...

> Any more information required?

yeah, what is the brokenness you are trying to report?

note: you are aware that the space is given in 1k
blocks and being over the actual disk size (10GB
in your case) will fall back to the actual disk
limits (seems to be 2.9GB here)?

TIA,
Herbert

> Best regards

> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.13 (GNU/Linux)
> 
> iEYEARECAAYFAksfqbsACgkQOBdlVlcPuhztWACdHgZwwenldGfMLbuwSzA+LOjX
> CXcAoK5jmO3cqnrtC3TBzZrhWNEZz4GC
> =w8lv
> -----END PGP SIGNATURE-----