目录
1、SSH进入NBU服务器系统
ip:172.18.1.9
用户名:admin
密码:P@ssw0rd
注意:进入netbackup后台系统,退出到前一个界面,使用return命令。
2、处理步骤
(1)第一步查看
YCZBJTBACKUP.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 image FibreTransport 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. Shell Shell operations. Show Display information. Shutdown Power off the system. Storage Storage data and configuration Test Test the current status of various appliance components.
(2)第二步Maintenance,输入密码
YCZBJTBACKUP.Support> Maintenance
<!-- Maintenance Mode --!> maintenance's password: P@ssw0rd***&^%*** maintenance-!> /opt/Symantec/sdcssagent/IPS/sisipsoverride.sh Symantec Data Center Security Server Policy Override Agent Version: 6.7.3 (build 1473) Current Policy: NetBackup Appliance Prevention Policy, r142 Policy Prevention: Enabled Policy Override: Allowed Override State: Not overridden To override the policy and disable protection, enter your login password. Password:P@ssw0rd***&^%***
(3)选择保护模式
Choose the type of override that you wish to perform: 1. Override Prevention except for Self-Protection 2. Override Prevention Completely Choice? [1] 1 Choose the amount of time after which to automatically re-enable: 1. 15 minutes 2. 30 minutes 3. 1 hour 4. 2 hours 5. 4 hours 6. 8 hours Choice? [1] 6
Enter a comment. Press Enter to continue. Please wait while the policy is being overridden. ................. The policy was successfully overridden.
(4)输入elevate,进入标准linux系统
maintenance-!> elevate
YCZBJTBACKUP:/home/maintenance # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/system-root 90G 36G 50G 42% / devtmpfs 59G 0 59G 0% /dev tmpfs 59G 2.1M 59G 1% /dev/shm tmpfs 59G 22G 38G 36% /run tmpfs 59G 0 59G 0% /sys/fs/cgroup /dev/sdc1 477M 100M 348M 23% /boot /dev/mapper/systemlog-log 512G 78G 409G 16% /log /dev/mapper/system-rep 244G 19G 214G 8% /repository /dev/mapper/system-inst 49G 1.6G 45G 4% /inst tmpfs 4.0K 0 4.0K 0% /dev/vx tmpfs 12G 0 12G 0% /run/user/888 /dev/vx/dsk/nbuapp/catvol 250G 29G 221G 12% /cat /dev/vx/dsk/nbuapp/pdcatvol 120G 514M 119G 1% /msdp/cat /dev/vx/dsk/nbuapp/pdvol 27T 22T 5.1T 81% /msdp/data/dp1/pdvol /dev/vx/dsk/nbuapp/cfgvol 100G 861M 99G 1% /config tmpfs 12G 0 12G 0% /run/user/0
3、杀掉运行进程
(1)杀掉进程
YCZBJTBACKUP:/home/maintenance # bp.kill_all Still running... root 273385 1 0 2019 ? 01:19:27 /usr/openv/netbackup/bin/nbcssc -a NetBackup Still running... root 273385 1 0 2019 ? 01:19:27 /usr/openv/netbackup/bin/nbcssc -a NetBackup Still running... root 273385 1 0 2019 ? 01:19:27 /usr/openv/netbackup/bin/nbcssc -a NetBackup Still running... root 273385 1 0 2019 ? 01:19:27 /usr/openv/netbackup/bin/nbcssc -a NetBackup ......... Do you want this script to attempt to kill them? [y,n] (y) Killing remaining processes... Looking for Media Manager processes that need to be terminated. Stopping vmd... Looking for more NetBackup processes that need to be terminated. Stopping bpdbm... Stopping nbrb... Stopping nbemm... Stopping spws... Stopping mtstrmd... Stopping spoold... Stopping spad... Stopping pdes... Stopping nbevtmgr... Stopping nbdisco... Stopping bpcd... Stopping nbaudit... Stopping nbatd... Stopping NB_dbsrv... Stopping vnetd... Still running... root 17046 1 0 15:13 ? 00:00:00 /usr/openv/netbackup/bin/bpjava-susvc admin -1 -1 zh_CN.UTF-8 /usr/openv/java/auth.conf 1 -1 172.18.1.8 172.18.1.8 0 YCZBJTBACKUP NOT__APPLICABLE__ATDOMAIN -1 17039 noUserCredentialsFile root 17050 17046 0 15:13 ? 00:00:00 /usr/openv/netbackup/bin/bpjava-susvc admin -1 -1 zh_CN.UTF-8 /usr/openv/java/auth.conf 1 -1 172.18.1.8 172.18.1.8 0 YCZBJTBACKUP NOT__APPLICABLE__ATDOMAIN -1 17039 noUserCredentialsFile root 17056 17046 0 15:13 ? 00:00:00 /usr/openv/netbackup/bin/bpjava-susvc admin -1 -1 zh_CN.UTF-8 /usr/openv/java/auth.conf 1 -1 172.18.1.8 172.18.1.8 0 YCZBJTBACKUP NOT__APPLICABLE__ATDOMAIN -1 17039 noUserCredentialsFile root 24251 17046 0 15:21 ?
..................
Waiting for processes to terminate... spws 29670 1 0 15:25 ? 00:00:00 /usr/openv/pdde/vpfs/bin/spws /usr/openv/pdde/vpfs/bin/.bin/spws start root 286343 1 17 2019 ? 107-14:02:24 /usr/openv/pdde/pdag/bin/mtstrmd --config /usr/openv/lib/ost-plugins//mtstrm.conf Waiting for processes to terminate... spws 29670 1 0 15:25 ? 00:00:00 /usr/openv/pdde/vpfs/bin/spws /usr/openv/pdde/vpfs/bin/.bin/spws start root 286343 1 17 2019 ? 107-14:02:24 /usr/openv/pdde/pdag/bin/mtstrmd --config /usr/openv/lib/ost-plugins//mtstrm.conf ......... Waiting for processes to terminate... spws 29670 1 0 15:25 ? 00:00:00 /usr/openv/pdde/vpfs/bin/spws /usr/openv/pdde/vpfs/bin/.bin/spws start root 286343 1 17 2019 ? 107-14:02:24 /usr/openv/pdde/pdag/bin/mtstrmd --config /usr/openv/lib/ost-plugins//mtstrm.conf Waiting for processes to terminate... spws 29670 1 0 15:25 ? 00:00:00 /usr/openv/pdde/vpfs/bin/spws /usr/openv/pdde/vpfs/bin/.bin/spws start root 286343 1 17 2019 ? 107-14:02:24 /usr/openv/pdde/pdag/bin/mtstrmd --config /usr/openv/lib/ost-plugins//mtstrm.conf Waiting for processes to terminate... spws 29670 1 0 15:25 ? 00:00:00 /usr/openv/pdde/vpfs/bin/spws /usr/openv/pdde/vpfs/bin/.bin/spws start root 286343 1 17 2019 ? 107-14:02:24 /usr/openv/pdde/pdag/bin/mtstrmd --config /usr/openv/lib/ost-plugins//mtstrm.conf ^C
(2)杀掉干不掉的进程
YCZBJTBACKUP:/home/maintenance # kill -9 29670 YCZBJTBACKUP:/home/maintenance # kill -9 286343
(3)退出底层重新进入
return
YCZBJTBACKUP.Main_Menu> YCZBJTBACKUP.Monitor> Hardware ShowErrors
4、停服务
(1)退出底层重新进入Support-InfraServices
YCZBJTBACKUP.Main_Menu> Support Entering NetBackup support view... YCZBJTBACKUP.Support> InfraServices Entering InfraServices view...
YCZBJTBACKUP.InfraServices> Stop all
WARNING: Stopping these services may result in failure of some operations.
Do you want to continue? [yes, no]: yes
Web server tomcat-vxos stopped successfully.
Message queue stopped successfully.
Database stopped successfully.
(2)退出InfraServices,进入Processes
YCZBJTBACKUP.InfraServices> Return
YCZBJTBACKUP.Support> Processes
Entering Process view...
YCZBJTBACKUP.Processes> NetBackup Stop
- [Info] Stopping NetBackup processes on appliance 'yczbjtbackup'
--大约等待3-5分钟,停止完成
5、启动服务
(1)退出Processes,进入InfraServices,开启服务
YCZBJTBACKUP.Processes> Return YCZBJTBACKUP.Support> InfraServices Entering InfraServices view...
--开启服务
YCZBJTBACKUP.InfraServices> Start all
(2)退出InfraServices,进入Processes,开启netbackup服务
YCZBJTBACKUP.InfraServices> Return
YCZBJTBACKUP.Support> Processes
Entering Process view...
YCZBJTBACKUP.Processes> NetBackup start
- [Info] Starting NetBackup processes on appliance 'yczbjtbackup'
--大约等待30分钟,启动完成,时间比较久
6、查看是否有报错信息
退出系统,重新进入Monitor查看服务状态
YCZBJTBACKUP.Monitor> Hardware show ShowComponents ShowErrors ShowHealth YCZBJTBACKUP.Monitor> Hardware ShowErrors
二、重启服务器
如果出现netbackup的web服务无法打开,那么只能重启服务器了。
重启方法:
1、进入172.18.1.9底层的linux进行重启(系统重启后,nbu服务自动启动)
2、在控制台192.168.70.150 sysadmin/p@ssw0rd的控制台重启。