1lsm_volume_raid_create(3) Libstoragemgmt C API Manuallsm_volume_raid_create(3)
2
3
4

NAME

6       lsm_volume_raid_create - Create a RAID volume.
7

SYNOPSIS

9       int   lsm_volume_raid_create  (lsm_connect  *conn,  const  char  *name,
10       lsm_volume_raid_type raid_type, lsm_disk *disks[], uint32_t disk_count,
11       uint32_t strip_size, lsm_volume **new_volume, lsm_flag flags);
12

ARGUMENTS

14       conn        Valid connection.
15
16       name        String.  Human  recognizable  name,  might  be  altered  or
17                   ignored by certain storage system.
18
19       raid_type   lsm_volume_raid_type.  Please  refer  to  the  returns   of
20                   lsm_volume_raid_create_cap_get  function for supported RAID
21                   type.
22
23       disks[]     An array of lsm_disk pointer.
24
25       disk_count  The count of lsm_disk in 'disks' argument.
26
27       strip_size  uint32_t. The strip size in  bytes.  Please  refer  to  the
28                   returns of lsm_volume_raid_create_cap_get function for sup‐
29                   ported strip sizes.
30
31       new_volume  Output pointer of  lsm_volume  for  newly  created  volume.
32                   Returned  value  must  be  freed  with  a  call to lsm_vol‐
33                   ume_record_free.
34
35       flags       Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
36

VERSION

38       1.2
39

DESCRIPTION

41       Only available for hardware RAID cards.  Create a disk  RAID  pool  and
42       allocate entire full space to new volume.
43

CAPABILITY

45       LSM_CAP_VOLUME_RAID_CREATE
46

RETURN

48       Error code as enumerated by 'lsm_error_number'.
49           * LSM_ERR_OK
50               On success.
51           * LSM_ERR_INVALID_ARGUMENT
52               When any argument is NULL or not a valid lsm_connect pointer
53               or invalid flags.
54           * LSM_ERR_NOT_FOUND_DISK
55               When disk not found.
56           * LSM_ERR_DISK_NOT_FREE
57               When disk not free.
58           * LSM_ERR_NO_SUPPORT
59               Not supported.
60
61
62
63March 2021                  lsm_volume_raid_create   lsm_volume_raid_create(3)
Impressum