Re: [Veritas-bu] Invalid Images in DSU - How to clear?
2007-09-19 08:13:31
Hi,
NBU cleans up DSU automatically BUT make sure that e.g. during staging
to tape NO FULL Catalog BU is running, therefore adapt the staging
schedule in the DSU specs.
THAN write a script that scans your DSU and check for an entry in the
catalog, use this command :
D:\VERITAS\NetBackup\bin\Admincmd\bpimagelist -backupid xxxxx
xxxx = n_str
For Each objFile in colFiles 'Read all fileNAMES on the DSU
x = objFile.Name
y = Replace (x, StrName, "")
n_str = UCase(left(y, InStr(y, Strfind)-1))
If First_occ <> n_str Then
First_occ = n_str
shell_command = Command_str &n_str &" > " &workdir
&"result.txt"
W_TimeOut = 60 '60 seconds must be enough
CMD_ret = ExecCommandLine (shell_command, W_TimeOut)
fileinmem=ReadAllTextFile (workdir &"result.txt" )
If Err.Number = 62 Then
WScript.Echo "This is NOK IMAGE TO
DELETE " &n_str &" ON " &strComputer &" Location : "&StrDrive&StrPath
Orphan_OutputFile.WriteLine "This is NOK
IMAGE TO DELETE " &n_str &" ON " &strComputer &" Location :
"&StrDrive&StrPath
Orphan_sw = 1
Err.Number = 0
End If
End If
Next
Bernard
Tel. (32 2 22) 85459 // 0477 390 211
Bernard.Verheuen AT fortis DOT com
-----Original Message-----
From: Gregory Demilde [mailto:gdemilde AT gmail DOT com]
Sent: Wednesday, September 19, 2007 11:05 AM
To: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Invalid Images in DSU - How to clear?
I think that if they are not in the catalog and they are coming from
failed backup images you can simply delete them
Greg
On 9/19/07, dy018 <netbackup-forum AT backupcentral DOT com> wrote:
>
> Hi,
>
> Currently one of my media servers is using its large localdisk as a
DSU in my netbackup domain.
>
> What i realised was that some of the failed backup jobs or some backup
job that i cancelled, the images already created in the disk but in
actual fact, these images is not registered in the NBU catalog hence
cannot be use but still eats up my disk space. Netbackup shld delete
away these images if the backup failed.
>
> How am i going to determine exactly how much disk space left in my
DSU? Or does NBU have another command to clean up all these useless
images?
>
> Anyone knows?
>
> +---------------------------------------------------------------------
> +-
> |This was sent by dy_lan018 AT yahoo DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +---------------------------------------------------------------------
> +-
>
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
--
Gregory DEMILDE
Email : gdemilde AT gmail DOT com
GSM : +352 691 915620
= = = = = = = = = = = = = = = = = = = = = = = = =
Fortis disclaimer :
http://www.fortis.be/legal/disclaimer.htm
Privacy policy related to banking activities of Fortis:
http://www.fortis.be/legal/privacy_policy.htm
= = = = = = = = = = = = = = = = = = = = = = = = =
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|