Hi all,
We have set the quotas for all the users in the /vol/vol0/home.
If any user from the unix system gives the command quota -v. he gets lists of all the users who are owning the files in the home directory. But the disk usage is of my home directory. Please let me know is there any solution for this.
bhaskarg@nakul$ quota -v Disk quotas for bhaskarg (uid 1036): Filesystem usage quota limit timeleft files quota limit timeleft /chicago/disk14 0 75000 76000 0 2200 2225 /tmp_mnt/home/babuk 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhaskarg 228900 409600 409600 894 20480 20480 /tmp_mnt/home/opusadm 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kjayanth 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kannan 228900 409600 409600 894 20480 20480 /tmp_mnt/home/model 228900 409600 409600 894 20480 20480 /tmp_mnt/home/vish 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhargava 228900 409600 409600 894 20480 20480 /tmp_mnt/home/ksaxena 228900 409600 409600 894 20480 20480
regards
Bhaskar G Systems Engineer, Philips Semiconductors, #3, Sterling Square,Madras Bank Road, Off St Mark's Road,BANGALORE-560 001. Voice : +91 80 222 9200 Ext 5060 Fax: +91 80 2229700
bhaskar.g@philips.com writes:
We have set the quotas for all the users in the /vol/vol0/home.
If any user from the unix system gives the command quota -v. he gets lists of all the users who are owning the files in the home directory. But the disk usage is of my home directory. Please let me know is there any solution for this.
Do your users all have the same uid in the filer's /etc/passwd file? What OS & release is the client?
bhaskarg@nakul$ quota -v Disk quotas for bhaskarg (uid 1036): Filesystem usage quota limit timeleft files quota limit timeleft /chicago/disk14 0 75000 76000 0 2200 2225 /tmp_mnt/home/babuk 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhaskarg 228900 409600 409600 894 20480 20480 /tmp_mnt/home/opusadm 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kjayanth 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kannan 228900 409600 409600 894 20480 20480 /tmp_mnt/home/model 228900 409600 409600 894 20480 20480 /tmp_mnt/home/vish 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhargava 228900 409600 409600 894 20480 20480 /tmp_mnt/home/ksaxena 228900 409600 409600 894 20480 20480
quota -v is working correctly. It looks at the mount table (essentially does a "df") to get a list of all the mounted filesystems. For each NFS filesystem, quota queries the NFS server to get the quota for the user on that filesystem.
It looks like you are mounting individual home directories separately with an automounter. But I suspect all these home directories are on the same volume on the netapp. So this results in the netapp getting multiple quota queries for the same user on the same volume. That is why the same quota numbers print out multiple times.
If you don't like this behavior you can mount the directory above the home directories instead of mounting each home directory separately. One mount translates into one query.
Hi all,
We have set the quotas for all the users in the /vol/vol0/home.
If any user from the unix system gives the command quota -v. he gets lists of all the users who are owning the files in the home directory. But the disk usage is of my home directory. Please let me know is there any solution for this.
bhaskarg@nakul$ quota -v Disk quotas for bhaskarg (uid 1036): Filesystem usage quota limit timeleft files quota limit timeleft /chicago/disk14 0 75000 76000 0 2200 2225 /tmp_mnt/home/babuk 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhaskarg 228900 409600 409600 894 20480 20480 /tmp_mnt/home/opusadm 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kjayanth 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kannan 228900 409600 409600 894 20480 20480 /tmp_mnt/home/model 228900 409600 409600 894 20480 20480 /tmp_mnt/home/vish 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhargava 228900 409600 409600 894 20480 20480 /tmp_mnt/home/ksaxena 228900 409600 409600 894 20480 20480
regards
Bhaskar G Systems Engineer, Philips Semiconductors, #3, Sterling Square,Madras Bank Road, Off St Mark's Road,BANGALORE-560 001. Voice : +91 80 222 9200 Ext 5060 Fax: +91 80 2229700
Steve Losen scl@virginia.edu phone: 804-924-0640
University of Virginia ITC Unix Support
No, you misinterpreted this output. It's showing the one user's disk usage on all the mountpoints that are on the system. bhaskarg owns no files on /chicago/disk14 and 229900 KB of files in his home dir. He owns those files on the same volume (or quota tree) as in the other mount points because those other mount points are really the same thing, mounted differently.
I agree this output is confusing and not all that useful, because it prints the same information repeatedly but with different things in the first column.
On Tue, 29 Feb 2000 08:26:55 +0100, bhaskar.g@philips.com wrote:
Hi all,
We have set the quotas for all the users in the /vol/vol0/home.
If any user from the unix system gives the command quota -v. he gets lists of all the users who are owning the files in the home directory. But the disk usage is of my home directory. Please let me know is there any solution for this.
bhaskarg@nakul$ quota -v Disk quotas for bhaskarg (uid 1036): Filesystem usage quota limit timeleft files quota limit timeleft /chicago/disk14 0 75000 76000 0 2200 2225 /tmp_mnt/home/babuk 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhaskarg 228900 409600 409600 894 20480 20480 /tmp_mnt/home/opusadm 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kjayanth 228900 409600 409600 894 20480 20480 /tmp_mnt/home/kannan 228900 409600 409600 894 20480 20480 /tmp_mnt/home/model 228900 409600 409600 894 20480 20480 /tmp_mnt/home/vish 228900 409600 409600 894 20480 20480 /tmp_mnt/home/bhargava 228900 409600 409600 894 20480 20480 /tmp_mnt/home/ksaxena 228900 409600 409600 894 20480 20480
regards
Bhaskar G Systems Engineer, Philips Semiconductors, #3, Sterling Square,Madras Bank Road, Off St Mark's Road,BANGALORE-560 001. Voice : +91 80 222 9200 Ext 5060 Fax: +91 80 2229700
On Tue, 29 Feb 2000 bhaskar.g@philips.com wrote:
We have set the quotas for all the users in the /vol/vol0/home.
If any user from the unix system gives the command quota -v. he gets lists of all the users who are owning the files in the home directory. But the disk usage is of my home directory. Please let me know is there any solution for this.
First off all, IT IS NOT A BUG. (I'm not underscoring this with anyone particular in mind.) It is precisely the expected behavior under UNIX. The quota command checks aevery mounted filesystem. If the filesystem happens to be mounted twice, three times, or a thousand, it will check it the number of times it is mounted.
Now, how to solve it. We wrote a custom quota command in Perl using the Perl quota module to only query the current filesystem. This may break (it did in our case) other people's scripts, so exercise some caution.
Tom