table of contents
lsm_volume_raid_create(3) | Libstoragemgmt C API Manual | lsm_volume_raid_create(3) |
NAME¶
lsm_volume_raid_create - 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.
lsm_volume_raid_create | April 2023 |