|
|
|
|
Re: vzquota : (error) Quota on syscall for 777: No such file or directory [message #5711 is a reply to message #5708] |
Mon, 28 August 2006 18:46 |
|
curx
Messages: 739 Registered: February 2006 Location: Nürnberg, Germany
|
Senior Member |
|
|
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!
|
|
|
|
|
|
|
|
Re: vzquota : (error) Quota on syscall for 777: No such file or directory [message #5719 is a reply to message #5718] |
Mon, 28 August 2006 21:22 |
pivert
Messages: 11 Registered: August 2006 Location: Belgium
|
Junior Member |
|
|
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
|
|
|
|
|
Re: vzquota : (error) Quota on syscall for 777: No such file or directory [message #5760 is a reply to message #5750] |
Tue, 29 August 2006 20:25 |
pivert
Messages: 11 Registered: August 2006 Location: Belgium
|
Junior Member |
|
|
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,
[Updated on: Tue, 29 August 2006 20:34] Report message to a moderator
|
|
|
|
|
|
|
|