NetBackup™ Self Service 配置指南
远程 PowerShell 到 Windows 主服务器相关的问题
NetBackup 主服务器限制远程连接的数量。服务器默认数量通常不足。
在高使用率的安装中,可能需要增加此限制。如果超过限制,可能会发生以下错误:
NetBackup server name Connecting to remote server NetBackup server name failed with the following error message : The WS-Management service cannot process the request. The maximum number of concurrent shells for this user has been exceeded. Close existing shells or raise the quota for this user. For more information, see the about_Remote_Troubleshooting Help topic.
要增加此限制,请执行以下操作:
- 在 NetBackup 主服务器上,运行显示的 PowerShell 命令以确定允许的连接数量:
Get-Item WSMan:\localhost\Shell\MaxShellsPerUser
- 在 NetBackup 主服务器上,运行显示的 PowerShell 命令以增加允许的连接数量:
Set-Item WSMan:\localhost\Shell\MaxShellsPerUser interger_value
达到该限制的症状为类似以下内容的错误:
RunCommand failed. "C:\Program Files\Veritas\NetBackup\bin\admincmd\bpimagelist" "-d" "03/02/2015 09:58:11" "-e" "03/02/2015 11:58:11" "-json_compact" Run-Process script threw exception: Starting a command on the remote server failed with the following error message : The WS- Management service cannot process the request. This user is allowed a maximum number of 15 concurrent operations, which has been exceeded. Close existing operations for this user, or raise the quota for this user. For more information, see the about_Remote_Troubleshooting Help topic.
Windows 2012 的默认值为 1500。在 NetBackup 主服务器上,运行显示的命令以增加此限制:
winrm set winrm/config/Service @{MaxConcurrentOperationsPerUser="1500"}
默认情况下,Windows 位置使用 PowerShell 连接池。在 NetBackup 主服务器上调用 PowerShell 时,该选项允许更高的吞吐量。由于每次调用不需要创建计算机并销毁新的运行空间,因此可实现更高吞吐量。
表:用于 PowerShell 连接池的备份服务器字段
名称 |
详细信息 |
---|---|
NetBackup 使用池连接 |
确定是否已启用 PowerShell 连接池。默认情况下,连接池处于启用状态,以提高性能。请仅在支持人员要求时才更改此值。 |
NetBackup 最小池大小 |
PowerShell 连接池中的最少连接数量。如果此值为空,则默认为 1。请仅在支持人员要求时才更改此值。 |
NetBackup 最大池大小 |
PowerShell 连接池中的最多连接数量。如果此值为空,则默认为 3。请仅在支持人员要求时才更改此值。 |
诊断跟踪捕获大量关于 PowerShell 连接创建、使用和处理的信息。
以下 PowerShell 脚本可用来查找关于到 NetBackup 主服务器的连接的信息:
$machineName = 'netbackup_primary_server_machine_name' $userName = 'user_name_-_same_as_the_location_integration_setting' $password = '<password>' $connectionURI = ('http://{0}:5985/wsman' -f $machineName) $securePassword = ConvertTo-SecureString $password -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential ($userName, $securePassword) $connections = Get-WSManInstance -ConnectionURI $connectionURI -Credential $credential -ResourceURI shell -Enumerate #| where { $_.Owner -eq $userName } if($connections.length -eq 0) { "There are no remote PowerShell connections" } $connections | ForEach-Object { # To remove the connection, uncomment the line below # Remove-WSManInstance -ConnectionURI $connectionURI shell @{ShellID=$_.ShellID} $_ "Owner: {0}" -f $_.Owner "HostName: {0}" -f (Resolve-DnsName $_.ClientIP | select -expand NameHost) "-------------------------------------------------------" }
Self Service 在后台运行大量调度的任务。这些调度的任务在外部系统之间同步数据,并尽可能保持用户界面最新。以非租户管理员用户身份登录时,“监视”页的左侧显示这些任务的状态和计时。
如果运行特定任务时出现问题,操作轮齿为红色。如果单击任务名称,将显示“调度的任务详细信息”窗口。此窗口显示所有帮助故障排除进程的错误消息。您可以解析错误,然后单击下拉列表中的 以重试任务。
“监控”页的“活动”区域显示排队等待操作的任务。如果该队列中的项目超过十个,并且在几分钟内无任何更改迹象,可能是 Self Service 的主要任务引擎出现问题。确保 Windows 服务正在运行,并查看 %ProgramData%\Veritas\NetBackupSelfService
中找到的错误日志。可以从“监控”页面启动利用率数据重建。此操作将更新当前月份和先前月份的数据。
表:后台任务和描述
后台任务 |
描述 |
---|---|
System Sync |
自上次运行以来,从所有备份服务器导入备份映像。该任务终止旧备份映像并计算使用情况。该任务每天按调度运行一次。 |
System Update |
执行系统更新,如同步备份映像和更新活动请求。该任务每分钟按调度运行一次。 |
Asset Import |
根据配置的导入同步 NetBackup 导入或 vCloud Director 的计算机。该任务每天按调度运行一次,但是可以手动启动。 |