John/Stuart,
Thanks for your reply! Using vxquot is a work-around to print out disk usage,
although it is relatively slow.
On our 1.7T filesystem(80% usage), when I try to find out my usage
# ptime vxquot /export/home |grep zhujun
868488 zhujun
real 9:13.677
user 1.965
sys 11.235
# ptime vxrepquota /export/home | grep zhujun
zhujun -- 868488 0 6100000 219 0 0
real 13.762
user 0.024
sys 0.018
Truss both commands, vxepquota is using /export/home/quota to index user data.
While vxquot is issuing 592902*8K pread64() call. Vxquot spent 9 minutes to
read in around 4.8G(592902*8K) dataset. It would be ideal if vxquot could be
more efficient or use /export/home/quota directly.
Cheers,
zhu
===vxrepquota output===
0.0001 access("/export/home/quotas", F_OK) = 0
0.0000 llseek(3, 0, SEEK_CUR) = 0
0.0001 close(3) = 0
0.0000 open64("/export/home", O_RDONLY) = 3
7.4290 ioctl(3, (('V'<<24)|('X'<<16)|('F'<<8)|128), 0x08047218)
====================
===vxquot output===
0.0007 pread64(3, "\010\0\0\0\0\002 @0103\0".., 8192, 0x00000036A0FFA000) = 8192
0.0033 pread64(3, "A481\0\001\0\0\0\f )\0\0".., 8192, 0x82654000) = 8192
0.0008 pread64(3, "\0\0\0\0\0\0\001 :15\0\0".., 8192, 0x886CE000) = 8192
0.0007 pread64(3, "\010\0\0\0\0\002 @0103\0".., 8192, 0x00000036A0FFA000) = 8192
===================
--- On Fri, 3/4/11, Stuart Andrews <[email protected]> wrote:
From: Stuart Andrews <[email protected]>
Subject: RE: [Veritas-vx] vxrepquota question
To: "John Cronin" <[email protected]>, "Carl E. Ma" <[email protected]>
Cc: [email protected]
Received: Friday, March 4, 2011, 6:27 PM
It works #umount /mnt#mount -F vxfs /dev/vx/dsk/testdg/vols /mnt#vxquot
/mnt/dev/vx/rdsk/testdg/vols:USERS 11266 root 4096 adm
4096 bin 4096 cstynes 4096 gdm 4096
daemon 4096 joe 4096 listen 4096 lp 4096
noaccess 4096 nobody 4096 nobody4 4096 nuucp
4096 oracle 4096 postgres 4096 smmsp 4096
svctag 4096 sys 4096 uucp 4096 webservd
3072 Admin Just a quick test after remounting –
it worksGenerated a small amount of junk using the following for (( i=0; i <=
512; i++ )) ; do echo $i; cat /etc/passwd | cut -d ":" -f1 | while read user;
do dd if=/dev/zero of=$user.$i bs=1024k count=1; chown $user $user.$i; done;
done From: [email protected]
[mailto:[email protected]] On Behalf Of John Cronin
Sent: Saturday, 5 March 2011 10:16 AM
To: Carl E. Ma
Cc: [email protected]
Subject: Re: [Veritas-vx] vxrepquota question Try the command "vxquot
<file-system>". According to the man page, it does not appear that quotas need
to be enabled for this command to work. Unfortunately, I don't have any place
to try this out right now.On Fri, Mar 4, 2011 at 4:40 PM, Carl E. Ma
<[email protected]> wrote:Hello All,
We are running NFS server with Veritas VCS 5.1SP1 on solaris 10 x86. In order
to track disk usage in real time, we enabled disk quota on the server so that
we can get each user's usage with "vxrepquota <filesystem>" and "vxquota -v -u
<username>". If we didn't set quota for a user, his name/usage won't show up in
"vxrepquota" output.
Since we don't know how many users will keep files on the shared NFS
filesystem, we have to enable quota for all 3000+ users as temp solution. My
questions is without enforcing soft/hard quota, can we still track user disk
usage? My understanding of quota filesystem is all users' disk usage is being
tracked within filesystem and there should have other way to read out the
statistics. I will summarize if there is
answer.
Thanks & have a good weekend,
zhu
_______________________________________________
Veritas-vx maillist - [email protected]
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx
_______________________________________________
Veritas-vx maillist - [email protected]
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx