vzquota : (error) Quota on syscall for 777: No such file or directory
Hello, I have two openvz servers, but on one server, I have an error with quotas. When I start the VM, I have : serveur ~ # vzctl start 777 Starting VPS ... vzquota : (error) Quota on syscall for 777: No such file or directory vzquota on failed [3] I can start the VM if I disable the quota in vz.conf Using sys-cluster/vzctl-3.0.10-r2, vzquota-3.0.8 and kernel 2.6.16-026test015. Here is what I have in my kernel : Quote: serveur ~ # gzcat /proc/config.gz | grep 'VZ\|QUOTA' # CONFIG_XFS_QUOTA is not set CONFIG_QUOTA=y # CONFIG_QUOTA_COMPAT is not set CONFIG_VZ_QUOTA=m # CONFIG_VZ_QUOTA_UNLOAD is not set CONFIG_VZ_QUOTA_UGID=y CONFIG_QUOTACTL=y # OpenVZ CONFIG_VZ_WDOG=m serveur ~ # What could I check ? Regards,
Re: vzquota : (error) Quota on syscall for 777: No such file or directory
Hi, > vzquota : (error) Quota on syscall for 777: No such file or directory folder exist to store the quota files ?
What kernel,vzquota and vzctl version do you use? Thanks.
Hi, Sorry, do I need any particular folder to store the quotas ? I just followed the howto generate a Gentoo VM from stage3 in the Wiki. Regards,
Hi, yes, you need a folder, where the quota-files are stored, i doesn't really know where the g2 set the var-folder of "vzquota" Please take a look in the vzquota-src: If variable "VARDIR" is set to "/var", than vzquota-var-folder is "/var/vzquota". or "strace vzquota show <veid> 2>&1 | grep open" ... on a debian host (as a example) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/libc.so.6", O_RDONLY) = 3 open("/var/lib/vzquota/quota.<veid>", O_RDWR|O_LARGEFILE) = 3 show's me, vzquota, opens a file in folder "/var/lib/vzquota" folder, reading the quota.<veid> stats.file!
Hi, Just checked, the folder(and the quota file) are presents : serveur ~ # vzctl start 777 Starting VPS ... vzquota : (error) Quota on syscall for 777: No such file or directory vzquota on failed [3] serveur ~ # vzquota show 777 resource usage softlimit hardlimit grace 1k-blocks 497308 1048676 1153534 inodes 36200 200100 220100 serveur ~ # vi /var/vzquota/quota.777 serveur ~ # ls -l /var/vzquota/quota.777 -rw------- 1 root root 131 2006-08-27 23:54 /var/vzquota/quota.777 serveur ~ # BTW, I created a vm such as described in : http://gentoo-wiki.com/HOWTO_OpenVZ And the vm starts without any problem. So the problem is probably not in openvz, but in the way I created the VM. I followed the guide : http://wiki.openvz.org/Gentoo_template_creation Regards,
Hi, ok, the quota.files exist, but please start the ve with --verbose mode, so you can see more information about the start process. $ vzctl --verbose start 777
Here are when I launch my vms. 777 is the vm that I want to create myself (from http://wiki.openvz.org/Gentoo_template_creation ) 101 is a gentoo vm that I downloaded ( as explained in http://gentoo-wiki.com/HOWTO_OpenVZ ) The problem is only on the 777. The 101 starts. It looks like there is smth missing in 777. serveur private # vzctl --verbose start 777 Unable to open /usr/lib/vzctl/modules/: No such file or directory Starting VPS ... Running: /usr/sbin/vzquota show 777 Running: /usr/sbin/vzquota on 777 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0 vzquota : (error) Quota on syscall for 777: No such file or directory vzquota on failed [3] serveur private # vzctl --verbose start 101 Unable to open /usr/lib/vzctl/modules/: No such file or directory Starting VPS ... Running: /usr/sbin/vzquota show 101 Running: /usr/sbin/vzquota on 101 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0 Mounting root: /mnt/files/vz/root/101 /mnt/files/vz/private/101 VPS is mounted
Hi Pivert, > serveur private # vzctl --verbose start 777 >Unable to open /usr/lib/vzctl/modules/: No such file or directory ... create this dir and the error is done, bug filled, but no response yet (http://bugzilla.openvz.org/show_bug.cgi?id=198) >Starting VPS ... >Running: /usr/sbin/vzquota show 777 >Running: /usr/sbin/vzquota on 777 -r 0 -b 1048676 -B 1153534 -i >200100 -I 220100 -e 0 -n 0 -s 0 >vzquota : (error) Quota on syscall for 777: No such file or >directory >vzquota on failed [3] ... where is the root and private folder of this ve ??? Is see no mount process for this one, please poste the config of ve 777! >serveur private # vzctl --verbose start 101 >Unable to open /usr/lib/vzctl/modules/: No such file or directory >Starting VPS ... >Running: /usr/sbin/vzquota show 101 >Running: /usr/sbin/vzquota on 101 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0 >Mounting root: /mnt/files/vz/root/101 /mnt/files/vz/private/101 >VPS is mounted All done, no error ... perfect!
Thanks, here it is... serveur private # ls -lh /mnt/files/vz/root/101 total 0 serveur private # ls -lh /mnt/files/vz/root/777 total 0 serveur private # ls -lh /mnt/files/vz/root/ total 8,0K drwxr-xr-x 2 root root 4,0K 2006-08-28 21:58 101 drwxr-xr-x 2 root root 4,0K 2006-08-27 23:54 777 serveur private # ls -lh /mnt/files/vz/private/ total 8,0K drwxr-xr-x 17 root root 4,0K 2006-08-28 21:58 101 drwxr-xr-x 17 root root 4,0K 2006-08-28 00:04 777 serveur private # cat /etc/vz/conf/777.conf KMEMSIZE="2752512:2936012" LOCKEDPAGES="32:32" PRIVVMPAGES="49152:53575" SHMPAGES="8192:8192" NUMPROC="65:65" PHYSPAGES="0:2147483647" VMGUARPAGES="6144:2147483647" OOMGUARPAGES="6144:2147483647" NUMTCPSOCK="80:80" NUMFLOCK="100:110" NUMPTY="16:16" NUMSIGINFO="256:256" TCPSNDBUF="319488:524288" TCPRCVBUF="319488:524288" OTHERSOCKBUF="132096:336896" DGRAMRCVBUF="132096:132096" NUMOTHERSOCK="80:80" NUMFILE="2048:2048" DCACHESIZE="1048576:1097728" NUMIPTENT="128:128" AVNUMPROC="40:40" CPUUNITS="1000" ONBOOT="no" ORIGIN_SAMPLE="vps.basic" DISKSPACE="1048576:1153434" DISKINODES="200000:220000" QUOTATIME="0" DISTRIBUTION="gentoo" OSTEMPLATE="gentoo" serveur private # cat /etc/vz/vz.conf ## Global parameters VIRTUOZZO=yes LOCKDIR=/mnt/files/vz/lock DUMPDIR=/mnt/files/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=/mnt/files/vz/template ## Defaults for VEs VE_ROOT=/mnt/files/vz/root/$VEID VE_PRIVATE=/mnt/files/vz/private/$VEID CONFIGFILE="vps.basic" DEF_OSTEMPLATE="fedora-core-4" ## Load vzwdog module VZWDOG="no" IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length" serveur private #
Here is all the debug & trace on the vzquota command that fails... serveur conf # strace -f -e trace=file /usr/sbin/vzquota -vv on 777 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0 execve("/usr/sbin/vzquota", ["/usr/sbin/vzquota", "-vv", "on", "777", "-r", "0", "-b", "1048676", "-B", "1153534", "-i", "200100", "-I", "220100", "-e", "0", ...], [/* 68 vars */]) = 0 access("/etc/ld.so.preload", R_OK) = 0 open("/etc/ld.so.preload", O_RDONLY) = 3 open("/etc/libcwait.so", O_RDONLY) = 3 ....... (removed some lines looking for libs) open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/libc.so.6", O_RDONLY) = 3 open("/dev/urandom", O_RDONLY) = 3 open("/var/vzquota/quota.777", O_RDWR|O_LARGEFILE) = 3 vzquota : (debug) file /var/vzquota/quota.777 3 was opened vzquota : (debug) Start reading quota file vzquota : (debug) Reading header from file vzquota : (debug) Quota file was read vzquota : (debug) Start reading quota file vzquota : (debug) Reading quota file checksum vzquota : (debug) Checksum is 64bit number 2181476744587317667 vzquota : (debug) Quota file was read vzquota : (debug) Computing hash of quota file (first 123 bytes) vzquota : (debug) Hash is 64bit number 2181476744587317667 vzquota : (debug) Start reading quota file vzquota : (debug) Reading header from file vzquota : (debug) Reading 1-level quota stat from file vzquota : (debug) Reading mount point path from file vzquota : (debug) Reading 2-level quota info from file vzquota : (debug) Reading ugid objects from file: 0 entries total vzquota : (debug) Reading quota file checksum vzquota : (debug) Checksum is 64bit number 2181476744587317667 vzquota : (debug) Quota file was read vzquota : (debug) vzquotactl ioctl start:cmd 10: id 777 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 10: id 777: status -1 vzquota : (debug) vzquotactl ioctl start:cmd 5: id 777 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 5: id 777: status 0 vzquota : (debug) vzquotaugidctl ioctl start:cmd 6: id 777 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) vzquotaugidctl ioctl end:cmd 6: id 777: status 0 vzquota : (debug) vzquotactl ioctl start:cmd 7: id 777 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 7: id 777: status -1 vzquota : (debug) vzquotactl ioctl start:cmd 6: id 777 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 6: id 777: status 0 vzquota : (error) Quota on syscall for 777: No such file or directory Process 21438 detached serveur conf # Here is the same (only the end) for the vzquota that works : vzquota : (debug) Quota file was read vzquota : (debug) vzquotactl ioctl start:cmd 10: id 101 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 10: id 101: status -1 vzquota : (debug) vzquotactl ioctl start:cmd 5: id 101 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 5: id 101: status 0 vzquota : (debug) vzquotaugidctl ioctl start:cmd 6: id 101 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) vzquotaugidctl ioctl end:cmd 6: id 101: status 0 vzquota : (debug) vzquotactl ioctl start:cmd 7: id 101 open("/dev/vzctl", O_RDWR|O_LARGEFILE) = 4 vzquota : (debug) attempt new ioctl[-1072682239] vzquota : (debug) vzquotactl ioctl end:cmd 7: id 101: status 0 vzquota : (info) User/group quota is off vzquota : (debug) Start writing quota file vzquota : (debug) Writing header to file vzquota : (debug) Writing 1-level quota stat to file vzquota : (debug) Writing mount point path to file vzquota : (debug) Writing 2-level quota info to file vzquota : (debug) Writing ugid objects to file: 0 entries total vzquota : (debug) Writing quota file checksum vzquota : (debug) Computing hash of quota file (first 133 bytes) vzquota : (debug) Hash is 64bit number 7024669666204306271 vzquota : (debug) Quota file was written vzquota : (debug) file 3 was closed vzquota : (info) Quota was switched on for id 101 Process 22536 detached
Can you specify, please, on what filesystem this "unlucky" VE resides?
This is on ext3 : serveur ~ # mount | grep /mnt/files /dev/md/4 on /mnt/files type ext3 (rw) But the openvz vm that works is on the same fs... The only difference regarding the howto, is that I used a Stage3 2006.1 instead of 2006.0. This evening, I will retry with the 2006.0 stage3... Regards,
Mhh.. Sorry, I used the stage3 2006.0 for the 777. So I downloaded the stage3 again and made an other vm 701. And this time, it works. I don't know the reason. serveur private # ls -l 701/stage3-i686-2006.0.tar.bz2 -rw-r--r-- 1 root root 104949773 2006-08-29 22:08 701/stage3-i686-2006.0.tar.bz2 serveur private # ls -l 777/stage3-i686-2006.0.tar.bz2 -rw-r--r-- 1 root root 104949773 2006-08-27 23:38 777/stage3-i686-2006.0.tar.bz2 Really sorry for such an annoyance... I don't know what I miss in the 777vm ?! I remade all the howto on the 777vm, but it still doesn't work. However simply renaming the folder alowed me to start it : serveur lib # vzctl start 777 Starting VPS ... vzquota : (error) Quota on syscall for 777: No such file or directory vzquota on failed [3] serveur lib # cd .. serveur 777 # cd .. serveur private # ls 101 701 702 777 serveur private # mv 777 703 serveur private # vzctl set 703 --applyconfig vps.basic --save Saved parameters for VPS 703 serveur private # vzctl start 703 Warning: distribution not specified default used /etc/vz/dists/default Starting VPS ... Initializing quota ... VPS is mounted Setting CPU units: 1000 VPS start in progress... serveur private # Regards,
The incredible is that if I go back to 777 folder, this fails again : serveur private # rm /etc/vz/conf/777.conf serveur private # mv 703 777 serveur private # vzctl set 777 --applyconfig vps.basic --save Saved parameters for VPS 777 serveur private # vzctl start 777 Warning: distribution not specified default used /etc/vz/dists/default Starting VPS ... vzquota : (error) Quota on syscall for 777: No such file or directory vzquota on failed [3] serveur private # Very strange isn't it ?
Could you try just to remove /var/vzquota/quota.777 ? updated: Hm. Sorry, don't think it is helps.
I am having this same issue, can anyone figure out what is going on here? The only difference is that I am using Gentoo 2006.1 instead of 2006.0. - Inverted
Here's what worked for me: after I've moved vm from /vz/private/24 to /mnt/sdb/vz/private/24 I was getting the same message. Deleting /var/vzquota/vzquota.24 and reboot the root machine solved the problem. Valmont, thanks for your suggestion!