lsm_volume_raid_create - Man Page
Create a RAID volume.
Synopsis
int lsm_volume_raid_create (lsm_connect *conn, const char *name, lsm_volume_raid_type raid_type, lsm_disk *disks[], uint32_t disk_count, uint32_t strip_size, lsm_volume **new_volume, lsm_flag flags);
Arguments
- conn
Valid connection.
- name
String. Human recognizable name, might be altered or ignored by certain storage system.
- raid_type
lsm_volume_raid_type. Please refer to the returns of lsm_volume_raid_create_cap_get function for supported RAID type.
- disks[]
An array of lsm_disk pointer.
- disk_count
The count of lsm_disk in 'disks' argument.
- strip_size
uint32_t. The strip size in bytes. Please refer to the returns of lsm_volume_raid_create_cap_get function for supported strip sizes.
- new_volume
Output pointer of lsm_volume for newly created volume. Returned value must be freed with a call to lsm_volume_record_free.
- flags
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Version
1.2
Description
Only available for hardware RAID cards. Create a disk RAID pool and allocate entire full space to new volume.
Capability
LSM_CAP_VOLUME_RAID_CREATE
Return
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags.
* LSM_ERR_NOT_FOUND_DISK
When disk not found.
* LSM_ERR_DISK_NOT_FREE
When disk not free.
* LSM_ERR_NO_SUPPORT
Not supported.