How to Enable UCS Filesystem Quotas using CLI
Step 1: Get the Name of your partition
Using df -h
:
root@ucs-8393:~# df -h /var/lib/samba/sysvol
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 5.2G 14G 28% /
→ /dev/sda1
Step 2: Enable / Disable the Quota
Enable the quota:
umc-command -U Administrator quota/partitions/activate -o partitionDevice=${partition_path?}
Disable the quota:
umc-command -U Administrator quota/partitions/deactivate -o partitionDevice=${partition_path?}
Using -y ${password_file?}
and -p ${password?}
it’s also possible to pass the required password for the process right away.