NBU的备份和恢复图形篇Word格式文档下载.docx
《NBU的备份和恢复图形篇Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《NBU的备份和恢复图形篇Word格式文档下载.docx(16页珍藏版)》请在冰豆网上搜索。
查看slot中的磁带
robtest1
ss
将带子从驱动器的移走
md驱动器号s槽号
9.查找某一盘磁带
在MASTER上vmquery–mmedia_id
10.测试IBM磁带库
lsdev–Cctape
tapeutil
1
/dev/rmt1
11.查看某个时间段的备份情况
bpimagelist–U–d08/20/200400:
00:
00–e08/21/200400:
00
12.查看备份策略
bpplist
13.通过bpps–a确认veritas进程(SANMedia)已停止
netstat|grepbpcd查看bpcd监听进程(client)
14.UP驱动器或重启驱动器
vmoprcmd–upno.
vmoprcmd–resetno.
15.将带子从pool中移走
bpexpdate–mmedia_id–d0–hosthostname
NetbackupTips
Glossary
Term
Definition
CLI
CommandLineInterface
GUI
GraphicalUserInterface
MediaServer
MasterServer
StartingandStoppingNetbackup
StoppingNetbackup
∙/usr/openv/netbackup/bin/K77netbackup
-->
gracefulshutdown
∙/usr/openv/netbackup/bin/bpps-a
-->
checkforanyremainingprocesses
∙/usr/openv/netbackup/bin/goodies/bp.kill_all
--->
killsallremainingnetbackupprocesses,notnecessarilygraceful
∙kill-9<
pid>
foranyremaining.
NOTE:
unkillableprocessesmayrequireareboot
StartingNetbackup
∙/usr/openv/netbackup/bin/S77netbackup
afterbp.kill_all,torestart
CommonTasks
StartingtheAdministrationGUI
∙javafromthewindowsclient
∙x-windowsfromtheserver-/usr/openv/netbackup/bin/xnb&
CheckingBackupStatus
∙ActivityMonitoror
∙/usr/openv/netbackup/bin/admincmd/bpdbjobs-report
Cleaningatapemanually
∙Identifythedrivenametobecleaned
otpclean-L
∙Manuallycleanthedrive:
otpclean-C<
drivename>
Determiningwhattapeswereusedforabackup
∙GUI
oBackupandRestore-->
Findthefilesystem-->
PreviewMediaButton
∙CLI
oFindthecorrectbackupimages
▪bpimagelist-U-client<
CLIENT>
-d<
STARTDATE>
-e<
ENDDATE>
oFindthemediausedforthoseimages
-media
Listingthefilesinabackup
Findthetape(s)used(aboveprocedureusingbpimagelist)
cd/usr/openv/netbackup/db/jobs/done
Runthefollowingscriptandredirectit'
soutputtoatextfile:
forfilein`grepMOUNTING*|grep<
MEDIA_ID>
|awk'
{print$1}'
|sed'
s/:
MOUNTING//'
`
do
echo$file
grepPATH_WRITTEN$file|awk'
{print$3}'
echo"
"
==========================================EndofImage======================================"
done
ThisprocessworksforNBUV3.4:
∙cd/usr/openv/netbackup/db/images/<
∙ls-ltr
thiswillidentifythedirectorywiththeproperdate
∙verifydirectorywith"
bpdbm-ctime<
Unixtime>
∙cd<
∙ls-ltr-->
listsallofthebackupsforthisclientonthisdate
∙cat<
POLICY>
_<
BUType>
.f|awk'
{print$10}'
thisprintsoutthefilesinthebackup
ForNBU>
V3.4
∙bpflist
--help
undocumentednetbackupcommandtolistfilesfromabinary.ffile
InventorytheRobot
∙InventoryRobot
/opt/openv/volmgr/bin/vmcheckxxx-rtrobot_type-rnrobot_number-list
(whererobot_typeistld,acs,...)
∙InventoryRobotandUpdateConfiguration-->
/opt/openv/volmgr/bin/vmupdate-rtrobot_type-rnrobot_number-list
ListingPropertiesoftheVolumePools
∙vmpool-listall
ScratchTapes
∙Countscratchtapes:
/usr/openv/volmgr/bin/vmquery-pnScratch|grep-c"
robotslot"
∙Movingtapestothescratchpool
oIfNeeded-Expirethetape
▪bpexpdate-ev<
TAPEID>
-d0-force-host<
MediaManager>
oMovethetape
▪vmchange-p2-m<
CheckingDriveUsage
∙/usr/openv/volmgr/bin/vmoprcmd
Takingadrivedownorup
∙/usr/openv/volmgr/vmoprcmd-down<
driveindex>
∙/usr/openv/volmgr/vmoprcmd-up<
PerformingaRestore
∙FromtheGUI
ouserbackup&
restore-->
configuration-->
client
clienttorestore
odirectorytosearch
odirectorydepth
odaterange
ofile-->
browsebackupsforrestore
AddingNewTapestotheLibrary
∙UsingtheGUI
oMediaManagement-->
Actions-->
New-->
SingleVolume..
oMediaType(ieDLT)
oRobotType(ieTLD)
oMediaID(fromInventory)
oSlotNumber(fromInventory)
oRobotNumber(ie0)
oVolumeGroup
oVolumePool(ieScratch)
∙UsingtheCLI
ovmadd-m<
mediaid>
-mt<
tapetype>
-verbose-rt<
robottype>
-b<
barcode>
-rn<
robotnumber>
-rc1<
slot>
-p<
poolnumber>
-mm<
maxmounts>
▪vmpool-listall
listsallpools,