Forum Discussion

Vamika's avatar
Vamika
Level 3
9 years ago

SLP Duplication issue

Hi, We recenty have a space crunch issue on our disk pool. So as a temporary resolution we want to expire the images which are on disk and has already been duplicated to tape by SLP. We take backu...
  • tunix2k's avatar
    9 years ago

    If you change a SLP you will get an additional version or revision of SLP (not seen in GUI). New settings will have affect on new backup images. The images which are finished or in progress or waiting in SLP will not changed. There are using the old revision.

     

    As a (short) temporary solution I suggest:

    - pick up the oldest images on disk

    - find the 2nd copy on tape and set it as pimary copy

    - expire the (now not primary) first copy on disk

     

    This will you give free space. The newest images with higher chance of need for restore are still on disk.

    Are the diskpool of type msdp ? If so it will take a while between expiration and freeing space. The effect of freeing space will be (very) slow depending on your dedup-rate.

     

    ciao

    Martin

  • sdo's avatar
    9 years ago

    Maybe write a script to:

    1) Use bpimagelist -idonly to list all images to a.txt

    2) Read a.txt to pick out date and imageid, and write b.txt to contain yyyy-mm-dd imageid

    3) sort b.txt into ascending order

    4) manually review the list, and pick out the lines that you want to expire, and save these to c.txt

    5) write another script to read c.txt, and for each backupid do a bpimagelist -backupid to d.txt, and read d.txt and check to see how many copies it has, and where they are and if another copy exists on tape, then make a note of that copy number, make a number of the copy number for the copy on disk, and then promote the copy number which is on tape to primary copy, and expire the copy number which is on disk.

    .

    I would suggest a dry run on paper first, for one image, to understand the process and the nature of the fields inthe files, before starting to code this in a script.