roman_m
Verified User
HOWTO: DirectAdmin ZFS user quota wrappers
Since DA has no native ZFS supoprt and no solitions proposed in forum, I made custom wrappers.
To use it, you have to create bin folder in /usr/local/directadmin and put two attached scripts from archive (repquota, edquota) into it, then chown it both to root:wheel and made it executable. Wrappers written in perl, so you must install perl from pkg repository.
Also, you need to set $volume variable in both scripts to point to your /home filesystem (t0/home in my case) and some variables in directadmin.conf to point DA to use this wrappers:
edquota=/usr/local/directadmin/bin/edquota
repquota=/usr/local/directadmin/bin/repquota
You can use attached fix_user_quotas.pl to synchronize actual DA user quota settings with your new filesystem.
And ... Enjoy sophisticated DirectAdmin on ZFS
Currently running one box on ZFS with FreeBSD 9.3-RELEASE, works exactly the same as UFS DA installation, but with SSD L2ARC cache that's really like a lightspeed!
Since DA has no native ZFS supoprt and no solitions proposed in forum, I made custom wrappers.
To use it, you have to create bin folder in /usr/local/directadmin and put two attached scripts from archive (repquota, edquota) into it, then chown it both to root:wheel and made it executable. Wrappers written in perl, so you must install perl from pkg repository.
Also, you need to set $volume variable in both scripts to point to your /home filesystem (t0/home in my case) and some variables in directadmin.conf to point DA to use this wrappers:
edquota=/usr/local/directadmin/bin/edquota
repquota=/usr/local/directadmin/bin/repquota
You can use attached fix_user_quotas.pl to synchronize actual DA user quota settings with your new filesystem.
And ... Enjoy sophisticated DirectAdmin on ZFS

Currently running one box on ZFS with FreeBSD 9.3-RELEASE, works exactly the same as UFS DA installation, but with SSD L2ARC cache that's really like a lightspeed!
Attachments
Last edited: