ZhengXiaoJ
Verified User
- Joined
- Jun 11, 2009
- Messages
- 3
quotaoff quotaon quotacheck repquota...all not work on zfs?
You'll be able to use the zfs commands from September (or now if you're on 8.1).quotaoff quotaon quotacheck repquota...all not work on zfs?
I'm not sure that a quota is actually required for each User. Reading through the documentation[/code], there are options for user quotas. Path quotas are not required to be used (if they were required, I wouldn't bother trying), eg:Creating a partition for each user probably is going to slow down the speed or so...
Also, this is kind of impossible to migrate on an existing ZFS + DA with lot of users already added...
# [b]zfs set userquota@user1=5G tank/data[/b]
# [b]zfs get userquota@user1 tank/data[/b]
NAME PROPERTY VALUE SOURCE
tank/data userquota@user1 5G local
# [b]zfs userspace tank/data[/b]
TYPE NAME USED QUOTA
POSIX User root 3K none
POSIX User user1 0 5G
# [b]zfs get userused@user1 tank/staff[/b]
NAME PROPERTY VALUE SOURCE
tank/staff userused@user1 213M local
# zfs get userused@vox tank/home
NAME PROPERTY VALUE SOURCE
tank/home userused@vox 130M local
NAME PROPERTY VALUE SOURCE
tank/home userused@testzfs 50K local
# zfs get userused@amicii tank/home
NAME PROPERTY VALUE SOURCE
tank/home userused@amicii 1.03G local