PowerShell script exchange
Post Reply
allan.warner
Novice
Posts: 4
Liked: never
Joined: Sep 17, 2021 7:03 am
Full Name: Allan Warner
Contact:

Disable VPowerNFS on BackupRepository..

Post by allan.warner »

Any know how to disable the VPowerNFS service on the backup Repository...

Add-VBRBackupRepository has just parameters
-VPowerNFSPort
-NFSRepositoryEncoding

but I have not used these and the repository has NFS enabled.

Set-VBRBackupRepository has just parameters\switches

-EnableVPowerNFS
-NFSRepositoryEncoding
-VPowerNFSPort

I thought the -EnableVPowerNFS looked promising so i used Set-VBRBackupRepository with no -EnableVPowerNFS, however it doesnot uncheck the vPowerNFS Mount option..

Am I doing something wrong or is there no option to disable\uncheck vPowerNFS apart from in the GUI...
soncscy
Veteran
Posts: 643
Liked: 312 times
Joined: Aug 04, 2019 2:57 pm
Full Name: Harvey
Contact:

Re: Disable VPowerNFS on BackupRepository..

Post by soncscy » 1 person likes this post

Try -EnableVpowerNFS:$false
allan.warner
Novice
Posts: 4
Liked: never
Joined: Sep 17, 2021 7:03 am
Full Name: Allan Warner
Contact:

Re: Disable VPowerNFS on BackupRepository..

Post by allan.warner »

Just following up on this... I know its been a long time but the

Set-VBRBackupRepository -Repository $RepoObj -EnableVPowerNFS:$false;

does work.. there is just no equivalent in the

Add-VBRBackupRepository

command. Just means when adding the repo, I have to enable and start the Veeam NFS service... then stop and disabled post the addition.
Then I can use the set command to disable the vPowerNFS option..

Just an annoyance..
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Disable VPowerNFS on BackupRepository..

Post by david.domask »

Hi @allan.warner

I just tested in lab and it worked fine on v12:

Code: Select all

PS C:\Users\Administrator> $repo = Get-VBRBackupRepository -Name 'some repo'
PS C:\Users\Administrator> $repo.UseNfsOnMountHost
True
PS C:\Users\Administrator> Set-VBRBackupRepository -Repository $repo -EnableVPowerNFS:$false

Name                      Type         Host            FriendlyPath    Description
----                      ----         ----            ------------    -----------
some repo                 WinLocal     ddom-veeam-r... C:\somestuff hi


PS C:\Users\Administrator> $repo = Get-VBRBackupRepository -Name 'some repo'
PS C:\Users\Administrator> $repo.UseNfsOnMountHost
False
And of course in UI it was disabled also. Can you show the same output from your lab?
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests