Len Zaifman wrote:
We have just update a major file server to solaris 10 update 9 so that we can
control user and group disk usage on a single filesystem.
We were using qfs and one nice thing about samquota was that it told you your
soft limit, your hard limit and your usage on disk space and on the number of
files.
Is there , on solaris 10 U9 a command which will report
usera filespace (kb) number of files
limit 1048576 10
used 1024 3
or something like that? I can get the space limit, but not the space usage or
the number of files using zfs get userqu...@u rpool/home
ZFS does not track the number of files owned by each user. The space used by
file metadata is included in the user's space consumption which is reported
by the "useru...@username" property. Eg:
$ zfs get userqu...@ahrens,useru...@ahrens tank/ahrens
NAME PROPERTY VALUE SOURCE
tank/ahrens userqu...@ahrens none local
tank/ahrens useru...@ahrens 53.9G local
If you want information about all users and/or groups in a filesystem, use
"zfs userspace":
$ zfs userspace -t all tank/ahrens
TYPE NAME USED QUOTA
POSIX Group root 1.50K none
POSIX Group staff 56.2G none
POSIX User ahrens 53.9G none
POSIX User lling 2.25G none
POSIX User root 1.50K none
Check the zfs(1m) manpage the sections on the userused and groupused
properties and userpace and groupspace subcommands for details. Also please
let us know how we can improve the zfs(1m) manpage to make this capability
more obvious.
--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss