1833704 Members
3174 Online
110062 Solutions
New Discussion

Quotas

 
Steve Valvasori
Advisor

Quotas

I thought I understood how to setup quotas, but am very puzzled at the moment. Here is the background:

OS : HPUX 11.i
File System : /software
Logical Volume : /dev/vg01/lvol1 - 15GB

Some outputs:

# fstyp -v /dev/vg01/rlvol1
vxfs
version: 4
f_bsize: 8192
f_frsize: 2048
f_blocks: 7864320
f_bfree: 5064199
f_bavail: 4905943
f_files: 1370240
f_ffree: 1266048
f_favail: 1266048
f_fsid: 1073807361
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 5
f_size: 7864320


# quota -v oracle
Disk quotas for oracle (uid 711):
Filesystem usage quota limit timeleft files quota limit timeleft
/software 2578484 0 2359296 49724 0 0


# du -ks /software/*
242006 datatools
2336478 oracle8_prod

Now what I don't understand, the file system block size is 2KB (f_frsize: 2048), and since quotas are in blocks, the ID oracle should have 4.5GB available (2359296 * 2KB). This doesn't appear to be the case. The usage listed from 'quota -v oracle' is in 1KB blocks, or maybe just KB. Did 11.i change something like quotas are given in KB instead of blocks?

Thanks for any help,
steve.
2 REPLIES 2
Robert-Jan Goossens
Honored Contributor

Re: Quotas

Hi Steve,

There is a bit more explaining in the
# man 5 quota

Hope it helps,

Robert-Jan.
Steve Valvasori
Advisor

Re: Quotas

So basically it's in KB, not number of blocks at file system level. Seems kinda silly to me, thanks for the answer.