Create Storage Class

 

Command

vbosctl create storageclass <name>

Description

Creates a storage class with following info:

Name: Storage class name input by user.

Pool_id: Storage pool id, get the id by CLI “./vbosctl get backendstoragepools”.

Vset: Vset name

Note: 

  • Different storage classes can use the same storage pool’s id.
  • If different storage classes use the same storage pool, sc use the same key to encrypt and decrypt the database.
  • Storage class’ vset should be same with storage pool’s vset

Kubectl command:

#kubectl get sc -o wide

Can get the new create storage class.

The storage class can be used to create pvc.

Options

  • --pool <storage pool>
  • --vset <vset number>

Sample Request

./vbosctl create storageclass storageclass_name --pool 134217729 --vset 1

 

Status

Sample Response

200

Success