Commit 2b574ec2 authored by Tomasz Zawadzki's avatar Tomasz Zawadzki Committed by Jim Harris
Browse files

doc: update lvol bdev documentation with changes for 18.01



Thin provisioning for lvol bdevs enabled starting with 4132ac52.
Unmap is now supported on lvol starting with patch cf6fe9b1.

Change-Id: I10c47f9e1af31785caf27fd73750461c9cde57c4
Signed-off-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/397573


Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 9856fe06
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ A logical volume is implemented as an SPDK blob created from an lvolstore. An lv
Representation of an SPDK block device (spdk_bdev) with an lvol implementation.
A logical volume block device translates generic SPDK block device I/O (spdk_bdev_io) operations into the equivalent SPDK blob operations. Combination of lvol ID and lvolstore UUID gives lvol_bdev name in a form "uuid/lvolid". block_size of the created bdev is always 4096, due to blobstore page size. Cluster_size is configurable by parameter. By default it is 1GiB.
Size of the new bdev will be rounded up to nearest multiple of cluster_size.
By default lvol bdevs claim part of lvol store equal to their set size. When thin provision option is enabled, no space is taken from lvol store until data is written to lvol bdev.

# Configuring Logical Volumes

@@ -50,16 +51,17 @@ destroy_lvol_store [-h] uuid
    single lvol requires using delete_bdev rpc call.
    optional arguments:
    -h, --help  show help
get_lvol_stores [-h]
get_lvol_stores [-h] [NAME]
    Display current logical volume store list
    optional arguments:
    -h, --help  show help
    NAME, show details of specified lvol store
```

RPC regarding lvol and spdk bdev:

```
construct_lvol_bdev [-h] uuid size
construct_lvol_bdev [-h] [-t] uuid size
    Creates lvol with specified size on lvolstore specified by its uuid.
    Then constructs spdk bdev on top of that lvol and presents it as spdk bdev.
    Returns the name of new spdk bdev
@@ -76,6 +78,5 @@ delete_bdev [-h] bdev_name

# Restrictions

- Unmap is not supported.
- Nesting logical volumes on each other is not supported.
- Resizing lvol bdev is experimental. Code is present but not used.