[Veritas-bu] switch primary backup with duplicate tape
2003-11-14 06:20:03
Subject: |
[Veritas-bu] switch primary backup with duplicate tape |
From: |
dbase77 AT yahoo DOT com (Feroz F. Basir) |
Date: |
Fri, 14 Nov 2003 11:20:03 +0000 (GMT) |
Hi,
Im trying to make sure I can use our offsite tape in
case primary copy corrupted. When I test offsite tape,
Im going to change back to onsite tape as primary.
Anyway bpimagelist command return no entity so I used
this option instead "./bpimagelist -L -hoursago 64".
result as follow:
Client: sunprod
Backup ID: sunprod_1068584871
Policy: sunprod_bkp1
Policy Type: Standard (0)
Proxy Client: (none specified)
Creator: root
Name1: (none specified)
Sched Label: Full
Schedule Type: FULL (0)
Retention Level: 3 weeks (2)
Backup Time: Tue Nov 11 2003 11:17:11
(1068584871)
Elapsed Time: 5752 second(s)
Expiration Time: Tue Dec 02 2003 21:07:51
(1070399271)
Compressed: no
Encrypted: no
Kilobytes: 163365088
Number of Files: 124967
Number of Copies: 2
Number of Fragments: 2
Histogram: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
DB Compressed: no
Files File Name: sunprod_bkp1_1068584871_FULL.f
SW Version: (none specified)
Options: 0x0
MPX: 0
TIR Info: 0
TIR Expiration: Thu Jan 01 1970 01:00:00 (0)
Keyword: (none specified)
Ext Security Info: no
File Restore Raw: no
Image Dump Level: 0
File System Only: no
Object Descriptor: (none specified)
Previous BI Time: Thu Jan 01 1970 01:00:00 (0)
BI Full Time: Thu Jan 01 1970 01:00:00 (0)
Request Pid: 0
Backup Status: 0
Stream Number: 0
Backup Copy: Standard (0)
Primary Copy: 2
Image Type: 0 (Regular)
Copy number: 1
Fragment: 1
Kilobytes: 163365088
Remainder: 0
Media Type: Media Manager (2)
Density: hcart (6)
File Num: 1
ID: Z322L1
Host: sunprod
Block Size: 262144
Offset: 2
Media Date: Tue Nov 11 2003 21:07:51
(1068584871)
Dev Written On: 0
Flags: 0x0
Media Descriptor: ?
Expiration Time: Tue Dec 02 2003 21:07:51
(1070399271)
MPX: 0
retention_lvl: 3 weeks (2)
i_unused2: 0
i_unused1: 0
Copy number: 2
Fragment: 1
Kilobytes: 163365088
Remainder: 0
Media Type: Media Manager (2)
Density: hcart (6)
File Num: 1
ID: Z321L1
Host: sunprod
Block Size: 262144
Offset: 2
Media Date: Tue Nov 11 2003 22:44:56
(1068590696)
Dev Written On: 1
Flags: 0x0
Media Descriptor: ?
Expiration Time: Tue Dec 02 2003 21:07:51
(1070399271)
MPX: 0
retention_lvl: 3 weeks (2)
i_unused2: 0
i_unused1: 0
Strange as primary copy = 2. Am I missing something
here or my duplicate command is wrong?
regards,
Feroz
--- "Donaldson, Mark"
<Mark.Donaldson AT experianems DOT com> wrote: > Had to do a
little homework on this.
>
> Try: "bpimagelist -backupid sunprod_1068584871 -L"
>
> And look for a line that says "Primary Copy".
>
> An aside, though, would be why you want your offsite
> copy to be primary? If
> you have to do a restore, the offsite tape has to be
> returned to fulfill the
> request. If you leave your onsite copy as primary,
> then it'll be easily
> available.
>
> -M
>
>
>
> -----Original Message-----
> From: Feroz F. Basir [mailto:dbase77 AT yahoo DOT com]
> Sent: Thursday, November 13, 2003 10:46 AM
> To: Donaldson, Mark;
> veritas-bu AT mailman.eng.auburn DOT edu
> Subject: RE: [Veritas-bu] switch primary backup with
> duplicate tape
>
>
> Mark,
>
> This is ouput of "bpimmedia":
>
> Backup-ID Policy Type RL Files C
> E
> T PC Expires
> Copy Frag KB Type Density FNum Off
> Host
> DWO MPX Expires
> RL MediaID
>
----------------------------------------------------------------------------
> ----
> ----------------
> sunprod_1068584871 sunprod_bk FULL 2 124967 N
> N
> R 2 21:07 12/02/2003
> 1 1 163365088 RMed hcart 1 2
> sunprod 0 N 21:07 12/02
> /2003 2 Z322L1
> 2 1 163365088 RMed hcart 1 2
> sunprod 1 N 21:07 12/02
> /2003 2 Z321L1
>
> Tape Z322L1 is primary and Z321L1 is offsite. I want
> to change tape Z321L1 to be primary so I used this
> command:
> "bpduplicate -npc 2 -backupid sunprod_10685848".
>
> Nothing happen when I run "bpimmedia" again and got
> same result. How do I check if I successfully change
> the offsite tape as primary? Apart from trying to
> run
> restore. Can I check it using command line? Perhap
> my
> command sytax is wrong.
>
> Thank you again.
>
> regards,
> Feroz
>
>
> --- "Donaldson, Mark"
> <Mark.Donaldson AT experianems DOT com> wrote: > You don't
> have to expire the primary tape to switch.
> >
> > The primary copy is, by definition, the copy that
> is
> > when a restore job is
> > requested. By default it is Copy number 1. If
> you
> > create a duplicate tape,
> > that new copy only becomes a primary restore copy
> > under two conditions:
> >
> > 1. The original primary copy (copy number 1) is
> > expired
> >
> > ..or..
> >
> > 2. You manually declare the duplicate to be the
> > primary copy. In v3.4, this
> > was done with the bpduplicate command, in v4.5
> it's
> > done with the
> > bpchangeprimary or the bpduplicate commands.
> >
> > v3.4
> >
> >
> /usr/openv/netbackup/bin/admincmd/bpduplicate
> > -npc new_primary_copy
> > -backupid backup_id [-client name]
> > v4.5
> >
> /usr/openv/netbackup/bin/admincmd/bpduplicate
> > -npc new_primary_copy
> > -backupid backup_id [-local] [-client
> > name]
> > ..or..
> >
> >
> > /usr/openv/netbackup/bin/admincmd/bpchangeprimary
> > -copy number | -pool volume_pool |
> -group
> > volume_group
> > [-id backup_id]
> > [-M master_server]
> >
> >
> > /usr/openv/netbackup/bin/admincmd/bpchangeprimary
> > -copy number | -pool volume_pool |
> -group
> > volume_group
> > [-sl schedule_name] [-pn policy_name]
> > [-st schedule_type] [-pt policy_type]
> > [-cl client_name]
> > [-kw keyword]
> > [-sd mm/dd/yyyy [HH:MM:SS]] [-ed
> > mm/dd/yyyy [HH:MM:SS]]
> > [-M master_server]
> >
> > HTH - Mark
> >
> > -----Original Message-----
> > From: Feroz F. Basir [mailto:dbase77 AT yahoo DOT com]
> > Sent: Thursday, November 13, 2003 8:21 AM
> > To: veritas-bu AT mailman.eng.auburn DOT edu
> > Subject: [Veritas-bu] switch primary backup with
> > duplicate tape
> >
> >
> > Hi,
> >
> > Im a bit confuse using "bpduplicate" to switch
> > primary
> > backup with duplicate tape. Anybody can give me
> some
> > example on how to do this, please? I know that I
> > have
> > to expire the primary tape first before switching
> > over.
> >
> > Thank you in advance.
> >
> > regards,
> > feroz
> >
> >
>
________________________________________________________________________
> > Want to chat instantly with your online friends?
> > Get the FREE Yahoo!
> > Messenger http://mail.messenger.yahoo.co.uk
> > _______________________________________________
> > Veritas-bu maillist -
> > Veritas-bu AT mailman.eng.auburn DOT edu
> >
>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>
>
________________________________________________________________________
> Want to chat instantly with your online friends?
> Get the FREE Yahoo!
> Messenger http://mail.messenger.yahoo.co.uk
> _______________________________________________
> Veritas-bu maillist -
> Veritas-bu AT mailman.eng.auburn DOT edu
>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
|
|
|