LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2005, 07:53 PM   #1
singying304
Member
 
Registered: Feb 2005
Posts: 106

Rep: Reputation: 15
Quota Problem,qbout Upload/del File, i need help,thank


some one try to upload file /del files from ftp server

long time after ,quota Used not match "du user"


[root@localhost max120]# quota pinky
Disk quotas for user pinky (uid 524):
Filesystem blocks quota limit grace files quota limit grace
/dev/ide/host0/bus1/target0/lun0/part1
182736 0 502400 7 0 0

[root@localhost max120]# du pinky
399M pinky/public_html
399M pinky


180M vs 399M.....so astonishing

have any way to solve this problem? thank your help!
 
Old 07-02-2005, 06:10 AM   #2
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
i hope some one can help me~ thx
 
Old 07-02-2005, 12:51 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I think you're not reading the output correctly:

Filesystem blocks (used block): 182736
quota (soft): 0
limit (hard): 502400
grace:
files (number owned by user): 7
quota (file soft limit): 0
limit (file hard limit): 0
grace:
 
Old 07-04-2005, 01:17 PM   #4
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Berhanie
I think you're not reading the output correctly:

Filesystem blocks (used block): 182736
quota (soft): 0
limit (hard): 502400
grace:
files (number owned by user): 7
quota (file soft limit): 0
limit (file hard limit): 0
grace:
what 's the meaning Filesystem blocks 182736?
 
Old 07-04-2005, 02:27 PM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Its telling you the user has used ~182M on the filesystem. This is for the filesystem which has quota turned on. The user may still have other files on other filesystems which are not using quota. Do you have quota turned on for the filesystem containing .../pinky/public_html?
 
Old 07-04-2005, 02:45 PM   #6
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Berhanie
Its telling you the user has used ~182M on the filesystem. This is for the filesystem which has quota turned on. The user may still have other files on other filesystems which are not using quota. Do you have quota turned on for the filesystem containing .../pinky/public_html?
Do you have quota turned on for the filesystem containing .../pinky/public_html?

i don't know ,how to check?

i only type this command "edquota pinky" set limit (hard): 502400 ,then ,few day after,

used 399MB ,but filesystem just used 180MB ,help please~
 
Old 07-04-2005, 02:52 PM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
please post the following:
1. the output of cat /etc/fstab
2. the full path of pinky/public_html (if you don't know, cd to the same place where you ran the "du pinky" command earlier and type "pwd").
 
Old 07-04-2005, 03:07 PM   #8
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Berhanie
please post the following:
1. the output of cat /etc/fstab
2. the full path of pinky/public_html (if you don't know, cd to the same place where you ran the "du pinky" command earlier and type "pwd").
[root@localhost maxtor]# cat /etc/fstab
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults,usrquota,grpquota 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdc1 /max120 ext3 defaults,usrquota,grpquota 1 2
/dev/hdd1 /maxtor ext3 defaults,usrquota,grpquota 1 2
none /mnt/hd supermount dev=/dev/ide/host0/bus1/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /mnt/hd2 supermount dev=/dev/ide/host0/bus1/target1/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0


¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð¡Ð
[root@localhost public_html]# pwd
/max120/pinky/public_html


thank you
 
Old 07-04-2005, 06:30 PM   #9
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Ok. pinky's public_html file is located in /dev/hdc1. /dev/hdc1 (a.ka. /dev/ide/host0/bus1/target0/lun0/part1) does have a quota limit for pinky, but that limit is 502M. quota shows that pinky has used 182M in /dev/hdc1, which contradicts the output of du. I don't know the reason for this. Maybe you need to run something like quotacheck to sync the quota files (rebooting will probably have the same effect).

Your fstab was confusing to me, since your have contradictory entries for /dev/hdc. Maybe someone else can say more.
 
Old 07-05-2005, 01:02 AM   #10
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Berhanie
Ok. pinky's public_html file is located in /dev/hdc1. /dev/hdc1 (a.ka. /dev/ide/host0/bus1/target0/lun0/part1) does have a quota limit for pinky, but that limit is 502M. quota shows that pinky has used 182M in /dev/hdc1, which contradicts the output of du. I don't know the reason for this. Maybe you need to run something like quotacheck to sync the quota files (rebooting will probably have the same effect).

Your fstab was confusing to me, since your have contradictory entries for /dev/hdc. Maybe someone else can say more.
anyway ,thank you~
when i run quotacheck,i need umount /max120 ?
 
Old 07-05-2005, 09:59 AM   #11
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
The quotacheck man page says that quotacheck will remount the filesystem read-only and then, upon finishing, read-write again. So the following should do it (you don't need to unmount):
Code:
quotaoff -vug /max120
quotacheck -vug /max120
quotaon -vug /max120

Last edited by Berhanie; 07-05-2005 at 10:07 AM.
 
Old 07-05-2005, 10:39 AM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally posted by Berhanie
[snip]
Your fstab was confusing to me, since your have contradictory entries for /dev/hdc. Maybe someone else can say more.
I think the first entry will try to mount his CR-ROM (/dev/hdc) as /mount/cdrom whilst the second will have already mounted /dev/hdc1 as /max120. As you note, this does not seem to be consistant.

I suspect that he's added a third HD (/dev/hdc1) sometime after /etc/fstab was created during the install, and he's neglected to update it. I also suspect that he may now have a problem using his CD-ROM, and that he should do a ls /dev and "adjust" his fstab to his current reality.
 
Old 07-06-2005, 10:36 AM   #13
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by PTrenholme
I think the first entry will try to mount his CR-ROM (/dev/hdc) as /mount/cdrom whilst the second will have already mounted /dev/hdc1 as /max120. As you note, this does not seem to be consistant.

I suspect that he's added a third HD (/dev/hdc1) sometime after /etc/fstab was created during the install, and he's neglected to update it. I also suspect that he may now have a problem using his CD-ROM, and that he should do a ls /dev and "adjust" his fstab to his current reality.
how can i do it? THX
 
Old 07-06-2005, 10:46 AM   #14
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
how to umount cd-rom? thank
 
Old 07-06-2005, 11:27 AM   #15
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally posted by singying304
how to umount cd-rom? thank
The unmount command is "umount" not "unmount." This has often resulted in my fingers not doing what my mind wanted.

Anyhow, try "umount /media/cdrom" as su.

As to you previous question, here's what I get when I list the hd block devices on my system:
Code:
$ ls -l /dev | grep -e "^b" | grep hd
brw-r-----  1 root  disk     3,   0 Jul  6 03:15 hda
brw-r-----  1 root  disk     3,   1 Jul  6 03:15 hda1
brw-r-----  1 root  disk     3,  64 Jul  6 03:15 hdb
brw-r-----  1 root  disk     3,  65 Jul  6 03:15 hdb1
brw-r-----  1 root  disk     3,  66 Jul  6 03:15 hdb2
brw-r-----  1 root  disk     3,  67 Jul  6 03:15 hdb3
brw-r-----  1 root  disk    22,   0 Jul  6 03:15 hdc
brw-r-----  1 root  disk    22,   1 Jul  6 03:15 hdc1
brw-r-----  1 root  disk    22,  64 Jul  6 03:15 hdd
brw-r-----  1 root  disk    22,  65 Jul  6 03:15 hdd1
brw-r-----  1 root  disk    22,  66 Jul  6 03:15 hdd2
brw-------  1 peter disk    33,   0 Jul  6 03:15 hde
brw-------  1 peter disk    33,  64 Jul  6 03:15 hdf
brw-r-----  1 root  disk    34,   0 Jul  6 03:15 hdg
brw-r-----  1 root  disk    34,   1 Jul  6 03:15 hdg1
brw-r-----  1 root  disk    34,  64 Jul  6 03:15 hdh
brw-r-----  1 root  disk    34,  65 Jul  6 03:15 hdh1
brw-r-----  1 root  disk    34,  66 Jul  6 03:15 hdh2
Notice the two without group disk read permission -- /dev/hde and /dev/hdf. Those are my two DVD drives, not currently mounted since they've got nothing in them.

In your /etc/fstab, where you define /media/cdrom as /dev/hdc, you should change the hdc reference to whatever shows up in your "ls /dev" for your CD drive. (I suspect that it will be /dev/hdd if you've just added one hd.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accidentally del /etc/group file in RedHat 9 karmakid Linux - Security 3 08-02-2005 08:16 PM
How to del all the files expanded by an tarball file? hkl8324 Debian 18 06-14-2005 05:36 AM
Linux Server File Upload Problem? defa0009 Linux - General 4 05-05-2004 03:03 PM
del file csosa Linux - Software 12 09-28-2003 02:30 PM
File upload problem saravanan1979 Linux - Newbie 4 03-29-2002 02:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration