admin 管理员组

文章数量: 887021


2024年2月20日发(作者:linux系统怎么切换到root用户)

1.停止 NetBackup/ 介质管理器后台驻留程序

[root@mylinux ~]# /usr/openv/netbackup/bin/goodies/_all

Looking for NetBackup processes that need to be terminated.

Suspending or

Looking for Media Manager processes that need to be terminated.

Looking for VxDBMS processes that need to be terminated.

Stopping VxDBMS database server ...

The following processes are still active

root 2906 1 0 07:50 ? 00:00:01 /usr/openv/db//bin/NB_dbsrv

@/usr/openv/var/global/ @/usr/openv/var/global/ -hn 8

Do you want this script to attempt to kill them? [y,n] (y)

Killing

Waiting for processes

2.运行以下命令从 VxUL 主配置中注销 NetBackup,该配置存储在/etc/vx/ 文件中。

/usr/openv/netbackup/bin/vxlogcfg -r -p 51216

-p 选项可指定产品 ID, NetBackup 的产品 ID 为 51216

[root@mylinux ~]# /usr/openv/netbackup/bin/vxlogcfg -r -p 51216

The configuration settings were removed successfully.

3.运行以下命令删除 NetBackup 数据库(即使数据库已不在默认位置,仍会删除它们):

/usr/openv/db/bin/create_nbdb -drop_only

[root@mylinux ~]# /usr/openv/netbackup/bin/vxlogcfg -r -p 51216

The configuration settings were removed successfully.

[root@mylinux ~]# /usr/openv/db/bin/create_nbdb -drop_only

Database server is VERITAS_NB_mylinux.(none)

Ping server failed -- Database server not found.

Database server [VERITAS_NB_mylinux.(none)] not available.

Dropping the NetBackup database: /usr/openv/db/data/

4.要从 /etc/services 和 [x]inetd 配置文件中删除对 NetBackup/ 介质管理器的引用,运行

edit_services 脚本:/usr/openv/netbackup/bin/goodies/edit_services.

[root@mylinux ~]# /usr/openv/netbackup/bin/goodies/edit_services

Editing services and xinetd configuration to remove

references to NetBackup and Media Manager.

Copying original /etc/services file to /etc/_041009.07:59:59

Checking for a bprd entry in /etc/services: Deleting bprd entry.

Checking for a bpdbm entry in /etc/services: Deleting bpdbm entry.

Checking for a bpcd entry in /etc/services: Deleting bpcd entry.

Checking for a vnetd entry in /etc/services: Deleting vnetd entry.

Checking for a vopied entry in /etc/services: Deleting vopied entry.

Checking for a bpjava-msvc entry in /etc/services: Deleting bpjava-msvc entry.

Checking for a bpjobd entry in /etc/services: Deleting bpjobd entry.

Checking for a nbdbd entry in /etc/services: No nbdbd entry.

Checking for a NB_dbsrv entry in /etc/services: Deleting NB_dbsrv entry.

Checking for a visd entry in /etc/services: No visd entry.

Checking for a vmd entry in /etc/services: Deleting vmd entry.

Checking for a acsd entry in /etc/services: Deleting acsd entry.

Checking for a tl8cd entry in /etc/services: Deleting tl8cd entry.

Checking for a odld entry in /etc/services: Deleting odld entry.

Checking for a vtlcd entry in /etc/services: No vtlcd entry.

Checking for a ts8d entry in /etc/services: No ts8d entry.

Checking for a tldcd entry in /etc/services: Deleting tldcd entry.

Checking for a tl4d entry in /etc/services: Deleting tl4d entry.

Checking for a tsdd entry in /etc/services: No tsdd entry.

Checking for a tshd entry in /etc/services: Deleting tshd entry.

Checking for a tlmd entry in /etc/services: Deleting tlmd entry.

Checking for a tlhcd entry in /etc/services: Deleting tlhcd entry.

Checking for a lmfcd entry in /etc/services: No lmfcd entry.

Checking for a rsmd entry in /etc/services: Deleting rsmd entry.

Checking for a tc8d entry in /etc/services: No tc8d entry.

Checking for a tc4d entry in /etc/services: No tc4d entry.

Checking for a bpcd entry in /etc/xinetd.d: Found.

Copying /etc/xinetd.d/bpcd to /etc/_041009.07:59:59/bpcd

Deleting /etc/xinetd.d/bpcd.

Checking for a vopied entry in /etc/xinetd.d: Found.

Copying /etc/xinetd.d/vopied to /etc/_041009.07:59:59/vopied

Deleting /etc/xinetd.d/vopied.

Checking for a vnetd entry in /etc/xinetd.d: Found.

Copying /etc/xinetd.d/vnetd to /etc/_041009.07:59:59/vnetd

Deleting /etc/xinetd.d/vnetd.

Checking for a bpjava-msvc entry in /etc/xinetd.d: Found.

Copying /etc/xinetd.d/bpjava-msvc to /etc/_041009.07:59:59/bpjava-msvc

Deleting /etc/xinetd.d/bpjava-msvc.

Sending SIGHUP to xinetd process.

Reloading configuration: [ OK ]

5.删除 /usr/openv 目录

[root@mylinux ~]# rm -rf /usr/openv

6.

[root@mylinux ~]# chkconfig --list netbackup

netbackup 0:off 1:off 2:on 3:on 4:off 5:on

7.删除以下链接和文件

[root@mylinux rc3.d]# rm /etc/rc.d/init.d/netbackup

rm: remove regular file `/etc/rc.d/init.d/netbackup'? y

[root@mylinux ~]# /sbin/chkconfig --del netbackup

帐户的 NetBackup-Java 应用程序状态数据

[root@mylinux rc3.d]# rm -rf /.nbjava

[root@mylinux rc3.d]# rm -rf /.java/.userPrefs/vrts

6:off


本文标签: 删除 管理器 数据库 系统 切换