文档来源为:从网络收集整理.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
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
o Find the media used for those images
? bpimagelist -U -client
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
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
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 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 ? 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 ? vmpool -listall --> lists all pools, both name and number ? 5文档收集于互联网,如有不妥请联系删除.
NBU的备份和恢复图形篇
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)