ansible-collections / ibm.storage_virtualize

GNU General Public License v3.0
3 stars 9 forks source link

ibm_svc_info doesn't list any data reduction characteristics under the subset 'vol' #29

Closed mainline-automation closed 10 months ago

mainline-automation commented 1 year ago
SUMMARY

If you use ibm_svc_info to gather information on the vol subset you would expect to have all selectable attributes listed. However, I noticed today that it doesn't list whether the volume is thin or otherwise reduced.

ISSUE TYPE
COMPONENT NAME

ibm_svc_info.py

ADDITIONAL INFORMATION

I'm trying to build a python module to get relevant data from provisioning volumes in order to update a csv file. While my input when creating a volume has thin provisioning, I found that I couldn't look at the volume-level data from the svc_info module to populate a volume that wasn't already in the csv file.

"Volume": [
    {
      "id": "24",
      "name": "xxxxxxxxxxx",
      "IO_group_id": "0",
      "IO_group_name": "io_grp0",
      "status": "online",
      "mdisk_grp_id": "2",
      "mdisk_grp_name": "Pool_01",
      "capacity": "5.00TB",
      "type": "striped",
      "FC_id": "",
      "FC_name": "",
      "RC_id": "",
      "RC_name": "",
      "vdisk_UID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "fc_map_count": "0",
      "copy_count": "1",
      "fast_write_state": "not_empty",
      "se_copy_count": "0",
      "RC_change": "no",
      "compressed_copy_count": "0",
      "parent_mdisk_grp_id": "2",
      "parent_mdisk_grp_name": "Pool_01",
      "owner_id": "",
      "owner_name": "",
      "formatting": "no",
      "encrypt": "no",
      "volume_id": "24",
      "volume_name": "xxxxxxx",
      "function": "",
      "protocol": "scsi"
    },
Sandip-Rajbanshi commented 11 months ago

@mainline-automation, se_copy_count >=1 indicates that it is a thin provisioned volume. Also se_copy = yes indicated that volume copy is thin-provisioned and compressed_copy_count indicates number of compressed volume copies. Does that resolve your query? If yes, I'll go ahead and close this issue.

sumitguptaibm commented 10 months ago

@mainline-automation, I am considering this resolves your query. If it doesn't, please feel free to reopen it and add additional queries about it.