PowerShell script exchange
Post Reply
veldthui
Novice
Posts: 7
Liked: 2 times
Joined: Jul 26, 2019 1:00 am
Full Name: John Veldthuis
Contact:

Veeam Issue backing up Lenovo

Post by veldthui »

Backing up my Lenovo using a script over a 1GB network works perfectly with no issues.
Using the same script except using a different IP on a 10GB network works but has errors and when finished locks the IP.

During the backup I can ping the IP but as soon as it finishes can no longer ping the IP and I have to reboot the server to get ESXI running on that network again.
The script throws out errors as below.

Code: Select all

Start-VBRZip : Cannot validate argument on parameter 'Entity'. The argument is null. Provide a valid value for the argument, and then try running the command again.
At C:\Users\johnv\Documents\Veeam Backup Lenovo 10GB.ps1:113 char:40
+     $ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compre ...
+                                        ~~~
    + CategoryInfo          : InvalidData: (:) [Start-VBRZip], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Veeam.Backup.PowerShell.Cmdlets.StartVBRZip

But it does seem to work and a backup ends up in the folder. However there will be multiple entries in the email saying success

Code: Select all

SpeedTest_2019-12-23T133723 	23/12/2019 1:37:23 pm	23/12/2019 1:40:41 pm	Success	Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 	23/12/2019 1:37:23 pm	23/12/2019 1:40:41 pm	Success	Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 	23/12/2019 1:37:23 pm	23/12/2019 1:40:41 pm	Success	Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 	23/12/2019 1:37:23 pm	23/12/2019 1:40:41 pm	Success	Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 	23/12/2019 1:37:23 pm	23/12/2019 1:40:41 pm	Success	Processing finished at 23/12/2019 13:40:38
There is only one backup done.

I am at a loss as the script is exactly the same except the IP for the network and the 1GB work perfectly and the 10GB fails.
I also use the same scripts for an HPe DL360 Gen 9 and they both work on that no issue.
Using 6.7U3 Lenovo iso and update 4 of Veeam.

Here is the code in question. I have single stepped through and all the variables have the correct data in them.

Code: Select all

foreach ($VMName in $VMNames)
{
  $VM = Find-VBRViEntity -Name $VMName -Server $Server
  
  If ($EnableEncryption)
  {
    $EncryptionKey = Add-VBREncryptionKey -Password (cat $EncryptionKey | ConvertTo-SecureString)
    $ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel -DisableQuiesce:(!$EnableQuiescence) -AutoDelete $Retention -EncryptionKey $EncryptionKey -NetworkCredentials $netcreds
  }
  
  Else 
  {
    $ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel -DisableQuiesce:(!$EnableQuiescence) -AutoDelete $Retention -NetworkCredentials $netcreds
  }
  
  If ($EnableNotification) 
  {
    $TaskSessions = $ZIPSession.GetTaskSessions().logger.getlog().updatedrecords
    $FailedSessions =  $TaskSessions | where {$_.status -eq "EWarning" -or $_.Status -eq "EFailed"}
  
  if ($FailedSessions -ne $Null)
  {
    $MesssagyBody = $MesssagyBody + ($ZIPSession | Select-Object @{n="Name";e={($_.name).Substring(0, $_.name.LastIndexOf("("))}} ,@{n="Start Time";e={$_.CreationTime}},@{n="End Time";e={$_.EndTime}},Result,@{n="Details";e={$FailedSessions.Title}})
  }
   
  Else
  {
    $MesssagyBody = $MesssagyBody + ($ZIPSession | Select-Object @{n="Name";e={($_.name).Substring(0, $_.name.LastIndexOf("("))}} ,@{n="Start Time";e={$_.CreationTime}},@{n="End Time";e={$_.EndTime}},Result,@{n="Details";e={($TaskSessions | sort creationtime -Descending | select -first 1).Title}})
  }
  
  }   
}
Any insights welcome
wishr
Veteran
Posts: 3077
Liked: 453 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: Veeam Issue backing up Lenovo

Post by wishr »

Hello John,

When you encounter a technical error it's always recommended to raise a support case immediately to get a solution asap, as our ability to troubleshoot through the forum is limited. Please, let us know your case ID once you have it for reference purposes. Also note, that according to our forum rules any topic not having a case ID will be eventually removed by forum moderators.

Thank you
veldthui
Novice
Posts: 7
Liked: 2 times
Joined: Jul 26, 2019 1:00 am
Full Name: John Veldthuis
Contact:

03926089 Veeam Issue backing up Lenovo

Post by veldthui »

Case number 03926089
veldthui
Novice
Posts: 7
Liked: 2 times
Joined: Jul 26, 2019 1:00 am
Full Name: John Veldthuis
Contact:

Post by veldthui »

Beginning to think this is a Lenovo/ESXi issue. I tried again single stepping through and it backed up the first VM and then when it went to do the second one the IP was no longer responding and the connection timed out.
May move all the VM's to a spare machine and then format the server and re-install ESXi from scratch and see what that does.
veldthui
Novice
Posts: 7
Liked: 2 times
Joined: Jul 26, 2019 1:00 am
Full Name: John Veldthuis
Contact:

Re: Veeam Issue backing up Lenovo

Post by veldthui » 1 person likes this post

Looks like I was right. I was trying to reset the network connection without rebooting the server and noticed that on the machine I am having trouble on it had two 10GB networks into a vswitch for redundancy. The server that was working properly had only 1 10GB connection into the vswitch as I had not connected the second port yet.

I disconnected one cable of the machine having issues and straight away the network came back. Tried running the backup script again and it appears to be working fine.
veldthui
Novice
Posts: 7
Liked: 2 times
Joined: Jul 26, 2019 1:00 am
Full Name: John Veldthuis
Contact:

Re: Veeam Issue backing up Lenovo

Post by veldthui » 1 person likes this post

This is a definite ESXi issue and the ConnectX 3 Pro card I and the ESXi driver software have in my Lenovo. I have ordered an Intel version of the card and that will fix my issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests