dell / PyU4V

PyU4V is a Python module that simplifies interaction with the Unisphere for PowerMax REST API. It wraps REST calls with simple APIs that abstracts the HTTP request and response handling.
Apache License 2.0
41 stars 37 forks source link

Link one tdev to another tdev #152

Closed Rafmoshe2500 closed 1 year ago

Rafmoshe2500 commented 2 years ago

Hi, I want to restore only one tdev from a storage group that contains a lot of tdevs (32 and maby more). But i cant found a way to do that in the python library and in the rest api

The only way to do that is from the solution enabler via ssh.

I realy hope to see that function added in the next version.

Thanks.

rawstorage commented 1 year ago

Unfortunately you can't do this in the API right now without using temporary storage groups. If an enhancement is made to the API we can certainly add in PyU4V

Rafmoshe2500 commented 1 year ago

Hi, Can you explain to me how to do that with temporary sgs?

And this something that you plan to include in the next versions of the library?

בתאריך יום ג׳, 6 בדצמ׳ 2022, 17:05, מאת Paul Martin ‏< @.***>:

Unfortunately you can't do this in the API right now without using temporary storage groups. If an enhancement is made to the API we can certainly add in PyU4V

— Reply to this email directly, view it on GitHub https://github.com/dell/PyU4V/issues/152#issuecomment-1339520060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSEUB555QRHZ45QUWTTLWDWL5IZVANCNFSM6AAAAAAQQGMJ6E . You are receiving this because you authored the thread.Message ID: @.***>

rawstorage commented 1 year ago

Create an empty SG with no SLO and no SRP for source volume. Add the volume you want to restore to the empty storage group, issue restore.

conn.provisioning.create_empty_storage_group( storage_group_id="temp_sg", SRP=None, service_level=None, workload=None) conn.provisioning.add_existing_volume_to_storage_group( storage_group_id="temp_sg",vol_ids="00123") conn.replication.restore_snapshot_by_snap_id("temp_sg",snap_name="mysnap", snap_id=00023435)

Do this with a test volume first to verify the process.

From: Rafmoshe2500 @.> Sent: 06 December 2022 15:18 To: dell/PyU4V @.> Cc: Martin, Paul @.>; State change @.> Subject: Re: [dell/PyU4V] Link one tdev to another tdev (Issue #152)

[EXTERNAL EMAIL] Hi, Can you explain to me how to do that with temporary sgs?

And this something that you plan to include in the next versions of the library?

בתאריך יום ג׳, 6 בדצמ׳ 2022, 17:05, מאת Paul Martin ‏< @.***>:

Unfortunately you can't do this in the API right now without using temporary storage groups. If an enhancement is made to the API we can certainly add in PyU4V

— Reply to this email directly, view it on GitHub https://github.com/dell/PyU4V/issues/152#issuecomment-1339520060 [github.com]https://urldefense.com/v3/__https:/github.com/dell/PyU4V/issues/152*issuecomment-1339520060*3E__;IyU!!LpKI!hzni5Pkc0-SaahWeZaFqQKx8eA3YXdzqM5qAFL7MNZQvkQJeNaF0NM0AhDejQQENZEh57JsXmMt-k5dB8E1IOSKW$, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSEUB555QRHZ45QUWTTLWDWL5IZVANCNFSM6AAAAAAQQGMJ6E [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AVSEUB555QRHZ45QUWTTLWDWL5IZVANCNFSM6AAAAAAQQGMJ6E*3E__;JQ!!LpKI!hzni5Pkc0-SaahWeZaFqQKx8eA3YXdzqM5qAFL7MNZQvkQJeNaF0NM0AhDejQQENZEh57JsXmMt-k5dB8FNgjXRB$ . You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/dell/PyU4V/issues/152*issuecomment-1339539950__;Iw!!LpKI!hzni5Pkc0-SaahWeZaFqQKx8eA3YXdzqM5qAFL7MNZQvkQJeNaF0NM0AhDejQQENZEh57JsXmMt-k5dB8LTNqkp9$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AF7FWPNMQ32PDCRWKHR5JALWL5KL3ANCNFSM6AAAAAAQQGMJ6E__;!!LpKI!hzni5Pkc0-SaahWeZaFqQKx8eA3YXdzqM5qAFL7MNZQvkQJeNaF0NM0AhDejQQENZEh57JsXmMt-k5dB8KgBKllG$. You are receiving this because you modified the open/close state.Message ID: @.***>

Internal Use - Confidential