0% found this document useful (0 votes)
376 views29 pages

Networker in Nut Shell

The document provides examples of commands used to query and manage Legato backup data. Some key commands include mminfo to query backup information, nsrjb to manage tape drives and libraries, mmlocate to find volumes in libraries, and nsrclone to create clones of backup data. Details are given on querying backups by date, client, volume, and other criteria.

Uploaded by

devesh1518
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
376 views29 pages

Networker in Nut Shell

The document provides examples of commands used to query and manage Legato backup data. Some key commands include mminfo to query backup information, nsrjb to manage tape drives and libraries, mmlocate to find volumes in libraries, and nsrclone to create clones of backup data. Details are given on querying backups by date, client, volume, and other criteria.

Uploaded by

devesh1518
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 29

http://xingsolar.com/San/Backup/Legato.

htm

MelonmDocumentationProject

LegatoinOnePage
Command|Backup/Restore|Storage|Windows|NMDA|
DailyJobs

Command

MMINFO
Basedondate/time
Allvolumeswrittenoninthepastweek(notincludingtoday):
mminfomt'lastweek'
Listbackupdoneonedayago:mminfoq"savetime>1day
ago"
GetsavesetsofSQLgroup3monthsago:mminfoavotq
"savetime<'91daysago',group='SQLBackups'"
Lookforsavesetbetweendate:mminfoavq
"client=usuman1,savetime>09/27/08,savetime<09/30/08"
Lookforsavesetafterdate:mminfoavq"client=usuman1"t
"10/28/08"
Or:mminfoavq"client=usuman1,savetime>10/28/08"
Morecomplicatedexamplestoquerybetweentimes
mminfosuslgto2cuscoredb3r
"client(1),volume(1),barcode(1),ssid(1),name(1),savetime(1)"q
"savetime>\"09/30/200816:59:00\",savetime<\"10/01/2008
20:59:00\""
mminfoavsuslgto2cuscoredb3q"savetime>\"09/30/2008
16:59:00\",savetime<\"10/01/200820:59:00\""
mminfosuslgto2cuscoredb3r
"client(1),volume(1),barcode(1),ssid(1),name(1),savetime(1)"q
"savetime>\"12/31/200820:59:00\",savetime<\"01/01/2009
20:59:00\""
Listvolume,%usedandpoolinformationovercertaintime:

mminfoar"volume,%used,pool"t"3days"
Note:Thetcanbeusedwithvarioudtimeframe.
*Relativetime:"3second/minute/hourday/week/month/year".
*Absolutetime:"05/11"
*Grammartime:"yesterday/lastweek"
Listsavesetinthevolumebasedonexpirationdate(retention
policy)
mminfooer"name,savetime(20),ssbrowse,ssretent"q
"volume=XING.Unix.OracleD.0001"
BasedonSSID
ListspecificsofSSID:mminfoqssid=120010372V
SearchforSSIDofparticularclientinparticularday:
mminfosuslgto2r
"client(1),volume(1),barcode(1),ssid(1),name(1),savetime(1)"q
"savetime>\"09/30/200820:59:00\""|grepuscoredb3|grep
09/30/08
Basedonhost
mminfoN<filesystem>c<hostname>#listvolumes/date
relatedto<filesystem>in<hosthame>
eg:mminfoN/usoradb8
ListparticularfilesystembackuphistoryinLegato:mminfo
avotqname=/obackup3
Basedonvolume/media
Reportcontentsonmedia:mminfom"Unix.1541"
Todisplayamediareportofallnonfullvolumes,showingthe
percentused,poolname,andlocationofeachvolume:
mminfoar'volume,%used,pool,location'q'!full'
ListSavesetbackedupinonevolume:mminfoav<volname>
TapeUsageQuery
mminfoavotr"olabel,labeled,mounts,recycled"<tapename>
olabel:thefirsttimethevolumewaslabelled
labeled:themostrecenttimethevolumewaslabelled
mounts:numberoftimethelabelwasread
recycled:numberoftimethetapewasrelabeled
mminfoavr"volume,state,pool,location,volretent"|grep

Scalar_100#AllvolumesintherobatScalar_100
mminfo:listdetailsbackuptimeofaparticularclient
mminfoqclient=ussapp1r
'savetime(32),sscreate(32),sumsize,name't'lastweek'ot
Savesetsummaryreport:mminfoX
Printoutweeklyreport:mminfoXt"lastweek"
Listbackupvolume/dateforfilesystem/inclientcesario:
mminfoN/ccesario
Tapesusedlastnight(thepast12hours):mminfoavr
"volume,%used,pool"t"12hours"
NOTE:Abovecommandusingmminfofortapesusedpastxx
hoursisoftenusedbutitiswrongbecausethedatemminfo
reliedonisthedatewhenthetapestartingtobeused(creation
time),notthedatetapeactuallybeingaccessed.Forexample,if
thetapefirstbeingusedisoneweekago,butconsequently
beingusedsincethen,itwillNOTshowupasbeingusedover
pastfewdays.
Correctcommandforthispurposeis:mminfoavq
"volaccess>=01/30/201117:59:00"rvolume,%used,pool
mminfowith"p"optionwillprintoutbrowse/retentiontimeof
savesets.
mminfowith"v"optionwillprintoutrecoverablesavesets(not
onlybrowsable)
Queryallvolumesusedforaparticularclientlastnight:mminfo
mvcuscoredb3t"12hours"
Locatecloneidofsaveid:
mminfoqssid=2268782890r
"volume,name,cloneid,ssbrowse,ssretent,ssflags,state"
Querytogetmonthendtapes:
mminfoavq"savetime>01/30/2009
17:59:00,savetime<02/01/200917:59:00,group=Unix_Prd"|
grep^PW
mminfoavq"savetime>01/31/2009
17:59:00,savetime<02/01/200917:59:00"cuscoredb3|grep
^PW
Querytolistcloneinformation:

mminfoavcuscoredb3q"savetime<2/02/2009
20:59:00,savetime>2/1/200920:59:00"r
"volume,pool,ssid,sumsize,name"
sscomp(20)cangiveanapproximatevalueofbackuptimefor
eachsaveset
mminfootq"group='Windows_Exch',savetime<1dayago"r
"name,pool,sscomp(20)"
MMINFOSavesetStatus
"fl"frommminfooutputwillrevealstatusofsavesets.Hereare
meaningsofvariousflags:
Flagsforsuccess
cbcompletebrowsable(completebackupdataonasingle
volume)
tbtailbrowsable
hbHeaderbrowsable
mbmiddlebrowsable
crcompleterecoverable(indexhasexpired)
cEcompleteerasable(retentionperiodhasbeenpassed)
Flagsforfailure
cacompleteaborted
ha,ta,ma,
ciinprogress(thismightnotbeafailurebutthesavesetmight
bestillbackinguporhanged)
hi,ti,mi.
FlagsforNDMP
NmeansNDMPbackup(eg,cbNS,hBNSetc.)
NSRJB
Resettheautochanger:nsrjbHv
Performaninventory:nsrjbIv
Performquickinventory:nsrjbII
Changecleaningtapetouse50moretimes:nsrjbU50S58
Commandtolabelslot3tapeinto"Unix"pool:nsrjbLf
/dev/rmt/1cbnS3b"Unix"
Unloadtapefrom/dev/rmt/0cbnintospecificslot:nsrjbuf
/dev/rmt/0cbnS10
Loadinganvolumeintospecificdrive:uslgto1#nsrjblf

/dev/rmt/0cbnXING.Archive.0001
ReinventoryLibrary:nsrjbIv
Resettheautochanger:nsrjbH
Returntapeinthedrivetowhereitcamefrom:nsrjbuf
/dev/rmt/0cbn
Withdrawvolumetoaccesspoint:nsrjbwj
rd=uslgto3.melonm.com:HPMSL1P1S30
Depositvolumefromaccesspoint(port1)intospecificslot
(total2ports#1&#2inMSL6060)
nsrjbdjrd=uslgto3.melonm.com:HPMSL1P1S43
MMLOCATE
Listcurrentvolumesinthelibrary:mmlocate'Scalar_100'
Listallvolumesinparticularlocation/library:mmlocate|grep
Scalar_100
NSRCLONE
/usr/sbin/nsrclonevb<clonepool><volumename>
/usr/sbin/nsrclonesuslgto2.melonm.comb"XINGUnixD"S
4115098422
/usr/sbin/nsrclonesuslgto2.melonm.combXINGUnixS
`mminfoN/u4cuscoredb3t"24hours"`
Cloneusingstoragenode:
nsrclonevJuslgto3.melonm.comb"DefaultClone"
uslgto3.melonm.com.002
nsrcloneofasavesetoutofmanycopies/clones
nsrclonevb"MonthendUnix"S2953554712/1225527855
findcloneid:mminfoqssid=2953554712r
"volume,name,cloneid,ssbrowse,ssretent,ssflags,state"
nsrclonefromfilewithssid(makesureenoughtimebetween
eachssid'sclone,sincedriveneedstimetoreinitialize)
mminfor"ssid"q"volume=uslgto2.melonm.com.014,!
incomplete">/tmp/1
nsrcloneb"DefaultClone"Sf/tmp/1
/tmp/1isthefileofallcompletedssidinthevolume
Ifnotsleeptimebetweenssids,willgeterroras
"DRIVE_STATUS_NEED_INIT".
nsrclonenewfeaturesin7.5.x

nsrclonevb"XINGUnixOracleD"Senowcuscoredb3g
Unix_Oracle
enow:past24hours
Withoutbflag,itwillcloneto"DefaultClone"pool
nsrclone:cloneasavegroupfromlastnight:nsrclonevb
"XINGWindows"SenowgWindows_Usr
nsrclonevb"XINGExchange"St"07/01/0918:59:00"e
"07/02/098:59:00"cusevs1gWindows_Exc
AscripttogetrequiredSSIDandrunnsrcloneforthemincron.
Downloadfromhere.
NSRADMIN
Beextremelycarefulaboutusingnsradmin>delete<query>
clause.Itwilldeleteclientaslongas<query>is
matched/successfully.Alwaysusing"update"isresourcesneed
tobeupdated.
Listrelatedattributesusing"echo>print"
echo"printtype:nsr<group>"|nsradmini><output>
cd/searchoutputfileandgetrelatedattributes(eg,"autostart"or
"laststart")
Morespecificexample:echo"printtype:nsrclient;name:
<clientname>"|nsradmini><output>
Listofresourcetypescanbeusedwith"echo>print"
combination.
nsradmin>showtypename
nsradmin>printtype:type
typename:NSR;
typename:NSRnotification;
typename:NSRlicense;
typename:NSRdevice;
typename:NSRstage;
typename:NSRgroup;
typename:NSRdirective;
typename:NSRschedule;
typename:NSRpolicy;
typename:NSRclient;
typename:NSRjukebox;

typename:NSRlabel;
typename:NSRpool;
typename:NSRarchiverequest;
typename:NSRmigration;
Listallclientsandtheirsavesets
Createatextfileclient_saveset.txt
showname
showsaveset
showgroup
printtype:nsrclient
nsradminiclient_saveset.txt><output.txt>
Updateallclientsproperty(updatefieldofstoragenode)?
/var/tmp/emc/sysnamelistsallhostnameoneperline
Scriptdownloadshere.
Migratingclienttonewserverusingnsradmin
Generatingclientproperty
echo"printtype:nsrclient;name:<clientname>"|nsradmini
>client_config
Copyclient_configtextfiletonewserver
Editclient_configfileandupdatethefollowingproperty
Firstline:update"type:NSRclient;"to"createtype:NSR
client;"
Removenumberof"clientid:"
Update"server:"tonewservername
Updateotherfieldsnonexistinginnewserver(eg,groupname,
directives,etc.)
Importclientintonewserver
nsradminiclient_config
DisableGSSauthenticationbetweenclient&server
Whenyougeterroras"GSSLegatoauthenticationfrom
<servername>failed",youwillneedtodisableGSS
authenticationinclients.
nsradminpnsrexec
.type:nsrla
showauthmethods
print

updateauthmethods:"0.0.0.0/0,oldauth"
Print
RestartLegatoagentafterwards.
Howtoenablensrddebuggingmodefortroubleshooting?
Rundateonclientsideandrecordtime.
psef|grepnsrd>getPIDofnsrd
dbgcommandp26863debug=9
Alldebugginginformationwillbewrittentodaemon.logfile.
Daemon.logwillgrowrapidly.
dbgcommandp26863debug=0
Turndebuggingoffoncedetailcollected.
Basedonrecordedtimepreviously,lookingthroughdaemon.log
forerrors.
HowtotroubleshootingLegatonetworkingproblem?
Startingsession
Using"lsofiTCP"andgrephost/nwsrvforconnectivitystatus
OtherLegatocommands
Listlicenseinformation:nsrlic
SearchallSCSIdevices:/etc/LGTOuscsi/inquire
Commandlinemonitoringtool:nsrwatch[sserver]
Scanner:mediaverifierandindexrebuilder
ListLegaotNetworkerenabler/authcode:/usr/sbin/nsradmin
f/nsr/res/nsr.res
nsradmin>showname;enablercode;expirationdate;authcode
nsradmin>printtype:nsrlicense
AddingdefaultLegatoAdministratorintoadministratorsgroup:
nsraddadminuadministrator@uslgto2.melonm.com
nsraddadminu"user=*,host=*"
Convertdaemon.rawintomorereadableformat:nsr_render_log
daemon.raw
Removeclient'sindex:nsrckRY<clientname>
Locatetapedrives:
*inquireLc
*sjisn1.1.0>changerIDfromabovecommand

Backup/Restore

HowtoBackupfilesinLegatofromclientside
saveg'XING_USSWIFTNET1_archive'b"XINGArchive"l
0vEy'08/15/2013'w'08/15/2013'//u1/u2/u3
*g:SavetogroupXING_USSWIFTNET1_archive
*b:UsepoolXINGArchive
*l:Level0
*v:Verbose
*E:Estimatetotalsize
*y:Retentionuntil08/15/2013
*w:Browseuntil08/15/2013
*Backupset://u1/u2/u3
Howtoprobe/testbackupforclientsinserverside?
Probegroup:savegrpvvvpSaveGroup
Probeclient:savegrpvvvpcclientnameSaveGroup
Probewithmodedebugginglevel:savegrpD9cclientname
SaveGroup
Actulbackupclient:savegrpvvvpcclientnameSaveGroup
BackupIndexonly:savegrpvvvOlfullcclientname
SaveGroup
Howtofixerror"/dev/rmt/4cbnopening:
DRIVE_STATUS_NEED_INIT"?
nsrjbHEv>Eoptionwillinitializethedriveelementstatus
nsrjbIev
Howtorestorefilestolocaldirectory?
/usr/bin/recover
recover>ls(toseefiles)
recover>add<filename>(addfiletorestorelist)
recover>changetimemm/dd/yy(changerestoretimeoffile)
recover>versions<filename>(showfileversions)
recover>voline<filename>(showvolumefileison)
recover>relocate<location>(relocaterestoretilestolocation)
recover>rocover(dotherestore)
Aninteractivesessiontorestore/etc/mailinusuman1into
/recoverdirectoryoflocalserver:

usuman1#recovercusuman1suslgto2
Currentworkingdirectoryis/
recover>relocate/recover
recover>changetime'March092009'
recover>cd/etc
recover>addmail
recover>recover
Anexamplerecoversessiontorestoredirectoryincertaindate
using"versions"keyword.Downloadhere.
HowtorestoreadhocfilesusingLegato?
recoversuslgto2d/u6S988276637
/usr/sap/PRD/INT/AP/IN/CHECK_STATEMENT_0121.out
/u6istargetdirectory
988276637isSSID
HowtoexcludecertaindirectoriesinWindows?
Creatensr.dirfileunderabovedirectorieswhereyouwantto
exclude.
Content:skip:ZyLab_6
Howtocreatepre/postexecscriptforLegatobackupclient?
Createrelated.resfileunder/nsr/res(eg,Unix_Archive.res)
type:savepnpc;
precmd:"suoraclec'/oracle/dba/bin/start_hot_backup'";
pstcmd:"suoraclec'/oracle/dba/bin/end_hot_backup'";
timeout:"12:00:00";
ConfigureLegatoclient.Makesureinclientproperty"Apps&
Modules"tab,choose"savepnpc"as"BackupCommand".
HowtorestorefilesinWindows?
Restoresavesets
recoversuslgto2dR:\S595232097/1232766305
*R:mappeddestinationdrivewithspace
*595232097/1232766305:ssid/cloneid
RecoveradhocWindowsfile:
recoversuslgto2dc:\tempS2530483243
W:\PATH1\PATH2\filename.xls
Howtorestorefilesystemsbackedupincrementally?

Getthevolumeusedforthefilesystem:mminfoc<client
name>N<filesystem>
Eg,uslgto2#mminfocuscoredb3N/u6
volumeclientdatesizelevelname
XING.UnixD.0001uscoredb309/25/084Bincr/u6
XING.UnixD.0001uscoredb309/26/084Bincr/u6
XING.UnixD.0001uscoredb309/27/089960MBfull/u6
XING.UnixD.0001uscoredb309/29/08699MBincr/u6
XING.UnixD.0001uscoredb309/30/084Bincr/u6
GettheSSIDrelatedtothefilesystem:mminfoav<volume
name>|grep<filesystem>
Eg,uslgto2#mminfoavXING.UnixD.0001|grepu6
XING.UnixD.0001uscoredb309/25/0819:04:454B
2832996617cbincr/u6
XING.UnixD.0001uscoredb309/26/0819:01:034B
4208814506cbincr/u6
XING.UnixD.0001uscoredb309/27/0822:00:089960MB
1692329252cbfull/u6
XING.UnixD.0001uscoredb309/29/0818:17:01699MB
3420541910cbincr/u6
XING.UnixD.0001uscoredb309/30/0818:09:524B
3504513968cbincr/u6
Intherestoreserver,createascriptwhichwillrestorethefull
backup&relatedincrbackups:
Eg,recoversuslgto2d/u6S1692329252/u6/elvis
recoversuslgto2d/u6S3420541910/u6/elvis
recoversuslgto2d/u6S3504513968/u6/elvis
AshellscripttocheckLegatobackuptimedaily.Download
fromhere.
LocaldirectivestoexcludecertaindirectoreisinUnix
<</filesystem>>
action:file.filter
eg,toexclude/olbackup3&/olbackup4frombackup,createa
file.nsrunder/withthefollowing:
<</olbackup3>>
+skip:.

<</olbackup4>>
+skip:.
Note:theplus(+)signmeansthatitappliestothenamed
directoryandallofitssubdirectories(i.e.recursive).
HowtoconfigureportsforLegato?(portsconfigurationin
firewall)
Inclientside:
nsrports,showportsusedbyNSRclient;
rpcinfosuslgto2.melonm.com,showportsusedforconnection
(optional)#nsrportsS79377940>restirctportsusedinthe
clientside(these4portsaresufficient).
Opentheinboundportsinthefirewallforthefollowing4ports,
sobothclientscantalktoLegatoserver/Storagenodeinsidethe
firewall.
Usws1>ports(79377940)>uslgto2/uslgto3.melonm.com
Intheserverside,restricttheportsbasedonthefollowing
fomula:
12(default)+numberofJukeBox+2*numberofdevices
(tape+aftd)+5
eg,12+3(Jukeboxes)+2*12(numberoftape/diskdevices)
+5=72
Sothetotalportwillbe:79378080(adding71moreportstobe
onthesafesideontopof72ports,7937+72+71)
HowdoesmultiplexingworkinNW??(wouldliketoincrease
theamountofdrivesusedononesavegroup)
Thenumberofdrivesusedforbackupisdependentondifferent
parameters,mainlyondrivesessions.Inthepropertiesofthe
drivecheckthenumberoftargetsessions.Bydefaultitis4so
youcanincreaseitto8.Alsoverifythattheclient,storagenode
andnetworkerserverparallelismismorethan8.
Inadditiontotheabovesettingscheckthenumberofclientsin
thegroup.Ifthebackupistargettedtodrivewith8target
sessionsfirstitwillstartbackupof8savesetstosingledrive,if
thenumberofsavesetsismorethan8itwillthenstartthe
backuptonextdrive.

HowtobackupNDMPdatathroughstoragenode?
nsrndmp_saveMTdumpP<storagenode>
M:backuptostoragenode.However,trafficfromNASwill
cometonwserverfirstandsendtostoragenode.
P:usingstoragenodeasproxyhostandtrafficfromNASwill
cometostoragenodeandsaveonstoragenode.
T:typeofbackup
HowtorestoreNML(LotusNotes)clientthroughcommand
line?
nsrnml_remrecovd"/dparb/restore"sryeaxbkm.rye.avon.com
cnamail2baX/dparb/data/mail/utrainee.nsf
HowtorestoreNetAppsfilerwithNDMP?
NetAppsview/vol/vol0:javanetapp.cmds.jsh
RecoverNDMPfilefromNetApps
*Onlyinstoragenode:uslgto3
*recovervvvcusnas1suslgto2.melonm.com
recover>cd/vol/vol3_nas1/ToolsRoot/Tools/temp
recover>add"filename.pdf"
recover>recover
##83minutesforsinglefilefromusnas1
Usingcommandline:

#nsrndmp_recovercfiler_names(server)Sssidvoffm
(filername)::target_dir_pathsource_dir_path
#AbovecommandcanonlybeusedtorestoreSSIDor
directory,notsinglefile.Itwillrestoresavesetsoverbrowsing
policyperiod.
ForExample:
#nsrndmp_recovercfiler2snicodemusS964505857voff
mburn::/vol/vol2/destination/vol/vol0/user/rkapoor/test
The"voff"isanewswitchaddedinNW6.1.3which
accordingtomanpagedoesnotverifythedirectorypathwith
clientfileindex.Thisswitchcanbeusedtorecoverdatawhen
theIndexinformationislostoriscorrupted.
#nsrndmp_recovercusnas2suslgto2.melonm.comS

3433001941voffmusnas2::/vol/vol3_nas2
/vol/vol3_nas2/Users/NSu/Logs
##110minutesforsinglefilefromusnas2:
##mismountpoint.Thiscommandwilltrytorestorefileinto
samedirectory.
Anotherexampleofrecovery:
uslgto2#recovervvvcusnas2suslgto2.melonm.com
Noindexwasfoundfor/nsr/scripts/restore/.Thecurrent
workingdirectoryis/.
recover>cd"/vol/vol3_nas2/Common/SYSTEMS/Unix
Systems/Documentation"
recover>relocate"/vol/vol3_nas2/Common/SYSTEMS/Unix
Systems/LegatoOperations/Restore"
recover>addWiltonHostsMaster040309.xls
/vol/vol3_nas2/Common/SYSTEMS/Unix
Systems/Documentation
1file(s)markedforrecovery
recover>recover
Procedurestorestorefileindexforexpiredsaveset?
LocateSSID:mminfoavotcclient_name
Note:Checkonthe"level"ofthetargetsavesetthattheuser
needstorecover,asifitisanincrementalrequesttoperformthe
instructionsbelowforthemostrecent,alongwithall
incrementalbeforethedesireddate.
Obtaincloneid:mminfoavqssid=XXXXrcloneid
Settheexpirationdate:nsrmme"mm/dd/yy"SXXXX/YYYY
Themm/dd/yyisthedatetheuserwouldlikethesavesettobe
browsablefrom.
Makesavesetnotrecyclable:nsrmmonotrecyclableS
XXXX/YYYY
Input"y"whenitaskstomarkthesavesetasnotrecyclable.
nsrmmoynotrecyclableSXXXX/YYYY
Verifysavesetstatus:mminfoavotcclient_name
Fromtheoutput,theuserwillbeabletoseethesavesetworked
onisnowbecomes"cr").
Locatefileindexforsaveset:mminfoavotN

index:client_name
Locatetheindexthatisbeingbackedupwiththetargetsaveset
andmarkdownitstime.
Starttorecoverindex:nsrckL7t"mm/dd/yy"client_name
Inputthetimeobtainedfromlaststepwithin""
eg,nsrckL7t'03/28/0919:46:53'usnas2
Validateindexrecovered:mminfoavotcclient_name
Fromtheoutput,theuserwillbeabletoseethesaveset
worked??on?nowbecomes"cb".
Repeattheabovestepsforanyfurthersavesetrequires.Ifno
moresavesetoperationsarerequired,doublecheckwithinNMC
tomakesurevolumesrequiredareavailableforrecovery.

Storage

KeyProcesses
Thefollowing3processesstartedfrom/etc/rc2.d/S95networker
nsrexecd:clientservice.
lgtolmd:licensedaemon
nsrd:daemontostartthefollowing3serverprocesses(nsrmmd,
nsrindexd,nsrmmdbd)
nsrmmd:storagenodedaemonandwritedatato/fromtape.
nsrindexd:maintain&cachingindexofsavesets.
nsrmmdbd:databasedaemonresponsibleforvolumedatabase
under/nsr/mm/mmvolume6
nsrexecd:mainservicerunninginclient.Alsorunninginservers
tobackupserversthemselves.
ssflagsmeaning:ssflagscancontainfollowingvalues:
CvrSEiIF
C=continued
v=valid
r=recoverable
S=scannedin
E=eligibleforrecycle
i=incomplete
I=inprogress

F=finished.
Additionally,Nmeans"NDMP"
Tovalidateclonesetstatus,using"clflags"."a"or"E"
meansthatitiscorruptedcloneset.
mminfoavotq"ssid=3973556614"r
"volume,ssid,ssflags,clflags"
ValidatingLegatohardwarestatus
Shutdownnetworkerserver
uslgto2#sjirdtag/dev/scsi/changer/c2t100000E00222AF71d0
inquirecl#seealltapes&changer
sjirjc
sjirjc1.0.0(where1.0.0ischangeraddress.Locateitusing
inquirecl).
sjirdtag1.0.0(listdetailslibraryinformation)
HowtomanuallyconfigureMSL6000Jukeboxusing
jbconfig?Downloadscreenlogsfromhere.
inquiretogetdevicepath&serialnumberofdrives;
sjisntogetelementaddresswithserialnumber;
jbconfigtomatchtheelementwithrightdevicepathusingserial
number.
Iftherearestoragenodeneedstobeconfigured(2nodestosee
samedrives),followthisinstructionforconfiguration.
Thekeytoallsamedrivehas2paths(onetoNetworkerserver
andanothertoStoragenode).
Eachtimehardwarechanged(eg,replaceadrive),thelibrary
needstobereconfiguredinLegatousingjbconfig.
NDMPBackup
RegardingtoincrementalbackupusingNDMP
TheNetWorkersoftwaredoesnotsupportincrementalbackup
settingsforNDMPbackups.Ifyouselecttheincremental
setting,theNetWorkerserverperformsafullbackup.However,
youcanschedulelevelbackupstofunctionlikeincremental
backups.Forexample,completeafullbackuponday1and
level1backupsondays2through7.
IncrementalwillnotworkwithNetAppifyouforgettospecify

"UPDATE=Y".ThisparameteractuallyinstructsOntapNDMP
toupdatethe
dumpdatesfilewhichisusedtodeterminewhatshouldbe
backedup.
ToviewallNDMPdumphistory&levelsonNetApps,see
file:/vol/vol0/etc/dumpdates
BackupCommand:nsrndmp_savec
hostname_of_nas_interface/client_namesbackupserverI
indexserverMTdump;
NDMPRestorethroughLegato
nsrndmp_recovercusnas2suslgto2musorarestore:/u6S
3439474549"/vol/vol2_nas2/WPSysMan/file.pdf"
NDMPSavethroughstoragenodepublicnic
nsrndmp_savecusnas2MTdumpb"XINGNDMP"P
uslgto3vy"11/07/08"/vol/vol0/home#uslgto3vispubnicof
storagenode.Commandisruninstoragenode.
Howtoexcludefiles/dirsfromNDMPbackupofNetApps
filer?
ToexcludefilesordirectoriesfromanNDMPbackupofa
NetAppfiler,usetheEXCLUDE=optionintheNDMPClient
resource'sApplicationinformationfield.EXCLUDE=takesa
commaseparatedlistoffileand/ordirectorynamestoexclude
fromthebackup.ThisisequivalenttotheXoptionofthedump
command.Thefollowingarerulesforspecifyingnamesinthe
EXCLUDE=list:
Ifaspecificfileordirectoryistobeexcludedfromthebackup,
theexactnameofthefileordirectorymustbeused.
Anasterisk(*)canbeusedasthewildcardcharacter.The
asteriskmustbeeitherthefirstorthelastcharacterofthestring.
Eachstringcanhaveuptotwoasterisks(oneinthefrontand
oneattheend).
Ifafileordirectorynamecontainsacomma,thecommamust
beprecededbyabackslashtodenotespecialcharacter.Thisis
becausecommaisusedintheEXCLUDE=stringtoseparate
values.
TheEXCLUDE=listcancontainupto32names.

Herearesomeexamples:
Toexcludethe'tmp'directoryfromasaveset,use
EXCLUDE=tmp
Toexcludeall.PSTfilesfromthesaveset,use
EXCLUDE=*.PST
Toexcludeallfilesordirectoriesthatcontainthecharacters'old'
intheirnames,use:EXCLUDE=*old*
Toexcludealloftheaboveatthesametime,use:
EXCLUDE=tmp,*.PST,*old*
RecoverNetappfiler'sNDMPdata
nwrecover:BeforestartingnwrecoverGUI,pleasechangethe
directoryto
/filermountpoint,thenstartnwrecoverwithcommand
"nwrecovers(nwserver)c(filername)"
orafterstartingnwrecoverguiwithcommand"nwrecovers
(nwserver)c
(filername)",youneedtoexpandthefiler'sfileintheSelect:.
Forexample,/vol/vol*.
Usingcommandline:recoversaveset
nsrndmp_recovercfiler_names(NWserver)Sssidm
(filername)::target_dir
Recoversinglefile:
Recover
TorecoverNDMPsavesessioninFP,usinguslgto3asrecover
serverduetoNIC(pub&priv)issues.
Redirect"BootstrapCompletion"printout
InConfiguration>Notification,specify"cat>
/nsr/bootstrap/nsr_bootstrap_`/usr/bin/date'+20%y%m%d'`"as
actionof"BootstrapCompletion"
Createdirectory/nsr/bootstrapandwewillgetupdated
bootstrapinformationeachday.
Ifpossible,setuprdistsowhole/nsrdirectorywillbeduplicated
toremoteserverasbackup.
Eachday,thebootstrapinformationaftereachexecutedjobwill
besavedintoabovedirectoryinsteadofprintingtophysical
printerbydefault.

Somecommandlineexamplesfromthislink.Localcopyhere.
Howtoexcludeadirectoryfromscheduledbackupusing
localdirectives?
ForWindows
Createafilecallednsr.dirundertheparentdirectory(eg,C:\)
withcontent:
skip:<nameofdir>
Makensr.dirfilehidden/readonlyifnecessary.
Createaseparateclientwithonlythisdirectoryassavesetifit
needstobebackedupseparately.
ForUnix
Create.nsrfileunderparentdirectories:
<</olbackup1>>
+skip:.
<</olbackup2>>
+skip:.
<</olbackup3>>
+skip:.
<</olbackup4>>
+skip:.
Howtorecoveranexpiredsaveset?
Findthessid(s)ofthesaveset:mminfoavq
"client=myclient,savetime<mm/dd/yy"
Mountthecorrepondingtape:nsrjblS<slot>f<tapedevice>
Scanthetapeforthessid:scanneriS<myssid>f
<filenumber><tapedevice>
Filenumbercanbeidentifiedby:mminfoqssidV
Setthestatusofthesaveset:nsrmmS<myssid>o
notrecyclable
(Optional)Specifyanewbrowseorexpirationtime:nsrmmS
<myssid>emm/dd/yywmm/dd/yy
HowtorecoversavesetsondiskfromanotherLegato
server?
Adddiskfolderintodevice;
Run:scannerm<device/folderpath>

Mountdiskdevices
Recover
Howtomakeasavesetnonrecyclable?
Getthecloneidofsaveid:mminfoqclient=uscoredb3r
"ssid,cloneid"t"12hours"
nsrmm<y>onotrecyclableS<saveid>/<cloneid>
Howtolistfileswithinssid?
mminfoavotcusuman0t"yesterday"r
"volume,savetime,nsavetime"
nsrinfonallt<nsavetime>usuman0
Orusingrecover(slow):recovernS<ssid>
OrusingGUI:nwrecover
Howtoremoveexpiredsavesetinthevolume?
DeletesavesetfromMediaIndex:nsrmm(v)dSssid/cloneid
Abovewillnotremovedatafromtape/disk,itonlyremoves
index.
Toremoveinvalidsaveset,clonethevalidonestoother
tape/adv_filedevicesandrelabelthem.
Howtorecycletapesolderthan1month(keepinmindof
savesetdependency)?
mminfoq"savetime>1monthago"r"volume"
Or:mminfoavq"savetime<09/25/08""XING.UnixD.0001"
nsrmmyorecyclablevolume_name(loopthroughthelist)
Howtousensrmmtochangebrowseandretentionpolicies?
Changetheretentiontimetomidnight,January1,2009.Change
thebrowsetimetomidnight,January1,2008.
nsrmmS3315861249e"01/01/0923:59:59"w"01/01/08
23:59:59"
Changethebrowsetimetosixmonthsfromthecurrentdateand
time.
nsrmmS5315861249w"6months"
Changetheretentiontimetotwoyearsfromthecurrentdateand
time.
nsrmmS3315861249e"2years"
Howtoremoveexpiredsavesetfromdiskvolumeand

reclaimspace?Detailsinstructiondownloadfromhere.
mminfom1>volume2>&1
mminfor'name,ssid,ssbrowse,ssretent,ssflags,state'q
volume=XING.UnixD.00011>query2>&1
Locatessid
nsrmmdS<ssid>toremovethemfromIndex
nsrimX>runtwicetoreclaimthespace
Scripttoremove"duplicatevolumes"frommediadatabase
bysearchingdaemon.log.Downloadfromhere.
Tips
Kickoffstartinggroupfromcommandline:savegrplfullG
Unix_Test
Scanthecontentoftape:scannern/dev/rmt/6cbn(loadedtape
intodrivefirst)
Savefromclientside:/usr/sbin/saveb"XINGUnix"lfull/u4
DisableVSSforWindowsclient:VSS:*=off(in"Save
Operations"ofclientdefinition)
Toenablelegatoautomaticlabelblanktapes,choose"Auto
MediaManagement"intheJukebox'sproperty.
ListVSSWritersinWindows2003:vssadminlistwriters
nsrmm(C)>displayconfigureddevices(tape/disk)and
mountedvolumns
RetentionPolicy:Thereare2placestosetupRetentionpolicy:
intheclientlevelandinthepoollevel.
TheactualRetentionpolicywillrespectthelongeronebetween
client&mediapool.Thelongeronewillbetheretentionpolicy
ofsavesets.
ChangeRetentionpolicyofsaveset:nsrmmSsside
xx/xx/xx
Toverify:mminfovpqssid=3528014006
HowtocontrolNSRIndexsize?
ContribultingFactors:Numberofclients;Numberoffiles;
BrowsingPolicy
RetentionpolicyhasnothingtodowithIndexsize,only
browsingpolicydoes.

Workaround:
Cleanupolddecommissionedhostsindex;
Movetheindextootherlocation
HowtocompletelyremoveclientfromLegato(eg,for
reclaiminglicenses)?
Performafullbootstrapbackupforgroupwhichhasclientsto
beremoved(eg,savegrplfullOGUnix_Prd).Recordssidin
casemediaindexneedstoberestored.
DeletetheclientinNMC
Stopnsrservices
Backuptheclient'sindexfolder(/nsr/index/<client_name>)
Clearthecachebyrenaming\nsr\tmp\folderto
\nsr\tmp_old_todaysdate
Startnsrservices
TemporarilysettheAutostartfunctiononallGroupsto
'Disabled'(itisbesttoperformthefollowingwhenNWisidle)
Runthefollowingcommandstoverify,fixandpurgetheindex
andmdbrecords:
nsrckL6>thiswilltakeaveryLONGtime.Pleasemakesure
enoughtimeisscheduledbetweenbackups.
nsrimX
SettheAutostartfunctionongroupsthatwaschangedinstep8
backto"Enabled".
HowtoremoveoldhostnamesfromregisteringinNSR
server?
Searcholdhostnameinnsrindexes:/nsr/res/nsrdb&
/nsr/res/nsrladb
eg,grep*/*/nsr/res/nsrdb&grep*/*/nsr/res/nsrladb
Edittheindexfileandremovetheoldhostname
Retrythebackup
HowtorelocateclientindextodifferentlocationinUnix?
Stepsdownloadfromhere.
Howtoconfigurelibrarytounloadtapeswhenidle?
Device>Library>Property>Timers(mayneedtoenablediag
modeinView)>Idledevicetimeout(setto1,whichis1

minute).
Whentapedriveisidlemorethan1minute,itwillunloadtapes
backtoslot.
Howtoincreasenumberofcleansusingcleaningtape?
Device>Library>Property>DefaultCleanings(Changefrom5
to50)
#Cleaningtapecannowbeused50timesinsteadofdefault5
times.
#Usingcommandline:nsrjbU50S58(#cleaningtapeisin
slot58).

Windows

HowtobackupSystemStateofWindowsclient?
Specifythefollowingsavesets:
ASR:\
SYSTEMDB:\
SYSTEMFILES:\
SYSTEMSTATE:\
In"Apps&Modules",specify"Saveoperations:""VSS:*=off"
HowtobackupVSSstateofWindowsclient?
C:\
VSSASRDISK:\
VSSSYSTEMFILESET:\
VSSOTHER:\
VSSUSERDATA:\
VSSSYSTEMSERVICES:\
VSSSYSTEMBOOT:\
HowtorecoverWindowsclientusing"SystemState"
backup?
InstallthebasicOS(installSP2iforiginalhosthasSP2)
RenametheHosttooriginalhostnameandhardcodeoriginalIP
address;
InstallNSRclientafterserverrenamed(thatwaytheNSRclient
willidentifieditselfwithcorrectname),clickallsystemstate
savesetsandC:drive,thenstart"DirectRecovery".

Whendone,removedhardcodedIPaddressandrebootthe
server.Theservershouldbebackwithdomainenabled.
LegatoWindowsAgentIssues
NotlocateNSRserver:FirsttimewhenLegatoWindowsAgent
starts,itwillsearchforNetworkerserverthroughbroadcast.If
Legatoserverisinadifferentnetworkthanagent,thesearch
willfailandtheagentguiwillclose.
Tofixthisproblem,appendtheserverstringafterthe
executable,eg:"C:\...winworkr.exe"s<legatoserver>
DMZserversNameResolution:Legatoagentrequiresreverse
lookupworkingforbothNetworkerserver&storagenode.For
DMZserverswhichhavedifferentDNSserver,add
IP/HostnameofLegatoserversinto
C:\Windows\System32\drivers\etc\hosts
Ifhostsfiledoesn'twork,CREATEANEWONE.Itispossibly
corruptedbutnotevidenttoyou.Holysmokes,itworksforme.
Turningoffvssforspecificdrive
VSS:h:\=off
HowtobackupExchangeserver?
Backinguptheinformationstores(msexch:IS)andrecoverthem
totherecoverystoragegroup.Usetheexchangetaskwizardto
recoverindividualmailboxesfromthat.
Forthesavesetspecification,putMSEXCH:ISandMSEXCH:
DSwithabackupcommandofnsrxchsv.exe

NMDA

HowtoconfigureLotusNotesbackupusingNMDA?
TokeepconfigurationinMMCclientproperty,configure:
Saveset:NOTES
BackupCommand:nsrdasvTLotus
BackupConfig:copyandmodifythisfile.Payparticular
attentiontothefollowngtoconfigurations.
NSR_CROSS_MOUNT_POINTS:"TRUE";>Importantif
mailboxeslocatedindifferentfilesystem
NSR_FOLLOW_LINKS:"TRUE";>Importantifmailboxes

locatedindifferentfilesystem

Alias:Bothlong&shortnameofvirtual&physicalnode

TokeepconfigurationinLotusNotesclient:

Saveset:NOTES
BackupCommand:nsrdasvz/nsr/apps/config/nmda_lotus.cfg

Alias:Bothlong&shortnameofvirtual&physicalnode
HowtorestoreLotusNotesusingNMDAthroughcommand
line?

Createnmda_lotus_recovery_cmd.cfgfile,whichwillbeused
forrestore.

NSR_BACKUP_PATHSwillspecifyobjectsneedstobe
restored

NSR_RELOCATION_DESTwillspecifypathwheredatawill
berestoredto

NSR_RECOVERY_TIMEwillspecifywhichdatedataneedsto
berestored
Togetallinformationaboutbackupobjects,usingfollowing
commandandsearchoutput
nsrinfos<NWSRV>nnotesXAll<NOTESCLIENT>

Anissuewasdiscoveredthroughdebuggingthatnsrnotesrcwas
tryingtolocateitselfunder"/usr/sbi/nsrnotesrc"insteadof
"/usr/sbin/nsrnotesrc".Itcouldbespecifictoenvironmentor
couldbeaprogrambug.

nsrnotesrc:using`/usr/sbi/nsrnotesrc'forexecpath,

nsrnotesrc:/usr/sbi/nsrnotesrcstarted,pid20705

nsrnotesrc:waitchildreaped,pid20705

nsrnotesrc:waitchilderroronreap,pid20705(10)

Toworkaroundthisissue,Icreatedthedirectory"/usr/sbi"and
copied"nsrnotesrc"toitfrom"/usr/sbin".Restoreswere
successfulafterthisfix.

Thiscouldbeanotherenvironmentalissuesince
"/opt/ibm/lotus/notes/latest/linux/"wasnotinlibrarypath.The
library"libxmlproc.so"isrequiredby"libnotes.so"forrestore.

lnsf/opt/ibm/lotus/notes/latest/linux/libxmlproc.so
/usr/lib/libxmlproc.so

AnotheroptionistospecifyLD_LIBRARY_PATHforuser

whichwillbedoingrestore:export
LD_LIBRARY_PATH=/opt/ibm/lotus/notes/latest/linux
Runlddtovalidate:ldd
/opt/ibm/lotus/notes/latest/linux/libnotes.so
Asuserdoingthebackup(eg,notes),runbelowcommandto
recovermailboxintoNSR_RELOCATION_DEST
/usr/sbin/nsrnotesrcz
/nsr/apps/config/nmda_lotus_recovery_cmd.cfg
HowtorestoreLotusNotesusingNMDAthroughNMDA
clientGUI?
InstallNMDAforWindowsGUIonWindowssystemwhich
runsrecovery
Run"DirectedRecovery">ChooseMailbox>"Recovery
Options">Recovery
Specifyconfigurationfileforrecoveryinthe"Options".
TheNMDAGuiwill,bydefault,lookingforausercalled
"notes".IfLotuswasrunningunderdifferentusernameinthe
emailserver,createadummyuser,withinthesamegroupas
otherNotesusers,intheemailserver.
Makesureuser"notes"haswritepermissiontodirectorywhere
mailboxesarerestoredto(specifyin"RecoveryOptions").
HowtoconfigureExchangeclusterbackupusingNME?
NSRagent&NMEintobothnodes;
CreateentryforeachphysicalnodeinNetworkerserver;
CreateentryforvirtualnodeofExcluster.
**Forvirtualnodeconfiguration:
Remoteaccesslist,specifySYSTEM@node1,
SYSTEM@node2,Administrator@node1,
Administrator@node2
BackupCommandinApps/Modules:nsrxchsvcusevs2
SpecifySavesets.eg:MSEXCH:IS/SG1or
MSEXCH:IS/SG1/PublicFolderStore
HowtoconfigurestandaloneExchangebackupusing
NMM?
UsingExchange2007standaloneenvironmentasanexample

Client:
Backupcommand:nsrsnap_vss_save
Saveset:APPLICATIONS:\MicrosoftExchange2007

ApplicationInformationVariables:
NSR_SNAP_TYPE=vss
NSR_ALT_PATH=C:\mount_replica

Group:
Snapshotbackup=yes(Justcheckthebox)
SnapshotPolicy=ServerlessBackup
SnapshotPool=Anyconfiguredpoolforthisbackup
HowtoconfigureNMDAbackupforDB2(refertoDB2
sectionformoredetails)?
Createconfigurationfileforbackupnmda_db2_backup.cfg

Runfromcommandline:db2backupdbdb2insonlineload
"/usr/lib/libnsrdb2.so"options@/nsr/apps/config/nmda_db2.cfg
HowtorestoredatathroughNMDAbackup(refertoDB2
sectionformoredetails)?
Createconfigurationfileforrestorenmda_db2_restore.cfg

Runfromcommandline:db2restoredbdb2insload
/usr/lib/libnsrdb2.sooptions
@nsr/apps/config/nmda_db2_restore.cfg

DailyJobs

TapeDailyRecording&Archive
Madeoneprocessinplacetoarchivedailytapelistoffsiteand
uploadtoWindowsshareddrive.2Pointsaboutthisprocess:
Wehavedailycloneinplaceatdaytime,soanytapeswithin
past24hourswillstayinlibrariesuntilclonescomplete.
LegatoserverisinUnixandshareddrive/storageforarchiveis
inWindows,sowehavetoresortedtoSamba/Expectscriptin
anothermiddlewaresystemforuploading.
Hereistheactualprocessflow:
Schedulethisjob(dailyTapes.sh)togenerate2reportingfiles
(tapeReport.txt&tapeOffsite.txt).tapeReport.txtwillbesending
tovariousrecipentsbyemailwhiletapeOffsite.txtwillbe

uploadedtosharedrivetobe(eventually)importedintoSQL
servermediadatabase.
Abovescriptwillalsocopy2listfilestoSambamiddleware
server.Usingthisjob(nsrOfftapes.sh)atlatertimetoupload
bothlistsintosharedrive.TheuploadscriptwilluseExpect
script(nsrOfftapes.exp)withSambaclienttoupload.
Onceaboveprocessisinplace,wehaveanautomatedprocess
togenerateoffsitetapesandthelistwillbearchivedincentral
serverforfuturereference.
DailyLegatoRoutines(chkNSR.sh)
checkinginterruptedovernightbackupjobs
BackupdailysavesetIndex(samethingsendingthroughemail)
toalocaldirectory
ReplicateIndexdirectorytoamirrorsite
Regularschedulechangeonjobs
ClonesomearchivelogsofOracledatabases
DailyLegatoMediaDatabaseHealthCheck(nsrDBchk.sh)
Checkmediadatabasestatusandarchiveresult.
"d"optionfordebugging
ThisscriptwillneedtorunwhenNWserverisidle(eg,no
devicemount/unmount).Otherwise,alldevicemount/unmount
willbeautomaticallycancelledandonpending.
HowtocalculateDataDomainusageperhostthrough
Networker(sizeCal.sh)
Using"mminfoavot"togetallsavesetsinDataDomain.Then
producealistofclients.
Abovescriptwillcalculateeachhost'sspaceinDataDomain.
Note:Sincesizeproducedfrommminfodidn'thavefloating
point,abovearithmeticusingBASHisOK.Foradding
arithmeticnumbers,youmustuseprogrammingtoolsuchas
"bc".
Hereisascriptusing"bc"forarithmeticoperationswith
floatingpoints(sizeFal.sh).
Howtosavedailybootstrapinformation?
BootstrapiscriticalwhenthetimecomestorecoverSSIDand

youneedtoknowwhichtapescontainit.Youmaybeabletoget
someinformationfrommminfo,butwhathappensifthatclient
hasbeenremovedfromIndex(forreclaiminglicense,for
example).
InLegatoGUI>Configuration>Notification>Bootstrap
>Action"cat>/nsr/bootstrap/nsr_bootstrap_`/usr/bin/date
'+20%y%m%d'`"
NowyoushouldhaveabootstraptextfilesavedtoLegato
directoryeachdayeveryday.
HowtocustomizeSavegroupcompletionemail?
Bydefault,eachdayyouwillreceiveemailswhensavegroup
completes.Ifyouwanttocustomizeit(eg,addSavegroupname
ontheemailsubject),intheNotification>Savegroup
completion,addnameofscripttoActionfield:
/nsr/scripts/savegroupEmail.sh
Copyright @ 2011 Melonm Documentation Project, All rights
reserved.
Terms of Use | Privacy Statement | e-mail webmaster

You might also like