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
[Updated on: Mon, 28 August 2006 21:32]
Report message to a moderator