Veritas常用命令-原创
Veritas常用命令:1. 查看当有运行的任务bpdbjobs –report | grep Active2. 停止任务bpdbjobs –cancel PID (包括主任务和子任务)3. 开始任务bpbackup –i –p task_name(如bss_archive_backup)4.查看所有在用的驱动器和磁带vmoprcmd –h media_server_hostname5.查看pool所含的磁带(包括freeze)bpmedialist6.Freeze磁带bpmedia –freeze –m media_id –h media_server_hostnamebpmedia -h hostname |grep FROZEN7.查看error解释bperror –S media_id8.查看在驱动器的磁带robtest 1s d查看slot中的磁带robtest 1 s s 将带子从驱动器的移走m d驱动器号 s槽号9.查找某一盘磁带在MASTER上 vmquery –m media_id10.测试IBM磁带库lsdev –Cc tapetapeutil 1 /dev/rmt111.查看某个时间段的备份情况bpimagelist –U –d 08/20/2004 00:00:00 –e 08/21/2004 00:00:00 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
TermDefinitionCLICommand Line InterfaceGUIGraphical User InterfaceMedia ServerMaster ServerStarting and Stopping Netbackup
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
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
tpclean -L
Manually clean the drive:
tpclean -C
Determining what tapes were used for a backup
GUI
Backup and Restore --> Find the file system --> Preview Media Butto