Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
Hi,
I'm trying to create quota of type tree:
apitest.exe some1 root blabla quota-add-entry quota-type tree quota-target /vol/vol1/q1 volume vol1 qtree q1
this adds following record to /etc/quotas:
/vol/vol1/q1 | tree@/vol/vol1/q1 | - | - | - | - | - |
And then, I see in the log:
quota: invalid quota type 'tree' (/etc/quotas line 90).
What am I doing wrong?
- Stepan.
Hi Stepan
The entry in the quota file should look like.
/vol/VOLNAME/QTREENAME tree - - - - -
or QTREENAME tree@/vol/VOLNAME/QTREENAME - - - - -
or for all qtree's in a Volume
* tree@/vol/VOLNAME - - - - -
Here is the example with apitest.exe.
apitest.exe some1 root blabla quota-add-entry quota-type tree quota-target q1 volume vol1 qtree q1
or for default quota for each qtree.
apitest.exe some1 root blabla quota-add-entry quota-type tree quota-target * volume vol1 qtree q1
Regards
Marco
Hi Marco,
When I specify quota as in your second example, and issue "quota on vol1", I get:
quota: Quota target for a tree quota must be the complete path name of the quota tree (/etc/quotas line 6)
Regards, Stepan.
Hi Stepan
Looks like default quotas can not be added with apitest because it does not allow blank qtree entry. Try to use zexplore and execute the following xml string.
<?xml version="1.0" encoding="UTF-8"?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.15">
<quota-add-entry>
<quota-type>tree</quota-type>
<quota-target>*</quota-target>
<volume>VOLUMENAME</volume>
<qtree></qtree>
</quota-add-entry>
</netapp>
regards
Marco
ok, i found the correct apitest command to enter a default tree quota for a volume.
try this:
apitest.exe some1 root blabla quota-add-entry quota-type tree quota-target * volume vol1 qtree ""
https://communities.netapp.com/message/55361#55361
regards
Marco
Hi Marco,
Ok, problem resolved.
apitest -x some1 root blabla quota-add-entry qtree "" quota-target /vol/vol1/qtree1 quota-type tree disk-limit 1024K volume vol1
Regards, Stepan.