Create and Manage Data Stores
Data stores provide disk space for your virtual servers and operating systems. Data stores are attached to Compute resources. The basic management tools are the same for all data store types, but the creation process differs. This section provides information on how you can view, create, edit and delete data stores.
View Data Stores
To view all data stores on your cloud:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Stores icon. The screen that appears lists all data stores currently available and their details:
- Label - the name of the data store
- IP address - the IP address of the data store
- Shared? - whether the data store is shared between several compute resources or not
- Identifier - the identifier of the data store
- Enabled - whether the data store is enabled or not
- Data Store Zone - the data store zone to which this data store is assigned
- Location Group - the location group to which this data store is assigned
- Disk Usage - used disk size within the data store
- Disk Capacity - the disk capacity set for the data store
- Actions - click the Actions icon to Edit or Delete a data store
To use the data store, you have to add it to a data store zone and assign it either to a compute resource or a compute zone.
Create LVM Data Store
To create a data store:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Stores icon.
- Click the Create Data Store link at the bottom of the screen.
- Follow the steps in the creation wizard:
Step 1 of 2. Properties
- Label - choose a name for the data store
- IP address - enter an IP address for your data store
- Data store type - select the lvm data store type
- Enabled - move the slider to the right to enable the data store. When disabled, OnApp will not allow new disks to be created automatically on that data store. This is useful to prevent an established data store from becoming too full. It also lets you prevent the automatic creation of root disks on 'special' data stores (high speed, etc).
- Click Next.
Step 2. Resources
- Disk Capacity - set disk capacity in GB
- Local Compute resource - if required, you can also bind the data store with a local Compute resource. This is helpful if you wish that the data store and a Compute resource were located on the same physical server thus decreasing the time needed for a Compute resource-data store connection.
Data Store Zone - assign the data store to a data store zone. The drop-down menu lists all data store zones set up in the cloud (to add or edit data store zones, see Create and Manage Data Store Zones). Unless you assign a data store to a data store zone and compute resource or zone, you won't be able to use this data store for storage. When you add a data store to a data store zone, the data store inherits the zone's type. It will be possible to move such a data store only to a data store zone of the same type. For more information refer to Zone Types.
- When you've finished configuring the store, click the Create Data Store button.
OnApp doesn’t support the 4 K block size for local LVM data stores.
To view LVM details, use the following commands:
- pvdisplay - shows the current state of your physical volumes
- vgdisplay - shows all volume groups
- lvdisplay - shows all logical volumes
- lvscan - shows all active volumes (disks)
- lvs - shows the same information as lvscan does but with less details
- pvscan - scans all disks for physical volumes and shows disk space
Create SolidFire Data Store
You can create one SolidFire data store per cloud that will represent the space available at the SolidFire side.
To create a SolidFire data store:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Stores icon.
- Click the Create Data Store link at the bottom of the screen.
- Follow the steps in the creation wizard:
Step 1 of 3. Properties- Label - enter a data store label
- IP address - specify an IP address to be used for managing the data store via CP (Inasmuch SolidFire data stores have two interfaces, you'll have to specify the IP address for the cluster admin later)
- Data store type - select a solidfire data store type
- Enabled - move the slider to the right to enable a data store. When disabled, OnApp will not allow new disks to be created automatically on that data store. This is useful to prevent an established data store from becoming too full. It also lets you prevent the automatic creation of root disks on 'special' data stores (high speed, etc).
- Click Next.
- Disk Capacity - set disk capacity in GB.
- Local Compute resource - if required, you can also bind the data store with a local Compute resource. This is helpful if you wish that the data store and a Compute resource were located on the same physical server thus decreasing the time needed for a Compute resource-data store connection.
Data Store Zone - assign the data store to a data store zone. The drop-down menu lists all data store zones set up in the cloud (to add or edit data store zones, see Data Store Zones Settings).
When you add a data store to a data store zone, the data store inherits the zone's type. It will be possible to move such a data store only to a data store zone of the same type. For more information refer to Zone Types.
Step 3. Authentication Settings
- Specify the cluster Admin settings:
- iSCSI IP - iSCSI IP address
- Username - specify username for cluster authorization
- Password - specify password for cluster authorization
- iSCSI IP - iSCSI IP address
- Specify the SolidFire Account settings:
- Username - specify SolidFire account username
- Initiator secret - specify iSCSI initiator secret (optional)
- Target secret - specify iSCSI target secret (optional)
Initator secret and target secret are optional parameters. They are created automatically for a newly created account. For the new account they will be taken from the SolidFire database.
If you specify target and initiator secrets for an existing user, they will be overwritten. - Username - specify SolidFire account username
When you've finished configuring the store, click the Create Data Store button.
Edit Data Store
To edit a data store:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Stores icon. You'll see a list of the data stores on your system.
- Click the Actions button next to the store you want to change, then click Edit.
- On the following page the appropriate data store details:
- Label - the name of the data store.
- IP address - the IP address of the data store.
- Iscsi IP - iSCSI IP address.
- Disk Capacity - set disk capacity in GB.
- Enabled - move the slider to the right to enable a data store. When disabled, OnApp will not allow new disks to be created automatically on that data store. This is useful to prevent an established data store from becoming too full. It also lets you prevent the automatic creation of root disks on 'special' data stores (high speed, etc).
- Local Compute resource - if required, you can also bind the data store with a local Compute resource. This is helpful if you wish that the data store and a Compute resource were located on the same physical server thus decreasing the time needed for a Compute resource-data store connection.
Data Store Zone - you can re-assign the data store to another data store zone. The drop-down menu lists all data store zones set up in the cloud (to add or edit data store zones, see Data Store Zones Settings).
It is possible to move data stores only between data store zones of the same type. For more information, refer to Zone Types.
- Data Store Type - edit the data store type.
- Trim - select the checkbox to enable Trim on your SSD. For more information about the option, see TRIM.
If you have an integrated data store, the following parameters will be additionally available:
- Auto Healing - move the slider to the right to enable auto healing
- Epoch - move the slider to the right to enable epochs.
- Integrated Storage Cache enabled - move the slider to the right to enable caching
- Click the Save Data Store button to finish.
Edit Data Store IO Limits
IOPS limiting functionality allows you to prioritize the load on a SAN for VSs. IOPS limiting can be set for data store or for separate disks.
- Ensure that the IO Limiting permissions are on before managing IO limits. For more information refer to the List of all OnApp Permissions section of this guide.
- All IO limits are set to unlimited by default.
- The IOPS limit, set for a data store, is automatically applied to all disks within this data store.
To edit a data store IO limits:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Stores icon. You'll see a list of the data stores on your system.
- Click the Actions button next to the store you want to change, then click Edit IO Limits.
- On the following page edit the appropriate data store details:
- Read IOPS - set the read IOPS amount
- Write IOPS - set the write IOPS amount
- Read throughput - specify the read throughput (in MB/s)
- Write throughput - specify the write throughput (in MB/s)
Click the Save button to finish.
To disable IOPS limiting:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Stores icon. You'll see a list of the data stores on your system.
- Click the Actions button next to the store you want to change then click Edit IO Limits.
- On the following page set all parameters to Unlimited.
Click the Save button to finish.
- Go to /onapp/interface/config/on_app.yml file and set the io_limiting_enabled parameter as 'false'. Disabling will only remove the feature from the UI, old vdisk limits will be used if not set to unlimited.
Delete Data Store
To delete a data store:
- Go to your Control Panel > Admin > Settings menu.
- Click the Data Store icon. You'll see a list of the data stores in your system.
- Click the Actions icon next to the data store you want to delete, then click Delete. You'll be asked for confirmation before the store is deleted.