Edit LVM Data Store

To edit an LVM data store, run the following request:

PUT /settings/data_stores/:id.xml
PUT /settings/data_stores/:id.json

XML Request Example

curl -i -X PUT http://onapp.test/settings/data_stores/7.xml -d '<data_store><label>:DS_label</label><data_store_group>DS_zone_id</data_store_group><local_compute resource_id>1</local_compute resource_id><ip>:DS_ip</ip><enabled>true/false</enabled><data_store_size>DS_size</data_store_size><data_store_type>lvm</data_store_type><trim>true</trim></data_store>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' 

JSON Request Example

curl -i -X PUT http://onapp.test/settings/data_stores/7.json -d '{"data_store":{"label":"DS_label","data_store_group":"DS_zone_id","local_hypervisor_id":"1","ip":"DS_ip","enabled":"true","data_store_size":"DS_size","data_store_type":"lvm","trim":"true"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'


label - the desired label for the data store

data_store_group_id - the ID of the data store zone to which this data store is attached

local_hypervisor_id  -  the ID of the compute resource to which this data store is assigned 

ip - the data store IP address 

enabled - set true or false. Set true if the data store is enabled and you can create virtual servers on it, otherwise false 

data_store_size - the data store disk capacity in GB

data_store_type - for LVM data stores, set lvm

(lightbulb) trim - true if TRIM is enabled on the data store, otherwise, false

For integrated data stores only:

integrated_storage_cache_enabled - set true or false. Set true if the integrated storage cache is enabled, otherwise false 

integrated_storage_cache_settings - indicate integrated storage cache settings, if integrated_storage_cache_enabled parameter is set to true

auto_healing - set true or false. Set true if auto healing is enabled, otherwise false 

Returns HTTP 204 response on successful deletion, or HTTP 404 when a data sore with the ID specified is not found, or the URL requested is incorrect.

Page History

v. 6.1

  • added the trim parameter

v. 5.3

  • added the auto_healing parameter