一、一体机操作命令
2.6.1NBU进程管理
查看nbu进程
nbu-a:~ # su – admin
nbu-a.Main_Menu> Support
nbu-a.Support> Processes
nbu-a.Processes> NetBackup Show
启动nbu进程
nbu-a:~ # su – admin
nbu-a.Main_Menu> Support
nbu-a.Support> Processes
nbu-a.Processes> NetBackup Start
停止nbu进程
nbu-a:~ # su – admin
nbu-a.Main_Menu> Support
nbu-a.Support> Processes
nbu-a.Processes> NetBackup Stop
2.6.2一体机磁盘空间监控
nbu-a:~ # /usr/openv/pdde/pdcr/bin/crcontrol --dsstat
************ Data Store statistics ************
Data storage Raw Size Used Avail Use%
69.8T 65.7T 38.4T 27.3T 59%
Number of containers : 173468
Average container size : 242735821 bytes (231.49MB)
Space allocated for containers : 42106897429278 bytes (38.30TB)
Reserved space : 4490302407680 bytes (4.08TB)
Reserved space percentage : 5.9%
Use "--dsstat 1" to get more accurate statistics
Use "--dsstat 2" to get statistics for each partition
Use "--dsstat 3" to get more accurate statistics for each partition
2.6.3查看主机硬件信息
nbu-a:~ # su – admin
nbu-a.Main_Menu> Monitor
nbu-a.Monitor> Hardware
nbu-a.Monitor> Hardware ShowHealth
nbu-a.Monitor> Hardware ShowHealth Appliance
2.6.4查看磁盘柜硬件信息
nbu-a:~ # su – admin
nbu-a.Main_Menu> Monitor
nbu-a.Monitor> Hardware
nbu-a.Monitor> Hardware ShowHealth
nbu-a.Monitor> Hardware ShowHealth StorageShelf
2.6.5收集datacollect
nbu-a:~ # su – admin
nbu-a.Main_Menu> Support
nbu-a.Support> DataCollect
All logs have been collected in /tmp/DataCollect.zip
在提示的目录下找到对应的nbsu数据包,然后使用scp或ftp客户端工具传送至PC电脑本地。
2.6.6收集nbsu
nbu-a:~ # su – admin
nbu-a.Main_Menu> Support
nbu-a.Support> NBSU Create
The results are located in the
/log/netbackup/nbsu/2016-01-14-15-57-31 directory...
在提示的目录下找到对应的nbsu数据包,然后使用scp或ftp客户端工具传送至PC电脑本地。
二 、一体机开关机操作
1)、停止nbu进程
nbu-a:~ # su – admin
nbu-a.Main_Menu> Support
nbu-a.Support> Processes
nbu-a.Processes> NetBackup Stop
2)停止操作系统
停止nbu进程
nbu-a:~ # init 0
3)关闭硬件设备
三、NBU一体机登陆过程
字符界面登陆备份一体机xshell连接一体机,输入账户密码
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Fri Mar 21 18:25:34 2020 from 192.168.100.166
...
Master.Main_Menu> Support
Master.Support> Maintenance
<!-- Maintenance Mode --!>
maintenance's password:
maintenance-!> /opt/Symantec/sdcssagent/IPS/sisipsoverride.sh
Symantec Data Center Security Server Policy Override
Agent Version: 6.8.0 (build 309)
Current Policy: NetBackup Appliance Prevention Policy, r160
Policy Prevention: Disabled
Policy Override: Allowed
Override State: Overridden
Override Type: Prevention Overridden Completely
Override User: maintenance
Previous Comment:
Auto re-enable in: 2 hours, 32 minutes, 49 seconds
Do you wish to:
1. Re-enable the Policy.
2. Extend the Override Time.
Choice? [1] 2
To Extend the override time, enter your login password.
Password:
Choose the extend time:
...
Choice? [1] 6
Enter a comment. Press Enter to continue.
Please wait while the override time is extended.
The Override Time has been extended.
maintenance-!> elevate
Master:/home/maintenance # id
uid=0(root) gid=0(root) groups=0(root),1005(root)
四、备份带宽限制
2.7.1限制备份带宽,调整备份速度
Netbackup的限制备份带宽功能可以让你限制数据备份的带宽,从而在不影响应用运行的情况下进行数据备份。该功能仅限制备份带宽,并不影响恢复带宽。它也不影响Server的备份。
当备份启动时,NetBackup根据设定将数值传给Client,Client会根据该值控制传送给Server的速度
如果在一个子网上同时进行的备份工作增加或减少,NetBackup会动态提高或降低数据传输速度
限制备份带宽,仅适用于文件备份的策略。
配置方法1
在 /usr/openv/netbackup/bp.conf中加入下面一行:
LIMIT_BANDWIDTH = 111.112.113.1 111.112.113.50 5000
对于不同的范围的IP地址的主机,可以加多行,上面一行表示IP地址从111.112.113.1到111.112.113.50的所有主机,每个主机备份速度限定为5000Kbytes/s
配置方法2
1)通过JavaConsole进入MasterServers Properties,右侧右键点击主服务器,选择Properties…进入主服务器属性配置界面。
进入Properties窗口,左侧选择Bandwidth进入带宽限制设置。
点击Add新增一个带宽设置
上图实例限制10.10.10.200的文件备份速度为50MB/s。
# 三、NBU一体机登陆管理
字符界面登陆备份一体机xshell连接一体机,输入账户密码 WARNING! The remote SSH server rejected X11 forwarding request.Last login: Fri Mar 21 18:25:34 2020 from 192.168.100.166
Appliance Manage master and media appliances.Exit Log out and exit from the current shell.Manage Manage NetBackup appliance.Monitor Monitor NetBackup appliance activities.Network Network Administration.Reports Examine the running and historical state of the host.Settings Change NetBackup appliance settings.Shell Shell operations.Support NetBackup Support.
### Master.Main_Menu> Support Entering NetBackup support view...
Checkpoint Appliance Checkpoint Management.Cleanup Clean or reset specific appliance monitoring data.Collect Collect appliance details and transmit to Veritas.DataCollect Gather device logs.Disk Gather disk information.Errors Display NetBackup errors.Exit Log out and exit from the current shell.FactoryReset Reset this system to factory install imageFibreTransport Advanced settings.InfraServices Show/control infrastructure services.iostat Execute the iostat command.IPMI Remote management port configuration.KillRemoteCall Terminate running or hung remote calls on peer compute nodes.Logs Set level, share, unshare, view, and upload debug logs.Maintenance Launch maintenance shell.Messages Display the messages file.NBDNA Network traces with NBDNA tool (Select Create or Remove).Nbperfchk Execute the disk IO or network bandwidth check.NBSU Manage NetBackup support data files (Select Create or Remove).Processes Show/control NetBackup and Admin Console processes.Reboot Reboot the system.RecoverStorage View or delete directories backed up during appliance re-image.Return Return to the previous menu.Service Service management.ShelfOrdering View or reset the Expansion Storage Shelf order.Shell Shell operations.Show Display information.Shutdown Power off the system.Storage Storage data and configurationTest Test the current status of various appliance components.
### Master.Support> Maintenance <!-- Maintenance Mode --!>maintenance's password: ### maintenance-!> /opt/Symantec/sdcssagent/IPS/sisipsoverride.sh
Symantec Data Center Security Server Policy Override Agent Version: 6.8.0 (build 309) Current Policy: NetBackup Appliance Prevention Policy, r160Policy Prevention: Disabled Policy Override: Allowed Override State: Overridden Override Type: Prevention Overridden Completely Override User: maintenance Previous Comment: Auto re-enable in: 2 hours, 32 minutes, 49 seconds
Do you wish to: 1. Re-enable the Policy. 2. Extend the Override Time.Choice? [1] 2To Extend the override time, enter your login password.Password:
Choose the extend time: 1. 15 minutes 2. 30 minutes 3. 1 hour 4. 2 hours 5. 4 hours 6. 8 hoursChoice? [1] 6Enter a comment. Press Enter to continue.Please wait while the override time is extended.The Override Time has been extended.### maintenance-!> elevate
Master:/home/maintenance # iduid=0(root) gid=0(root) groups=0(root),1005(root)