Veritas-bu

[Veritas-bu] switch primary backup with duplicate tape

2003-11-14 13:33:23
Subject: [Veritas-bu] switch primary backup with duplicate tape
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Fri, 14 Nov 2003 11:33:23 -0700
In general, the Unix philosophy is "No news is good news."  Most successful
actions are not confirmed.
-M


-----Original Message-----
From: Feroz F. Basir [mailto:dbase77 AT yahoo DOT com]
Sent: Friday, November 14, 2003 10:58 AM
To: Donaldson, Mark; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] switch primary backup with duplicate tape


Hi again,

I type in the wrong backupid. Sorry for the typo. You
are right, when I ran "bpduplicate -npc 2 -backupid
sunprod_1068584871" it did change the primary backup
tape from 1 to 2. I used bpimagelist command to check
for primary copy number.

Thank you for your help again. I think bpduplicate
command should echo back if successfully change the
primary copy. Hopefully they implement that in future.

regards,
Feroz

 --- "Donaldson, Mark"
<Mark.Donaldson AT experianems DOT com> wrote: > Well, you
said earlier that you ran this:
> 
>   "bpduplicate -npc 2 -backupid sunprod_10685848"
> 
> and the listing below is for this
> "sunprod_1068584871" backupid.  No match.
> With that warning, the listing below says the the
> primary copy for restore
> is copy number 2.  So, either the copy number 1 has
> been expired
> (automatically promoting copy 2 to the primary) or
> you've used "bpduplicate
> -npc".  In fact, looking again, it has to be the
> second option since the
> listing below says there's two copies of this image.
> 
> -M
> 
> -----Original Message-----
> From: Feroz F. Basir [mailto:dbase77 AT yahoo DOT com]
> Sent: Friday, November 14, 2003 4:20 AM
> To: Donaldson, Mark;
> veritas-bu AT mailman.eng.auburn DOT edu
> Subject: RE: [Veritas-bu] switch primary backup with
> duplicate tape
> 
> 
> 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
> 
=== message truncated === 

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk