1lsm_disk_status_get(3)    Libstoragemgmt C API Manual   lsm_disk_status_get(3)
2
3
4

NAME

6       lsm_disk_status_get - Retrieves status of specified disk.
7

SYNOPSIS

9       uint64_t lsm_disk_status_get (lsm_disk *d);
10

ARGUMENTS

12       d           Disk to retrieve status for.
13

VERSION

15       1.0
16

DESCRIPTION

18       Retrieves status of the specified disk.
19

RETURN

21       uint64_t.  Status of the specified disk which is a bit sensitive field.
22       Possible values are:
23           * LSM_DISK_STATUS_UNKNOWN
24               Plugin failed to query out the status of disk.
25           * LSM_DISK_STATUS_OK
26               Everything is OK.
27           * LSM_DISK_STATUS_OTHER
28               Vendor specific status.
29           * LSM_DISK_STATUS_PREDICTIVE_FAILURE
30               Disk is still functional but will fail soon.
31           * LSM_DISK_STATUS_ERROR
32               Error make disk not functional.
33           * LSM_DISK_STATUS_REMOVED
34               Disk was removed by administrator.
35           * LSM_DISK_STATUS_STARTING
36               Disk is starting up.
37           * LSM_DISK_STATUS_STOPPING
38               Disk is shutting down.
39           * LSM_DISK_STATUS_STOPPED
40               Disk is stopped by administrator.
41           * LSM_DISK_STATUS_INITIALIZING
42               Disk is not functional yet, internal storage system is
43               initializing this disk, it could be:
44                   * Initialising new disk.
45                   * Zeroing disk.
46                   * Scrubbing disk data.
47           * LSM_DISK_STATUS_MAINTENANCE_MODE
48               In maintenance for bad sector scan, integrity check and etc It
49               might be combined with LSM_DISK_STATUS_OK or
50               LSM_DISK_STATUS_STOPPED for online maintenance or offline
51               maintenance.
52           * LSM_DISK_STATUS_SPARE_DISK
53               Disk is configured as spare disk.
54           * LSM_DISK_STATUS_RECONSTRUCT
55               Disk is reconstructing its data.
56           * LSM_DISK_STATUS_FREE
57               New in version 1.2, indicate the whole disk is not holding any
58               data or acting as a dedicate spare disk. This disk could be
59               assigned as a dedicated spare disk or used for creating pool.
60               If any spare disk(like those on NetApp ONTAP) does not require
61               any explicit action  when  assigning  to  pool,  it  should  be
62       treated
63               as free disk and marked as
64               LSM_DISK_STATUS_FREE|LSM_DISK_STATUS_SPARE_DISK.
65
66
67
68November 2022                 lsm_disk_status_get       lsm_disk_status_get(3)
Impressum