# cio profile
Usage
cio profile COMMAND [<PROFILENAME | VOLUMENAME>]
Create, display, list or remove profiles. Get profile from an existing volume.
Child commands
Command | Description |
---|---|
cio profile create | Save profile to datastore |
cio profile info | Display a profile from datastore |
cio profile list | List profiles in datastore |
cio profile remove | Remove profile from datastore |
cio profile show | Get profile from a volume |
# cio profile create
Usage
cio profile create <PROFILENAME>
cio profile add <PROFILENAME>
Save a profile to the datastore from a yaml config file.
Parameters
Key | Valid Values | Description |
---|---|---|
capacity | NUMBER_IN_GB | capacity in gigabytes |
directory | PATH_ON_HOST | bind mount directory on the host |
filesystem | btrfs, ext4, xfs | file system to format and mount |
iops min | 30 to 1,000,000 | minimum iops guaranteed |
iops max | 30 to 1,000,000 | maximum iops allowed |
label | KEY=VALUE | Add label to volume |
level | 2, 3 | number of synchronous replicas |
provision | thin, thick | specify thin or thick provisioning |
type | ssd, hdd | select media type |
Auto Expansion | ||
enabled | yes, no | enable auto expansion service |
increment | PERCENTAGE_NUMBER | percentage of volume capacity to increment |
limit | NUMBER | maximum number of times to increment |
threshold | PERCENTAGE_NUMBER | percentage of capacity to trigger expansion |
Compression | ||
enabled | yes, no | enable compression service |
algorithm | lzo, zlib, zstd | compression method to use |
Snapshot | ||
enabled | yes, no | enable snapshot service |
interval | NUMBER_IN_MINUTES | interval for periodic snapshots in minutes |
max | MAX_NUMBER | maximum number of snapshots |
Examples
Create profile TEST
Create a yaml config file. For example, this file TEST
:
capacity: 20
directory: /cio/volumes
iops:
min: 1000
max: 2000
level: 2
local: no
provision: thin
type: ssd
service:
autoexpand:
enabled: no
threshold: 70
increment: 25
limit: 2
compression:
enabled: no
algorithm: lzo
dedupe: no
encryption:
enabled: no
snapshot:
enabled: no
interval: 60
max: 10
Create profile with shared volume label
Create a yaml config file. For example, this file SHARE
:
capacity: 20
directory: /cio/volumes
iops:
min: 1000
max: 2000
label:
cio.volume: shared
level: 2
local: no
provision: thin
type: ssd
service:
autoexpand:
enabled: no
threshold: 70
increment: 25
limit: 2
compression:
enabled: no
algorithm: lzo
dedupe: no
encryption:
enabled: no
snapshot:
enabled: no
interval: 60
max: 10
Save profile TEST
Save profile TEST to the datastore.
$ cio profile create TEST
Succeed: Create profile: Profile TEST saved
# cio profile info
Usage
cio profile info <PROFILENAME>
cio profile inspect <PROFILENAME>
Display profile info from datastore.
Examples
$ cio profile info TEST
capacity: 20
directory: /cio/volumes
iops:
min: 1000
max: 2000
level: 2
local: no
provision: thin
type: ssd
service:
compression: no
dedupe: no
encryption:
enabled: no
snapshot:
enabled: no
interval: 60
max: 10
# cio profile list
Usage
cio profile ls
cio profile list
List profiles in the datastore.
Examples
$ cio profile list
PROFILE DATE
MYSQL Sat Apr 20 07:23:07 2019
MINIO Sat Apr 20 07:23:07 2019
NGINX Sat Apr 20 07:23:07 2019
INFS Sat Apr 20 07:23:07 2019
LARGE Sat Apr 20 07:23:07 2019
BRONZE Sat Apr 20 07:23:07 2019
MEDIUM Sat Apr 20 07:23:07 2019
GOLD Sat Apr 20 07:23:07 2019
SMALL Sat Apr 20 07:23:07 2019
SILVER Sat Apr 20 07:23:07 2019
TEST Sun Apr 21 13:58:23 2019
# cio profile remove
Usage
cio profile rm <PROFILENAME>
cio profile remove <PROFILENAME>
cio profile delete <PROFILENAME>
Remove a profile from the datastore.
Examples
$ cio profile rm TEST
Succeed: Remove profile: Profile TEST removed
# cio profile show
Usage
cio profile show [<VOLUMENAME>]
Get profile from a volume. Useful for redirecting to named profile and saving to datastore.
Examples
Display the profile of the portainer volume.
$ cio profile show portainer
---
capacity: 25
directory: /cio/portainer
iops:
min: 10
max: 10000000
level: 2
local: no
provision: thin
type: ssd
service:
compression: no
dedupe: no
encryption:
enabled: no
replication:
enabled: no
destination: none
interval: 120
type: synchronous
snapshot:
enabled: no
interval: 0
max: 0
--- # vim:syntax=yaml:ts=8:sw=2:expandtab:softtabstop=2
Get profile from volume and save to a file.
$ cio profile show portainer > NEW
$ cat NEW
---
capacity: 20
directory: /cio/portainer
iops:
min: 10
max: 10000000
level: 2
local: no
provision: thin
type: ssd
service:
compression: no
dedupe: no
encryption:
enabled: no
replication:
enabled: no
destination: none
interval: 120
type: synchronous
snapshot:
enabled: no
interval: 0
max: 0
--- # vim:syntax=yaml:ts=8:sw=2:expandtab:softtabstop=2
← cio nodeid cio qos →