OpenVZ Forum


Home » General » Support » Openvz User/Group quotas: Segmentation Fault
Openvz User/Group quotas: Segmentation Fault [message #26686] Wed, 30 January 2008 19:59 Go to next message
andre is currently offline  andre
Messages: 36
Registered: January 2008
Member
Hello,

I am new on this forum (and OpenVZ) and I am having some trouble setting up openvz user/group quotas inside VE's.

I am trying openvz on 2 servers. On the first one, quotas worked fine (same kernel, but first one is i386 and second one is Core2Duo :
Linux server 2.6.22-ovz005.1 #1 SMP Thu Nov 15 15:35:00 MSK 2007 x86_64 x86_64 x86_64 GNU/Linux

- usrquota/grpquota are not set on the HN partitions. Is that correct?


# vzctl set 151 --quotaugidlimit 100 --save
Configure meminfo: 35000
Setting quota ugidlimit: 100
Saved parameters for VE 151


## INSIDE THE VE:
# vzctl enter 151
entered into VE 151
goebbels:/# quota
Segmentation fault

goebbels:/# ls -la /*quota*
lrwxrwxrwx 1 root root 39 Jan 30 19:14 /aquota.group -> /proc/vz/vzaquota/00000012/aquota.group
lrwxrwxrwx 1 root root 38 Jan 30 19:14 /aquota.user -> /proc/vz/vzaquota/00000012/aquota.user

goebbels:/# cat /proc/mounts
simfs / simfs rw 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0

goebbels:/# cat /etc/mtab
/dev/simfs / reiserfs rw,usrquota,grpquota 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0

goebbels:/# repquota -a
*** Report for user quotas on device /dev/simfs
Block grace time: 00:00; Inode grace time: 00:00
Block limits File limits
User used soft hard grace used soft hard grace
------------------------------------------------------------ ----------
root -- 154484 0 0 7984 0 0
man -- 148 0 0 16 0 0
news -- 4 0 0 1 0 0

goebbels:/# edquota -u root
Segmentation fault



/vz/private is a separated partition dedicated for VE's. Can i have multiple VE's with user/group quotas on the same partition (/vz/private)?

Any help will be aprreciated.
Thanks a lot.

Re: Openvz User/Group quotas: Segmentation Fault [message #26688 is a reply to message #26686] Wed, 30 January 2008 20:03 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi, your commands look sound. I would try the RHEL5 2.6.18 kernel, that is the only thing different between your box and mine.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Openvz User/Group quotas: Segmentation Fault [message #26690 is a reply to message #26688] Wed, 30 January 2008 20:10 Go to previous messageGo to next message
andre is currently offline  andre
Messages: 36
Registered: January 2008
Member
I can't try an older kernel because they are incompatible with our intel motherboard Sad
Re: Openvz User/Group quotas: Segmentation Fault [message #26696 is a reply to message #26690] Wed, 30 January 2008 23:06 Go to previous message
andre is currently offline  andre
Messages: 36
Registered: January 2008
Member
I think this is a bug. I was trying quota on 32bits VE's. The HN is 64bits. Now I installed a 64bit VE and quota worked. To make sure this have to do with the problem, i download both ubuntu precreated images (amd64 and i386 - on openvz.org). Quota works fine on amd64 and does not work on i386.

Here is the last lines of the strace output on a i386 VE:

open("/etc/mtab", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=258, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fdf000
read(3, "/dev/simfs / reiserfs rw,usrquot"..., 4096) = 258
statfs64("/", 84, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=2097152, f_bfree=2058467, f_bavail=2058467, f_files=800000, f_ffree=791992, f_fsid={-1891294066, 1551446465}, f_namelen=255, f_frsize=4096}) = 0
stat64("/dev/simfs", {st_mode=S_IFBLK|010, st_rdev=makedev(0, 18), ...}) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7fdf000, 4096) = 0
stat64("/dev/simfs", {st_mode=S_IFBLK|010, st_rdev=makedev(0, 18), ...}) = 0
getuid32() = 0
quotactl(0xd00 /* Q_??? */|USRQUOTA, "/dev/simfs", 0, 0xbfcd49d4) = 0
quotactl(0x900 /* Q_??? */|USRQUOTA, "/dev/simfs", 0, 0xbfcd4e0c) = 0
geteuid32() = 0
quotactl(0xd00 /* Q_??? */|USRQUOTA, "/dev/simfs", 0, 0xbfc94de8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 439 detached
Previous Topic: Kernel 2.6.18-53.el5.028stab051.1ent + connlimit module
Next Topic: Intel achci errors on RHEL kernel
Goto Forum:
  


Current Time: Sat Nov 09 14:59:57 GMT 2024

Total time taken to generate the page: 0.03176 seconds