Skip to main content
Solved

Unable To restore filesystems - cvpysdk - Python

  • February 16, 2021
  • 8 replies
  • 373 views

Forum|alt.badge.img+2

Hello,

I have some trouble to restore filesystems to a Storage array using the cvpysdk python library, the restore from the Commcell works perfectly.

The commands that i’m using to do a restore is bellow:

commcell = Commcell('My_commcell', commcell_login ,commcell_password)
client = commcell.clients.get('My_storage_array')
agent = client.agents.get('My_Agent')
backupset = agent.backupsets.get('My_Backupset')
backupset.subclients.add("backup_tmp", storage_policy="My_storage_policy")
subclient = backupset.subclients.get("backup_tmp")
subclient.network_share_auto_mount = True
subclient.content = ["My_storage_array:/My_Filesystem"]
subclient.enable_backup()
job_backup = subclient_fs.backup(backup_level='Full')
job_finished =job_backup.wait_for_completion()
paths_retore = "/My_storage_array/My_Filesystem"
job_restore = subclient_fs.restore_out_of_place(client="My_Client", paths=[paths_retore],destination_path="/My_storage_array")

the job is always pending and it detectes the number of files and folders to restore, the output is :

job_restore.pending_reason

'Failed to restore even a single file<br>Source: My_Client, Process: clRestore'

is there any command or anything that i’m missing ?

 

Thanks in advance for your help

 

Amine :D

Best answer by Yash

@mhamel Code works for us internally. We think the out of place restore you’re trying should’ve failed if you’ve tried it through Java GUI or Command Center. Could you please try that for this exact subclient: “backup_tmp” which is under client → My_storage_array → My_Backupset → backup_tmp and let us know? If it fails, then you may proceed with creating the support ticket.

View original
Did this answer your question?

8 replies

Forum|alt.badge.img+4
  • Vaulter
  • 23 replies
  • February 16, 2021

@loki  Code works fine. Could you please check?


Forum|alt.badge.img+3
  • Vaulter
  • 10 replies
  • February 17, 2021

@mhamel,

Can you please create a commvault support ticket? We may need the logs and CommServer to help you solve this.

 

Thanks


Forum|alt.badge.img+2
  • Author
  • Bit
  • 7 replies
  • February 17, 2021

Hi @Sachin,

 

I opened a ticket to commvault support, no good answers was giving to me.

 

Thanks,

 

Amine


Forum|alt.badge.img+3
  • Vaulter
  • 10 replies
  • February 17, 2021

Hi @mhamel,

 

Sorry for the trouble you had faced earlier. If you could share the support ticket number we can start our discussions over there and work on this. 

 

Thanks


Forum|alt.badge.img+2
  • Author
  • Bit
  • 7 replies
  • February 18, 2021

Hi @Sachin,

 

The ticket was opened by our subcontractor and was not handeled because the support said it does not process tickets regarding customer code, this is why i’m turning to the community to get some help.

 

Thanks

 

Amine


Forum|alt.badge.img+4
  • Vaulter
  • 23 replies
  • Answer
  • February 18, 2021

@mhamel Code works for us internally. We think the out of place restore you’re trying should’ve failed if you’ve tried it through Java GUI or Command Center. Could you please try that for this exact subclient: “backup_tmp” which is under client → My_storage_array → My_Backupset → backup_tmp and let us know? If it fails, then you may proceed with creating the support ticket.


Mike Struening
Vaulter
Forum|alt.badge.img+23
mhamel wrote:

Hi @Sachin,

 

The ticket was opened by our subcontractor and was not handeled because the support said it does not process tickets regarding customer code, this is why i’m turning to the community to get some help.

 

Thanks

 

Amine

@mhamel , can you send me the case number via a private message?  I’m not seeing it because it’s not under your name.


Forum|alt.badge.img
  • Vaulter
  • 1 reply
  • February 19, 2021

@mhamel As Mike has requested, have you shared the ticket number? We need this to escalate the case accordingly.

Thank you.

Alain


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings