[ 
https://issues.apache.org/jira/browse/HDDS-8384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sumit Agrawal updated HDDS-8384:
--------------------------------
    Attachment: image-2023-04-05-20-10-36-745.png

> Ensure consistent CLI options for storage quota
> -----------------------------------------------
>
>                 Key: HDDS-8384
>                 URL: https://issues.apache.org/jira/browse/HDDS-8384
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Arun Sarin
>            Priority: Minor
>         Attachments: image-2023-04-05-20-10-36-745.png
>
>
> Ensure consistent CLI options for storage quota
> For ex :
>  # In setquota , cli supports user to pass storage-quota via 2 options i.e  
> --quota, --space-quota
>  # Whereas In clrquota , we only support --space-quota & --quota is not 
> supported 
> Sample help command for both of these
> setquota
> {code:java}
> [root@quasar-tvqwpy-1 ~]# ozone sh volume setquota --help
> Usage: ozone sh volume setquota [-hV] [--namespace-quota=<quotaInNamespace>]
>                                 [--quota=<quotaInBytes>] <value>
> Set quota of the volumes. At least one of the quota set flag is mandatory.
>       <value>     URI of the volume.
>                   Ozone URI could either be a full URI or short URI.
>                   Full URI should start with o3://, in case of non-HA
>                   clusters it should be followed by the host name and
>                   optionally the port number. In case of HA clusters
>                   the service id should be used. Service id provides a
>                   logical name for multiple hosts and it is defined
>                   in the property ozone.om.service.ids.
>                   Example of a full URI with host name and port number
>                   for a key:
>                   o3://omhostname:9862/vol1/bucket1/key1
>                   With a service id for a volume:
>                   o3://omserviceid/vol1/
>                   Short URI should start from the volume.
>                   Example of a short URI for a bucket:
>                   vol1/bucket1
>                   Any unspecified information will be identified from
>                   the config files.
>   -h, --help      Show this help message and exit.
>       --namespace-quota=<quotaInNamespace>
>                   For volume this parameter represents the number of buckets,
>                     and for buckets represents the number of keys (eg. 5)
>       --quota, --space-quota=<quotaInBytes>
>                   The maximum space quota can be used (eg. 1GB)
>   -V, --version   Print version information and exit. {code}
> clrquota
> {noformat}
> [root@quasar-tvqwpy-1 ~]# ozone sh volume clrquota --help
> Usage: ozone sh volume clrquota [-hV] [--namespace-quota] [--space-quota]
>                                 <value>
> clear quota of the volume. At least one of the quota clear flag is mandatory.
>       <value>             URI of the volume.
>                           Ozone URI could either be a full URI or short URI.
>                           Full URI should start with o3://, in case of non-HA
>                           clusters it should be followed by the host name and
>                           optionally the port number. In case of HA clusters
>                           the service id should be used. Service id provides a
>                           logical name for multiple hosts and it is defined
>                           in the property ozone.om.service.ids.
>                           Example of a full URI with host name and port number
>                           for a key:
>                           o3://omhostname:9862/vol1/bucket1/key1
>                           With a service id for a volume:
>                           o3://omserviceid/vol1/
>                           Short URI should start from the volume.
>                           Example of a short URI for a bucket:
>                           vol1/bucket1
>                           Any unspecified information will be identified from
>                           the config files.
>   -h, --help              Show this help message and exit.
>       --namespace-quota   clear namespace quota
>       --space-quota       clear space quota
>   -V, --version           Print version information and exit.{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to