Re: [vserver] vrsetup and quota on webmin

From: ADNET Ghislain <gadnet_at_aqueos.com>
Date: Thu 24 Apr 2008 - 08:16:07 BST
Message-ID: <481033B7.7070303@aqueos.com>

> probably because the tools are trying to be smart again
> and cannot handly specific mtab/fstab entries properly
>
>
i wondered if the fact that repquota / fails is normal or is a
configuration error on my part ?
The strace does not seems to provide information on this :(

*GUEST: :/etc/mail%(root)> strace -Ff repquota /*
execve("/usr/sbin/repquota", ["repquota", "/"], [/* 28 vars */]) = 0
uname({sys="Linux", node="vserver04.messerveurs.net", ...}) = 0
brk(0) = 0x806b000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f54000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10965, ...}) = 0
mmap2(NULL, 10965, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f51000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1245488, ...}) = 0
mmap2(NULL, 1251484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e1f000
mmap2(0xb7f47000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x128) = 0xb7f47000
mmap2(0xb7f4e000, 10396, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f4e000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e1e000
mprotect(0xb7f47000, 20480, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e1e8e0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f51000, 10965) = 0
brk(0) = 0x806b000
brk(0x808c000) = 0x808c000
open("/etc/nsswitch.conf", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=475, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f53000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 475
close(3) = 0
munmap(0xb7f53000, 4096) = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0
stat64("/proc/fs/xfs/stat", 0xbf820848) = -1 ENOENT (No such file or
directory)
quotactl(Q_XGETQSTAT|USRQUOTA, NULL, 0, NULL) = -1 EFAULT (Bad address)
stat64("/proc/sys/fs/quota", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0
open("/etc/mtab", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=186, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f53000
read(3, "/dev/hdv1\t/\tufs\trw,usrquota,grpq"..., 4096) = 186
statfs64("/", 84, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
f_blocks=15223823, f_bfree=14341937, f_bavail=13568613, f_files=7733248,
f_ffree=7655795, f_fsid={-1068027565, -1813793997}, f_namelen=255,
f_frsize=4096}) = 0
stat64("/dev/hdv1", {st_mode=S_IFBLK|0660, st_rdev=makedev(4, 0), ...}) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f53000, 4096) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
write(2, "repquota: ", 10repquota: ) = 10
write(2, "Mountpoint (or device) / not fou"..., 36Mountpoint (or device)
/ not found.
) = 36
write(2, "repquota: ", 10repquota: ) = 10
write(2, "Not all specified mountpoints ar"..., 47Not all specified
mountpoints are using quota.
) = 47
exit_group(1) = ?
Process 10127 detached

GUEST: :/etc/mail%(root)> repquota /
repquota: Mountpoint (or device) / not found.
repquota: Not all specified mountpoints are using quota.
GUEST:vserver04:/etc/mail%(root)> repquota /dev/hdv1
*** Report for user quotas on device /dev/hdv1
Block grace time: 7days; Inode grace time: 7days
                        Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 1980996 0 0 41065 0 0
man -- 304 0 0 16 0 0
....

GUEST: :/etc/mail%(root)>
GUEST: :/etc/mail%(root)> more "/etc/mtab"
/dev/hdv1 / ufs rw,usrquota,grpquota 0 0

none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/volume1/tmp40358 /tmp ufs defaults,rw,noatime,nodev,noexec,nosuid 0 0

-- 
Cordialement,
Ghislain

Received on Fri Apr 25 02:20:53 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 25 Apr 2008 - 02:20:57 BST by hypermail 2.1.8