Start a Conversation

Unsolved

Closed

W

6 Posts

141

August 1st, 2023 11:00

PowerMax 10.x create volume failed without specify Storage Group

 

 

I am trying to create some gatekeeper devices on our new PowerMax 2500 running PowerMax OS 10.x, both PowerShell and Ansible failed if I do not specify a storage group. But the same thing can be done successfully should I do it in Unisphere GUI or use EMC Solutions Enabler  symdev create command(In both cases specify a storage group name are not required), can someone please explain to me why?

 

New-Volume -Unisphere $unisphere_te -ArrayId 000120001234 -StorageGroupId 'None' -Size '6' -Unit 'CYL' -IdentifierName gatekeeper
PS C:\> New-Volume -Unisphere $unisphere_te -ArrayId 000120001234 -StorageGroupId 'None' -Size '6' -Unit 'CYL' -IdentifierName gatekeeper
New-Volume : Error calling EditStorageGroup: {"message":"Storage Group [None] on Symmetrix [000120001234] cannot be found"}
At line:1 char:1
+ New-Volume -Unisphere $unisphere_te -ArrayId 000120001234 -StorageGro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : DeviceError: (000120001234:String) [New-Volume], ApiException
+ FullyQualifiedErrorId : Error during volume creation,Dell.PowerMax.PowerShell.NewVolume

 

The full traceback is:
File "/tmp/ansible_dellemc.powermax.volume_payload_u0l79p6b/ansible_dellemc.powermax.volume_payload.zip/ansible_collections/dellemc/powermax/plugins/modules/volume.py", line 868, in if_srdf_protected
failed: [localhost] (item=1) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"append_vol_id": null,
"cap_unit": "CYL",
"new_name": null,
"new_sg_name": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"serial_no": "000120001234",
"sg_name": "",
"size": 3.0,
"state": "present",
"unispherehost": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"universion": 100,
"user": "smc.admin",
"verifycert": "false",
"vol_id": null,
"vol_name": "pm2_abc_gakekeeper_1",
"vol_wwn": null
}
},
"item": 1,
"msg": "Failed to determine if storage group ['sg_x1_app_test_01'] is srdf protected, with error 'unprotected'"
}

419 Posts

September 13th, 2023 13:58

Apologies I am not getting updates on my posts so this is very very delayed response,  PowerShell is using the API but As far as I am aware that module set is not being actively developed.  My recommendation would be to use Python and PyU4V library which is released with every new version of the API 

419 Posts

August 2nd, 2023 03:00

Hi, the PowerMax API is designed around storage group management.  A volume typically needs to be in a storage group for host access or for management of snapshots.  The API capitalizes on this providing simpler management operations for complex storage configurations by utilizing the storage group construct.  The PowerMax API will automatically create volumes when you are adding them to  the storage group if need be.  This is detailed in the blog post below.

https://infohub.delltechnologies.com/p/getting-started-with-the-powermax-rest-api-time-for-a-rest/#:~:text=Storage%20group%20based%20control%20with%20PowerMax%20REST%20API

If you need to create volumes and remove them from a storage group you can do that by utilizing a temporary storage group however that can make operations more complicated.  if you adopt the storage group approach which is recommended adding devices even in multi-site SRDF environments is greatly simplified with the API calls.

6 Posts

August 2nd, 2023 07:00

Hi rawstorage,

Thanks a lot for quick response, it make sense. One more question, I know ansible use API call, does Dell.PowerMax Powershell module use  API calls as well?

 

6 Posts

September 14th, 2023 13:59

@rawstorage​ No worries, thanks a lot.  I use PowerShell, Ansible and Solutions to manage PowerMax, lots of options now, not like 10 years ago.

No Events found!

Top