cancel
Showing results for 
Search instead for 
Did you mean: 

bpexpdate question, did it take?

dennis_sexton
Level 5
I had a tape I wanted to change the retention level. I have many but
this is my first attempt. Here is the info about the image from
bpmedialist

media id = 001314, allocated 08/20/2005 00:10, retention level = 9

File number 1
Backup id = hostname_1124521828
Creation date = 08/20/2005 00:10
Expiration date = INFINITY
Retention level = 9
Copy number = 1
Fragment number = 2
Block size (in bytes) = 65536

I ran this command without errors.

##> bpexpdate -recalculate -backupid hostname_1124521828 -ret 8
Are you SURE you want to recalculate expiration dates on all images
that meet the following criteria:
backupid thegeek.stanford.edu_1124521828
retention will be changed to 8(1 year)

Continue?(y/n)y

##>

I re-run the bpmedialist command

##> bpmedialist -mcontents -m 001314 -U
media id = 001314, allocated 08/20/2005 00:10, retention level = 9

File number 1
Backup id = hostname_1124521828
Creation date = 08/20/2005 00:10
Expiration date = INFINITY
Retention level = 9
Copy number = 1
Fragment number = 2
Block size (in bytes) = 65536


It would appear that the bpexpdate didn't work, even though there
was no error.

Did I issue correct command? Why didn't this work?

thanks
5 REPLIES 5

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
"bpmedialist -mcontents" shows backup information from image header on media.
And bpexpdate does not re-write image header on media. bpexpdate makes changes on catalog only.
So although after changing retention revels by bpexpdate, we can not detect any changes with bpmedialist. Use bpimagelist instead.

In addition, we can not change retention revel of media with bpexpdate. "bpexpdate -recalculate" can change ret revel of images only.

MayurS
Level 6
Yasuhisa,

If i am not wrong "expiration" of media will depend on image expiration.
If image for a media expires, the media will also be subsequently expire and be overwritten if no other unexpired images are there on the media.

Please correct me if i am wrong.

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
Hellow, Mayur.

> If i am not wrong "expiration" of media will depend on image expiration.

This is OK, in general. But rl(retention level) field of bpmedialist does not change after reculculation.

# bpimmedia -mediaid DPG001 -U

Backup-ID Policy Type RL Files C E T PC Expires
Copy Frag KB Type Density FNum Off Host DWO MPX Expires RL MediaID
------------------------------------------------------------------------------------------------

nbuhost_1124975120 ito FULL 1 25 N N R 1 22:05 09/08/2005
1 1 11680 RMed dlt 2 31241 nbuhost 1 N 22:05 09/08/2005 1 DPG001

nbuhost_1124956842 ito2 FULL 2 59950 N N R 1 17:00 09/15/2005
1 1 1999136 RMed dlt 1 2 nbuhost 0 N 17:00 09/15/2005 2 DPG001

*** ret level of nbuhost_1124956842 have been changed from 1 to 2.


# bpmedialist -mlist -m DPG001
Server Host = nbuhost

id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
DPG001 1 2 08/25/2005 17:00 08/31/2005 10:16 dlt 2010816 0
2 09/15/2005 17:00 09/05/2005 13:26


Then I tried to change rl of another image, but rl of bpmedialist is still 1.

# bpexpdate -recalculate -backupid nbuhost_1124975120 -ret 2
Are you SURE you want to recalculate expiration dates on all images
that meet the following criteria:
backupid nbuhost_1124975120
retention will be changed to 2(3 weeks)

Continue?(y/n)y
# bpimmedia -mediaid DPG001 -U

Backup-ID Policy Type RL Files C E T PC Expires
Copy Frag KB Type Density FNum Off Host DWO MPX Expires RL MediaID
------------------------------------------------------------------------------------------------

nbuhost_1124975120 ito FULL 2 25 N N R 1 22:05 09/15/2005
1 1 11680 RMed dlt 2 31241 nbuhost 1 N 22:05 09/15/2005 2 DPG001

nbuhost_1124956842 ito2 FULL 2 59950 N N R 1 17:00 09/15/2005
1 1 1999136 RMed dlt 1 2 nbuhost 0 N 17:00 09/15/2005 2 DPG001
# bpmedialist -mlist -m DPG001
Server Host = nbuhost

id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
DPG001 1 2 08/25/2005 17:00 08/31/2005 10:16 dlt 2010816 0
2 09/15/2005 22:05 09/05/2005 13:26



>If image for a media expires, the media will also be subsequently expire and be overwritten if no other unexpired images are there on the media.

Even after expiration of all images on media, media has 1 image. See below.
I think setting shorter RL by reculculation need great care.

# bpexpdate -backupid nbuhost_1124975120 -d 09/05/2005 14:45:00
Are you SURE you want to change nbuhost_1124975120
to expire on Mon Sep 05 2005 14:45:00 y/n (n)? y
# bpexpdate -backupid nbuhost_1124956842 -d 09/05/2005 14:45:00
Are you SURE you want to change nbuhost_1124956842
to expire on Mon Sep 05 2005 14:45:00 y/n (n)? y
# bpimmedia -mediaid DPG001 -U

Backup-ID Policy Type RL Files C E T PC Expires
Copy Frag KB Type Density FNum Off Host DWO MPX Expires RL MediaID
------------------------------------------------------------------------------------------------

nbuhost_1124975120 ito FULL 2 25 N N R 1 14:45 09/05/2005
1 1 11680 RMed dlt 2 31241 nbuhost 1 N 14:45 09/05/2005 2 DPG001

nbuhost_1124956842 ito2 FULL 2 59950 N N R 1 14:45 09/05/2005
1 1 1999136 RMed dlt 1 2 nbuhost 0 N 14:45 09/05/2005 2 DPG001
bash-2.05# bpmedialist -mlist -m DPG001
Server Host = nbuhost

id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
DPG001 1 2 08/25/2005 17:00 08/31/2005 10:16 dlt 2010816 0
2 09/15/2005 22:05 09/05/2005 13:26


(after any backups are completed)
bash-2.05# bpmedialist -mlist -m DPG001
Server Host = nbuhost

bash-2.05# bpimmedia -mediaid DPG001 -U
no entity was found
bash-2.05# bpmedialist -mlist -m DPG001
Server Host = nbuhost

id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
DPG001 1 1 08/25/2005 17:00 08/31/2005 10:16 dlt 1999136 0
0 09/15/2005 22:05 09/05/2005 13:26

bash-2.05# bpmedialist -m DPG001
Server Host = nbuhost

id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
--------------------------------------------------------------------------------
DPG001 1 1 08/25/2005 17:00 08/31/2005 10:16 dlt 1999136 0
0 09/15/2005 22:05 09/05/2005 13:26

bash-2.05# bpmedialist -m DPG001 -l
DPG001 *NULL* 1 13 1124956842 1125451014 1126789520 1125894365 1999136 1 0 1 2 0 0 1024 0 0 0 0 0 0 0 0 0

MayurS
Level 6
I completely agree with
rl(retention level) field of bpmedialist does not change after reculculation

But was confused withe the RL of the media..
thanks for the clarification.

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
> But was confused withe the RL of the media..
> thanks for the clarification.

I also confused. To avoid remaining media only, I recommend to run "bpexpdate -m -d " in addition.
How happy we are if we can run "bpexpdate -recalculate -m "!