Volume Replication

AI Tools

Creating volumes with non-default compression and the number of replicas settings can be done through the Openstack ‘volume types’ mechanism.

The default number of replicas for volumes is 3, and valid values forlightosdefaultnum_replicas are 1, 2, or 3.

To create a new volume type with compression enabled:

$ openstack volume type create --property compression='<is> True' volume-with-compression

To create a new volume type with one replica:

$ openstack volume type create --property lightos:num_replicas=1 --property volume_backend_name=lightos volume-with-one-replica

To create a new type for a compressed volume with three replicas:

$ openstack volume type create --property compression='<is> True' --property lightos:num_replicas=3 \ volume-with-three-replicas-and-compression

Then create a new volume with one of these volume types:

$ openstack volume create --size <size> --type <type name> <vol name>


On This Page
Volume Replication