Scroll to navigation

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

Valid connection.
String. Human recognizable name, might be altered or ignored by certain storage system.
lsm_volume_raid_type. Please refer to the returns of lsm_volume_raid_create_cap_get function for supported RAID type.
An array of lsm_disk pointer.
The count of lsm_disk in 'disks' argument.
uint32_t. The strip size in bytes. Please refer to the returns of lsm_volume_raid_create_cap_get function for supported strip sizes.
Output pointer of lsm_volume for newly created volume. Returned value must be freed with a call to lsm_volume_record_free.
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