block_storage.rst 774 B

12345678910111213141516171819
  1. Working with block storage
  2. ==========================
  3. To add persistent storage to your cloud environments, you would use block
  4. storage devices, namely volumes and volume snapshots. A volume is attached to
  5. an instance and mounted as a file system for use by an application. A volume
  6. snapshot is a point-in-time snapshot of a volume that can be shared with other
  7. cloud users. Before a snapshot can be used, it is necessary to create a volume
  8. from it.
  9. Volume storage
  10. --------------
  11. Operations, such as creating a new volume and listing the existing ones, are
  12. performed via the :class:`.VolumeService`.
  13. .. code-block:: python
  14. vol = provider.block_store.volumes.create('Cloudbridge-vol', 1, 'us-east-1a')
  15. vol.wait_till_ready()
  16. provider.block_store.volumes.list()