PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Creation repository storeOnce concurrent task

Post by matteu »

Hello,

This is probably an easy issue but I don't find how to fix it !

I would like to create StoreOnce repository and it's working perfectly.
I would like to create it with "limit maximum concurrent task to" disabled but I don't know how to do.

When I want to create it, If I don't use the switch LimitConcurrentJobs but it's enable with value 4.

I follow the documentation here : https://helpcenter.veeam.com/docs/backu ... ml?ver=110

For your information, There is an error on the documentation I think. If I want to limit it, I need to use the switch and add -MaxConcurrentJobs and if I enter 0 I have an errror indicate value must be between 1 and 128. In the documentation it's between 1 and 99.

Thanks :)
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Creation repository storeOnce concurrent task

Post by matteu »

Ok to give more details :

If I use the command add-VBRBackupReposytory with all parameters and I add -LimitConcurrentJobs:$false I have limit to 4.
If then I use the command Set-VBRBackupRepository -Repository (Get-VBRBackupRepository -Name $name) -LimitConcurrentJobs:$false the limit is disabled.

I don't understand why it's not working with the add command but it's with the Set
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Creation repository storeOnce concurrent task

Post by matteu »

Full test:

Code: Select all

#Repository name
$Name = "Repo_Toulouse_Store1"
#Repository server name
$Server = "storeonce.production.lan"
#Repository description
$Description = "Repository catalyst store1 Toulouse"
#Repository path
$Path = "store1"
#Repository max task parallel
$MaxJob = 4
#Credentials description
$CredentialsDescription = "$Server $Path"

$VBRServer = Get-VBRServer -Name $Server

#Create Veeam credential for store catalyst user account
$Credentials = Get-Credential -Message "$path for $server authentication"
$StoreCredentials = $Credentials | Add-VBRCredentials -Description $CredentialsDescription -Type Windows

#Add repository
$param=@{
    type = "HPStoreOnceIntegration"
    Name = $Name
    StoreOnceServerName = $Server 
    Folder = "storeonce://$($server):$path@/" 
    Credentials = $StoreCredentials 
    Description = $Description 
    StoreOnceWanLink = $true
    LimitConcurrentJobs = $false
}
Add-VBRBackupRepository @param
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Creation repository storeOnce concurrent task

Post by oleg.feoktistov »

Hi matteu,

From what I figure, it looks like a bug. Setting -LimitConcurrentJobs: $false doesn't work with Add cmdlet in my lab either at least with 2 repository types. Let me discuss it with QA in the nearest time and update this thread with the results.

Best regards,
Oleg
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Creation repository storeOnce concurrent task

Post by matteu »

Hello ,

Thank you for your feedback and I m happy to contribute to the improvment of powershell :)
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Creation repository storeOnce concurrent task

Post by oleg.feoktistov »

Turned out to be a bug as I anticipated. The fix is scheduled for vNext. Thanks!
matteu
Veeam Legend
Posts: 820
Liked: 128 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Creation repository storeOnce concurrent task

Post by matteu »

Thank you :)
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests