Operating System - Linux
1830265 Members
2499 Online
110000 Solutions
New Discussion

Re: Disk quota for Domain and/or user on SA1100

 
C Townsend
Occasional Advisor

Disk quota for Domain and/or user on SA1100

Help,help,help

I've created a new domain and set to quota to 200MB for the administrator 100MB. When FTP'ing files to the user/domain into /home/domain/domain?/web I receive a the message "Disk Quota Exceeded" with only about 5MB of the files uploaded. I've checked both via the Web Interface as well as using quota and edquota to view/alter the settings for this user and group. They all seem right 204800 blks for the group and 202400 blks for the Domain-Admin. This would assume 512K blks = @100MB. Used is 47288 Blks = @20MB (Not sure about this one). I was at first only able to set the user to 1/2 the size of the domain, but used edquota to alter the setting. Any Ideas???

Quota listing below:

# quota -g domain6
Disk quotas for group domain6 (gid 11006):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda7 47228 204800 204810 16 0 0
# quota -uv mickey1
Disk quotas for user mickey1 (uid 507):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda7 47304 202400 202410 33 0 0
All views are mine, not my employers. Unless they were given to me by my employer.
9 REPLIES 9
Michael Steele_2
Honored Contributor

Re: Disk quota for Domain and/or user on SA1100

What does 'repquota' say?

repquota /dev/hda7

-and-

repquota -a

What does 'quotacheck' say? Use 'quotacheck' to sync. Note: 'quotacheck' should be run via cron daily or weekly, (* depends on your usage. *)

Some usage examples:

quotaon -vug /dev/hda7

quotaon -mickey1
Support Fatherhood - Stop Family Law
C Townsend
Occasional Advisor

Re: Disk quota for Domain and/or user on SA1100

Repquota is reporting the same info as quota -g

quotacheck runs weekly via cron from root.

[root@buzz1-2 /root]# repquota /dev/hda7
Block limits File limits
User used soft hard grace used soft hard grace
root -- 1855660 0 0 244 0 0
named -- 12 0 0 3 0 0
admin +- 20520 20480 20490 none 292 0 0
carlos_t -- 388 102400 102410 105 0 0
mercury -- 764 20480 20490 23 0 0
ktownsend -- 108 20480 20490 23 0 0
mickey -- 220 20480 20490 31 0 0
ctownsend -- 88 20480 20490 18 0 0
mickey1 -- 47304 202400 202410 33 0 0
[root@buzz1-2 /root]# repquota -a
Block limits File limits
User used soft hard grace used soft hard grace
root -- 1852964 0 0 236 0 0
mail -- 0 0 0 5 0 0
named -- 12 0 0 3 0 0
serveradmi-- 20404 0 0 275 0 0
domainadmi-- 948 0 0 60 0 0
domain1 -- 520 512000 512010 136 0 0
domain2 -- 68 102400 102410 14 0 0
domain4 -- 144 20480 20490 14 0 0
domain5 -- 40 204800 204810 8 0 0
domain6 -- 47228 204800 204810 16 0 0

Block limits File limits
User used soft hard grace used soft hard grace
root -- 1855660 0 0 244 0 0
named -- 12 0 0 3 0 0
admin +- 20520 20480 20490 none 292 0 0
carlos_t -- 388 102400 102410 105 0 0
mercury -- 764 20480 20490 23 0 0
ktownsend -- 108 20480 20490 23 0 0
mickey -- 220 20480 20490 31 0 0
ctownsend -- 88 20480 20490 18 0 0
mickey1 -- 47304 202400 202410 33 0 0
[root@buzz1-2 /root]#
All views are mine, not my employers. Unless they were given to me by my employer.
Michael Steele_2
Honored Contributor

Re: Disk quota for Domain and/or user on SA1100

What about /etc/fstab?

/dev/hda2 /usr ext2 defaults,grpquota 1 1

/dev/hda2 /usr ext2 defaults,usrquota,grpquota 1 1

What about quota records?

/partition/quota.user (* perms = 600 *)
/partition/quota.group (* perms = 600 *)

Startup script?

/usr/sbin/quotacheck

/usr/sbin/quotaon -avug
Support Fatherhood - Stop Family Law
C Townsend
Occasional Advisor

Re: Disk quota for Domain and/or user on SA1100

Current settings:

/root]# cat /etc/fstab
/dev/hda5 / ext2 defaults 1 1
/dev/hda4 /boot ext2 defaults 1 2
/dev/hda8 /emergency ext2 defaults 1 2
/dev/hda7 /home ext2 defaults,grpquota,usrquo
ta 1 2
/dev/hda6 /var ext2 defaults 1 2
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda9 swap swap defaults 0 0

[root]# repquota -v -a
*** Report for group quotas on /dev/hda7 (/home)
Block limits File limits
User used soft hard grace used soft hard grace
root -- 1855748 0 0 244 0 0
mail -- 0 0 0 6 0 0
named -- 12 0 0 3 0 0
serveradmi-- 20436 0 0 275 0 0
domainadmi-- 948 0 0 60 0 0
domain1 -- 528 512000 512010 132 0 0
domain2 -- 68 102400 102410 14 0 0
domain4 -- 144 20480 20490 14 0 0
domain5 -- 40 204800 204810 8 0 0
domain6 -- 47228 204800 204810 16 0 0

*** Report for user quotas on /dev/hda7 (/home)
Block limits File limits
User used soft hard grace used soft hard grace
root -- 1855748 0 0 244 0 0
named -- 12 0 0 3 0 0
admin +- 20520 20480 20490 none 292 0 0
ca****_* -- 388 102400 102410 105 0 0
mer**** -- 764 20480 20490 23 0 0
kto****nd -- 108 20480 20490 23 0 0
mickey -- 220 20480 20490 31 0 0
ct****end -- 88 20480 20490 18 0 0
mickey1 -- 47304 202400 202410 33 0 0


[root rc.d]# cat rc.sysinit | grep quota
# Update quotas if fsck was run on /.
if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then
action "Checking root filesystem quotas" /sbin/quotacheck -v /
elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then
action "Checking filesystem quotas" /sbin/quotacheck -v -R -a
if [ -x /sbin/quotaon ]; then
action "Turning on user and group quotas for local filesystems" /sbin/quotao
n -a
All views are mine, not my employers. Unless they were given to me by my employer.
C Townsend
Occasional Advisor

Re: Disk quota for Domain and/or user on SA1100

-rw------- 1 root root 16256 Jun 26 05:40 quota.user
-rw------- 1 root root 352224 Jun 26 05:40 quota.group
All views are mine, not my employers. Unless they were given to me by my employer.
Michael Steele_2
Honored Contributor

Re: Disk quota for Domain and/or user on SA1100

All that's left is updates with latest software patches.
Support Fatherhood - Stop Family Law
C Townsend
Occasional Advisor

Re: Disk quota for Domain and/or user on SA1100

Bizarro!!

I ftp'd the files to the domain admin's account and moved them to the proper location.

and Shezamm!! It worked?
All views are mine, not my employers. Unless they were given to me by my employer.
C Townsend
Occasional Advisor

Re: Disk quota for Domain and/or user on SA1100

Bizarro!!

I ftp'd the files to the domain admin's account and moved them to the proper location.

Shezamm!! It worked?
All views are mine, not my employers. Unless they were given to me by my employer.
C Townsend
Occasional Advisor

Re: Disk quota for Domain and/or user on SA1100

Bizarre!

I Ftp'd the files to the Domain Admin's account and moved them to the proper location.

Shezamm!! It worked!!
All views are mine, not my employers. Unless they were given to me by my employer.