[
https://issues.apache.org/jira/browse/HDDS-8311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706759#comment-17706759
]
Arun Sarin commented on HDDS-8311:
----------------------------------
Basis for the change.
The unit *PB* is not supported , hence removed it
{code:java}
[root@quasar-tvqwpy-1 ~]# ozone sh volume create volume1 --space-quota 1PB
Invalid values for quota, to ensure that the Quota format is legal(supported
values are B, KB, MB, GB and TB). And the quota value cannot be greater than
Long.MAX_VALUE BYTES {code}
The short form abbreviations *[k, m, g, t]* are not supported hence removed it
from the documentation
{noformat}
[root@quasar-tvqwpy-1 ~]# ozone sh volume create volume1 --space-quota 1k
Invalid values for quota, to ensure that the Quota format is legal(supported
values are B, KB, MB, GB and TB). And the quota value cannot be greater than
Long.MAX_VALUE BYTES
[root@quasar-tvqwpy-1 ~]# ozone sh volume create volume1 --space-quota 1m
Invalid values for quota, to ensure that the Quota format is legal(supported
values are B, KB, MB, GB and TB). And the quota value cannot be greater than
Long.MAX_VALUE BYTES
[root@quasar-tvqwpy-1 ~]# ozone sh volume create volume1 --space-quota 1g
Invalid values for quota, to ensure that the Quota format is legal(supported
values are B, KB, MB, GB and TB). And the quota value cannot be greater than
Long.MAX_VALUE BYTES
[root@quasar-tvqwpy-1 ~]# ozone sh volume create volume1 --space-quota 1t
Invalid values for quota, to ensure that the Quota format is legal(supported
values are B, KB, MB, GB and TB). And the quota value cannot be greater than
Long.MAX_VALUE BYTES
[root@quasar-tvqwpy-1 ~]# client_loop: send disconnect: Broken pipe{noformat}
> In Quota documentation remove "PB (p), etc." from Client Usage[Storage Space
> level quota]
> -----------------------------------------------------------------------------------------
>
> Key: HDDS-8311
> URL: https://issues.apache.org/jira/browse/HDDS-8311
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Arun Sarin
> Assignee: Arun Sarin
> Priority: Minor
> Labels: pull-request-available
>
> In Quota documentation remove "PB (p), etc." from Storage Space level quota
> under Client Usage header.
> [Current Documentation says
> |https://ozone.apache.org/docs/1.1.0/feature/quota.html#:~:text=Storage%20space%20level%20quotas%20allow%20the%20use%20of%20units%20such%20as%20KB%20(k)%2C%20MB%20(m)%2C%20GB%20(g)%2C%20TB%20(t)%2C%20PB%20(p)%2C%20etc.%20Represents%20how%20much%20storage%20Spaces%20will%20be%20used.]
> {code:java}
> Storage space level quotas allow the use of units such as KB (k), MB (m), GB
> (g), TB (t), PB (p), etc. Represents how much storage Spaces will be used.
> {code}
> Real time Command line output :
> {code:java}
> # ozone sh volume setquota --quota 1GB /volume1
> # ozone sh volume setquota --quota 1TB /volume1
> # ozone sh volume setquota --quota 1PB /volume1
> Invalid values for quota, to ensure that the Quota format is legal(supported
> values are B, KB, MB, GB and TB). And the quota value cannot be greater than
> Long.MAX_VALUE BYTES{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]