Skip to contentSkip to conversation

Quotas not fully working in 2.4.21-pre5

PAID PRIORITY SUPPORT REQUEST Philippe Gramoullé 2 participants 8 messages Apr 5, 2003

lore
Share & tools
lore
#0 lore raw

Object: Can't set quotas with 2.4.21-pre5

Hi,

After we upgraded from 2.4.19-pre6 + quota patches , 2.4.21-pre5 + data-logging and quota
patches, we can't set quotas anymore.

Well, everything seems to work ( partition is mounted with grpquota ) , quotaon is enabled on that partition and the symptom is that quotactl fails :

smembp01:~# mount | egrep sdb1
/dev/sdb1 on /data/members type reiserfs (rw,noatime,nodiratime,notail,grpquota)
smembp01:~# quotaon -p /dev/sdb1
group quota on /data/members (/dev/sdb1) is on
user quota on /data/members (/dev/sdb1) is off

here is an extract from 2 straces:

quotactl(Q_SETQLIM|GRPQUOTA, "/dev/sdb1", 502242, {2048, 0, 0, 0, 0, 0, 0, 0}) = -1 EINVAL (Invalid argument)

quotactl(Q_SETQLIM|GRPQUOTA, "/dev/sdb1", 32066, {2048, 0, 0, 0, 0, 0, 0, 0}) = -1 EINVAL (Invalid argument)

This problem is really nasty as this filer is used for the paying services and now clients can use as much space as they want.

Thanks,

philippe.

smembp01:~# repquota -gv -F vfsv0 /dev/sdb1 | wc -l
  63619
smembp01:~# repquota -gv -F vfsv0 /dev/sdb1 | more
*** Report for group quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --   24435       0       0         126334     0     0       
#32768    --      13       0       0              5     0     0       
#33261    --       9       0       0              4     0     0       
#33754    --      13       0       0              5     0     0       
#34247    --       9       0       0              4     0     0       
#1972     --    4473       0       0            364     0     0       
#100276   --       9       0       0              4     0     0       
#34740    --  107909       0       0           2639     0     0       
#35233    --    5455       0       0            322     0     0       
#200059   --   22141       0       0             87     0     0       
#200552   --      13       0       0              5     0     0       
#201045   --       9       0       0              4     0     0       
#201538   --      13       0       0              5     0     0       
#70466    --      13       0       0              5     0     0       
#400118   --      13       0       0              5     0     0       
#40163    --      13       0       0              5     0     0       
#400611   --       9       0       0              4     0     0       
#40656    --       9       0       0              4     0     0       
#401104   --      13       0       0              5     0     0       
#41149    --      13       0       0              5     0     0       
#401597   --      13       0       0              5     0     0       
#32425    --       9       0       0              4     0     0       
#32918    --       9       0       0              4     0     0       
#150      -- 12297295       0       0        1764086     0     0       
#33411    --       9       0       0              4     0     0       
#33904    --      13       0       0              5     0     0       
#1629     --      13       0       0              5     0     0       
#34397    --       9       0       0              4     0     0       
#34890    --      95       0       0             22     0     0       
#35383    --       9       0       0              4     0     0       
#200702   --       9       0       0              4     0     0       
#70123    --      13       0       0              5     0     0       
#201195   --       9       0       0              4     0     0       
#70616    --       9       0       0              4     0     0       
#201688   --       9       0       0              4     0     0       
#400268   --       9       0       0              4     0     0       
#40313    --      13       0       0              5     0     0       
#400761   --      13       0       0              5     0     0       
#40806    --      13       0       0              5     0     0       
#401254   --       9       0       0              4     0     0       
#500051   --      13       0       0              5     0     0       
#401747   --      13       0       0              5     0     0       
#907944   --    5986       0       0            107     0     0       
#23208    --      13       0       0              5     0     0       
#23701    --   16662       0       0             53     0     0       
#908437   --      34       0       0             15     0     0       
....
....
etc..
#1 lore raw

Sorry. Wrong address.

This was meant to stay private but lack of sleep didn't help :)

Anyway, no big deal :)

Now that people know that we have a paid support, i take the opportunity to say that it is by far the best and fastest support that i've ever seen from a vendor and people who can afford it should take a support contract from Namesys :)

Thanks,

Philippe

#2 lore raw
In reply to Philippe Gramoullé

Hello!

Quoted 3 lines · Philippe Gramoull?

Object: Can't set quotas with 2.4.21-pre5
After we upgraded from 2.4.19-pre6 + quota patches , 2.4.21-pre5 + data-logging and quota
patches, we can't set quotas anymore.

Have you enabled all the compatibility stuff in kernel config? (show the relevant part of .config please). Everything was worked for me last time I tried (at the time of creatign those patches).
I will do more tests now and see what will happen.
What quotatools version do you have?

Quoted 5 lines

here is an extract from 2 straces:
quotactl(Q_SETQLIM|GRPQUOTA, "/dev/sdb1", 502242, {2048, 0, 0, 0, 0, 0, 0, 0}) = -1 EINVAL (Invalid argument) quotactl(Q_SETQLIM|GRPQUOTA, "/dev/sdb1", 32066, {2048, 0, 0, 0, 0, 0, 0, 0}) = -1 EINVAL (Invalid argument) This problem is really nasty as this filer is used for the paying services and now clients can use as much space as they want.

So, you mean that even old quota limits that were set previously are not enforced?

Bye,
Oleg

#3 lore raw

On Sat, 5 Apr 2003 11:42:00 +0400
Oleg Drokin <[email protected]> wrote:

  | Hello!
  | 
  | On Sat, Apr 05, 2003 at 02:45:29AM +0200, Philippe Gramoull? wrote:
  | 
  | > Object: Can't set quotas with 2.4.21-pre5
  | >  After we upgraded from 2.4.19-pre6 + quota patches , 2.4.21-pre5 + data-logging and quota
  | > patches, we can't set quotas anymore.
  | 
  | Have you enabled all the compatibility stuff in kernel config? (show the relevant part of .config please).

Well, i think so yes.

You'll find attached the .config.

  | Everything was worked for me last time I tried (at the time of creatign those patches).
  | I will do more tests now and see what will happen.
  | What quotatools version do you have?

quota is version 3.07-2 ( debian package )
quotatool is version 1.3.0-1 ( debian package )

  | 
  | > here is an extract from 2 straces:
  | > quotactl(Q_SETQLIM|GRPQUOTA, "/dev/sdb1", 502242, {2048, 0, 0, 0, 0, 0, 0, 0}) = -1 EINVAL (Invalid argument)
  | > quotactl(Q_SETQLIM|GRPQUOTA, "/dev/sdb1", 32066, {2048, 0, 0, 0, 0, 0, 0, 0}) = -1 EINVAL (Invalid argument)
  | > This problem is really nasty as this filer is used for the paying services and now clients can use as much
  | > space as they want.
  | 
  | So, you mean that even old quota limits that were set previously are not enforced?

Yes, exactly.

Thanks,

Philippe

#4 lore raw

Hello!

Quoted 7 lines · Philippe Gramoull?
  | > Object: Can't set quotas with 2.4.21-pre5
  | >  After we upgraded from 2.4.19-pre6 + quota patches , 2.4.21-pre5 + data-logging and quota
  | > patches, we can't set quotas anymore.
  | 
  | Have you enabled all the compatibility stuff in kernel config? (show the relevant part of .config please).

Well, i think so yes.
You'll find attached the .config.

# CONFIG_QIFACE_COMPAT is not set
suggests that you do not have compatibility stuff enabled.
Please enable it and see if it cures the problem?
At least that's how I forced my quotatools to work.
Well, mine are 3.03 and your are 3.07, help text says that this option is only required for quota tools <= 3.04. But I still think you should try it.

Bye,
Oleg

#5 lore raw

On Sat, 5 Apr 2003 15:22:15 +0400
Oleg Drokin <[email protected]> wrote:

| # CONFIG_QIFACE_COMPAT is not set
| suggests that you do not have compatibility stuff enabled.

I didn't need compatibility. We use the new vfsv0 format.

| Please enable it and see if it cures the problem?

Ok , will do.

| At least that's how I forced my quotatools to work.

Hmm, that's not clearly stated that it should be set even if we use the new quota format.

I would be happy if it cures the problem but i would still find it odd.

| Well, mine are 3.03 and your are 3.07, help text says that this option is only required for quota | tools <= 3.04. But I still think you should try it.

Ok, i'll do that right now.

Thanks,

Philippe

#6 lore raw

Hello!

Quoted 3 lines · Philippe Gramoull?

| # CONFIG_QIFACE_COMPAT is not set
| suggests that you do not have compatibility stuff enabled.
I didn't need compatibility. We use the new vfsv0 format.

It have nothing to do with format.
This is compat interface tools<->kernel, as I understand it.

Bye,
Oleg

#7 lore raw
In reply to Philippe Gramoullé

Hi,

Does the list manager suppress attachments ?

Here is my config below ( edited, witout the "is not set" variables )

Thanks,

Philippe

# Automatically generated by make menuconfig: don't edit #
CONFIG_X86=y
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
CONFIG_MPENTIUMIII=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_F00F_WORKS_OK=y
CONFIG_X86_MCE=y
CONFIG_HIGHMEM4G=y
CONFIG_HIGHMEM=y
CONFIG_HIGHIO=y
CONFIG_MTRR=y
CONFIG_SMP=y
CONFIG_X86_TSC=y
CONFIG_HAVE_DEC_LOCK=y

#
# General setup
#
CONFIG_NET=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_ISA=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y

#
# Memory Technology Devices (MTD)
#

#
# Parallel port support
#

#
# Plug and Play configuration
#

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_BLK_STATS=y

#
# Multi-device support (RAID and LVM)
#

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y

#
# Appletalk devices
#

#
# QoS and/or fair queueing
#

#
# Network testing
#

#
# Telephony Support
#

#
# ATA/IDE/MFM/RLL support
#

#
# SCSI support
#
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y

#
# SCSI low-level drivers
#
CONFIG_SCSI_AACRAID=y
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=253
CONFIG_AIC7XXX_RESET_DELAY_MS=2000
CONFIG_SCSI_MEGARAID=y

#
# Fusion MPT device support
#

#
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
#

#
# I2O device support
#

#
# Network device support
#
CONFIG_NETDEVICES=y

#
# ARCnet devices
#

#
# Ethernet (10 or 100Mbit)
#

#
# Ethernet (1000 Mbit)
#
CONFIG_TIGON3=y

#
# Wireless LAN (non-hamradio)
#

#
# Token Ring devices
#

#
# Wan interfaces
#

#
# Amateur Radio support
#

#
# IrDA (infrared) support
#

#
# ISDN subsystem
#

#
# Old CD-ROM drivers (not SCSI, not IDE)
#

#
# Input core support
#

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256

#
# I2C support
#

#
# Mice
#

#
# Joysticks
#

#
# Watchdog Cards
#
CONFIG_RTC=y

#
# Ftape, the floppy tape device driver
#

#
# Multimedia devices
#

#
# File systems
#
CONFIG_QUOTA=y
CONFIG_QFMT_V2=y
CONFIG_REISERFS_FS=y
CONFIG_REISERFS_PROC_INFO=y
CONFIG_RAMFS=y
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y

#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_TCP=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y

#
# Partition Types
#
CONFIG_MSDOS_PARTITION=y

#
# Console drivers
#
CONFIG_VGA_CONSOLE=y

#
# Frame-buffer support
#

#
# Sound
#

#
# USB support
#

#
# Bluetooth support
#

#
# Kernel hacking
#
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y

#
# Library routines
#

On Sat, 5 Apr 2003 13:11:18 +0200
Philippe Gramoullé <[email protected]> wrote:

| You'll find attached the .config.