disk quota per user

Status
Not open for further replies.

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
Thanks. Tried but doesn't work here.

[root@freenas] ~# zfs list -o userquota@mdhq tank/usr
cannot open 'tank/usr': dataset does not exist

[root@freenas] ~# zfs set userquota@mdhq=25g tank
cannot open 'tank': dataset does not exist

I have no idea what "tank" is and tank/usr

Code:
Filesystem             Size    Used   Avail Capacity  Mounted on
/dev/ufs/FreeNASs1a    926M    378M    473M    44%    /
devfs                  1.0k    1.0k      0B   100%    /dev
/dev/md0               4.6M    3.2M    979k    77%    /etc
/dev/md1               823k    2.0k    756k     0%    /mnt
/dev/md2               149M     23M    113M    17%    /var
/dev/ufs/FreeNASs4      19M    1.5M     16M     8%    /data
Data                   3.6T    809G    2.8T    22%    /mnt/Data
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Sorry for the delay on getting back to you.

"tank" is the standard example name for a ZFS pool. In your case I think you'd want to use "Data".
 

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
I have a user "alexw". I need to set him up at 25GB. What's the proper command?

I tried this

[root@freenas] /mnt/Data# zfs list -o userquota@alexw=25g Data/usr
cannot open 'Data/usr': dataset does not exist

His directory is in /mnt/Data/alex

Thanks
 

Chadi

Explorer
Joined
Aug 24, 2012
Messages
74
I ran this, should be ok I guess?

[root@freenas] /mnt/Data# zfs list -o userquota@alexw=25g /mnt/Data/alexw
USERQUOTA@ALEXW=25G
-
[root@freenas] /mnt/Data#
 
Status
Not open for further replies.
Top