第一范文网 - 专业文章范例文档资料分享平台

NBU的备份和恢复图形篇

来源:用户分享 时间:2025/11/12 22:12:12 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

文档来源为:从网络收集整理.word版本可编辑.欢迎下载支持.

Veritas常用命令-原创

Veritas常用命令:

1. 查看当有运行的任务

bpdbjobs –report | grep Active 2. 停止任务

bpdbjobs –cancel PID (包括主任务和子任务) 3. 开始任务

bpbackup –i –p task_name(如bss_archive_backup) 4.查看所有在用的驱动器和磁带

vmoprcmd –h media_server_hostname 5.查看pool所含的磁带(包括freeze) bpmedialist 6.Freeze磁带

bpmedia –freeze –m media_id –h media_server_hostname bpmedia -h hostname |grep FROZEN 7.查看error解释 bperror –S media_id 8.查看在驱动器的磁带 robtest 1 s d

查看slot中的磁带 robtest 1 s s

将带子从驱动器的移走 m d驱动器号 s槽号 9.查找某一盘磁带

在MASTER上 vmquery –m media_id 10.测试IBM磁带库 lsdev –Cc tape tapeutil 1

/dev/rmt1

11.查看某个时间段的备份情况

bpimagelist –U –d 08/20/2004 00:00:00 –e 08/21/2004 00:00:00

1文档收集于互联网,如有不妥请联系删除.

文档来源为:从网络收集整理.word版本可编辑.欢迎下载支持.

12.查看备份策略 bpplist

13.通过bpps –a 确认veritas进程(SAN Media)已停止 netstat |grep bpcd 查看bpcd监听进程(client) 14.UP驱动器或重启驱动器 vmoprcmd –up no. vmoprcmd –reset no. 15.将带子从pool中移走

bpexpdate –m media_id –d 0 –host hostname

Netbackup Tips

Glossary

Term CLI GUI Media Server Master Server Stopping Netbackup

? ? ? ? ?

Definition Command Line Interface Graphical User Interface Starting and Stopping Netbackup

/usr/openv/netbackup/bin/K77netbackup --> graceful shutdown /usr/openv/netbackup/bin/bpps -a --> check for any remaining processes

/usr/openv/netbackup/bin/goodies/bp.kill_all ---> kills all remaining netbackup processes, not necessarily graceful

/usr/openv/netbackup/bin/bpps -a --> check for any remaining processes

kill -9 for any remaining. NOTE: unkillable processes may require a reboot

Starting Netbackup

?

/usr/openv/netbackup/bin/S77netbackup --> after bp.kill_all, to restart

Common Tasks

Starting the Administration GUI

?

java from the windows client

2文档收集于互联网,如有不妥请联系删除.

文档来源为:从网络收集整理.word版本可编辑.欢迎下载支持.

?

x-windows from the server - /usr/openv/netbackup/bin/xnb &

Checking Backup Status

Activity Monitor or

? /usr/openv/netbackup/bin/admincmd/bpdbjobs -report

?

Cleaning a tape manually

Identify the drive name to be cleaned

o tpclean -L

? Manually clean the drive:

o tpclean -C

?

Determining what tapes were used for a backup

?

GUI

o

Backup and Restore --> Find the file system --> Preview Media Button

?

CLI

Find the correct backup images

? bpimagelist -U -client -d -e

o Find the media used for those images

? bpimagelist -U -client -d -e

-media

o

Listing the files in a backup

Find the tape(s) used (above procedure using bpimagelist) cd /usr/openv/netbackup/db/jobs/done

Run the following script and redirect it's output to a text file:

for file in `grep MOUNTING *|grep |awk '{print $1}'|sed 's/:MOUNTING//'` do

echo $file

grep PATH_WRITTEN $file|awk '{print $3}' echo \

echo \Image======================================\ echo \ done

3文档收集于互联网,如有不妥请联系删除.

文档来源为:从网络收集整理.word版本可编辑.欢迎下载支持.

This process works for NBU V3.4:

? ? ? ? ? ?

cd /usr/openv/netbackup/db/images/

ls -ltr --> this will identify the directory with the proper date

verify directory with \ cd

ls -ltr --> lists all of the backups for this client on this date cat __.f | awk '{print $10}' --> this prints out the files in the backup

For NBU > V3.4

?

bpflist --help --> undocumented netbackup command to list files from a binary .f file

Inventory the Robot

Inventory Robot --> /opt/openv/volmgr/bin/vmcheckxxx -rt robot_type -rn robot_number -list (where robot_type is tld, acs, . . .)

? Inventory Robot and Update Configuration --> /opt/openv/volmgr/bin/vmupdate -rt robot_type -rn

robot_number -list (where robot_type is tld, acs, . . .)

?

Listing Properties of the Volume Pools

?

vmpool -listall

Scratch Tapes

Count scratch tapes: /usr/openv/volmgr/bin/vmquery -pn Scratch | grep -c \

? Moving tapes to the scratch pool

o If Needed - Expire the tape

? bpexpdate -ev -d 0 -force -host

Manager>

?

4文档收集于互联网,如有不妥请联系删除.

文档来源为:从网络收集整理.word版本可编辑.欢迎下载支持.

o

Move the tape

? vmchange -p 2 -m

Checking Drive Usage

?

/usr/openv/volmgr/bin/vmoprcmd

Taking a drive down or up

/usr/openv/volmgr/vmoprcmd -down ? /usr/openv/volmgr/vmoprcmd -up

?

Performing a Restore

?

From the GUI

o user backup & restore --> configuration --> client

o user backup & restore --> configuration --> client to restore

o directory to search o directory depth o date range

o file --> browse backups for restore

Adding New Tapes to the Library

Using the GUI

o Media Management --> Actions --> New --> Single Volume . . --> o Media Type (ie DLT) o Robot Type (ie TLD)

o Media ID (from Inventory)

o Slot Number (from Inventory) o Robot Number (ie 0) o Volume Group

o Volume Pool (ie Scratch)

? Using the CLI

o vmadd -m -mt -verbose -rt -b -rn -rc1 -p -mm

? vmpool -listall --> lists all pools, both name and

number

?

5文档收集于互联网,如有不妥请联系删除.

搜索更多关于: NBU的备份和恢复图形篇 的文档
NBU的备份和恢复图形篇.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c3x0rb4lpli0zn011oo6h6et871df8g01964_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top