Appendix C. Reclaiming Space for Dumps

If you do not have enough space designated in dump tapes for your backup requirements, you can do the following to reclaim space from an empty migration tape:

  1. Verify that the migration tape it is empty by examining the output from the dmvoladm(8) command on the DMF server, specifying the volume serial number (VSN, which is the same as the barcode) for the tape:

    dmfserver# dmvoladm -c "list vsn=VSN"

    The DATA LEFT field should show that there is no data on the tape (0.000000), as in the following example for the migration tape with VSN C00SAW and DMF server burn:

    burn# dmvoladm -c "list vsn=C00SAW"
                                                DATA    EOT   EOT             WR/FR
    VSN      VOLGRP LB      DATA LEFT        WRITTEN  CHUNK  ZONE   HFLAGS      AGE
    -------------------------------------------------------------------------------
    C00SAW      vg0 al       0.000000       0.000000      1     1  ---------    12m
    Database was not modified.

  2. Lock the tape by setting the operator hold flag to on, which means that it cannot be used for migrating data:

    dmfserver# dmvoladm -c "update VSN hoa on"

    For example:

    burn# dmvoladm -c "update C00SAW hoa on"
    Updated 1 record.

  3. Verify that the tape is not already mounted by verifying that it does not show up in OpenVault status output by using the ov_stat(8) command:

    dmfserver# ov_stat -ld | grep VSN
    

    For example:

    burn# ov_stat -ld | grep C00SAW
    burn#

    If the VSN does appear in the grep output, wait for the tape to unmount before continuing on to the next step. It can take up to 10 minutes for the unmount to complete.

  4. Reconfirm that the migration tape it is still empty and that it is now locked:

    dmfserver# dmvoladm -c "list vsn=VSN"

    The DATA LEFT field should still show that there is no data on the tape (0.000000), and the o hold flag should appear in the HFLAGS field, as in the following example:

    burn# dmvoladm -c "list vsn=C00SAW"
                                                DATA    EOT   EOT             WR/FR
    VSN      VOLGRP LB      DATA LEFT        WRITTEN  CHUNK  ZONE   HFLAGS      AGE
    -------------------------------------------------------------------------------
    C00SAW      vg0 al       0.000000       0.000000      1     1  --o------    13m
    Database was not modified.

    If the output now shows that there is data left on this tape, see the information about managing tapes and setting the sparse flag in the DMF 6 Administrator Guide for SGI InfiniteStorage.

  5. Delete the tape from the DMF volume database:

    dmfserver# dmvoladm -c "delete VSN"

    For example:

    burn# dmvoladm -c "delete C00SAW"
    Deleted 1 record.


    Caution: If you do not see the above output, do not continue with this tape. Reset the hold flags to the values the file had in step 1 (for more information, see DMF 6 Administrator Guide for SGI InfiniteStorage). Try a different tape or contact SGI Support.


  6. Remove the volume from the OpenVault system by using the ov_vol(8) command:

    dmfserver# ov_vol -D -a dmf -v VSN

    For example:

    burn# ov_vol -D -a dmf -v C00SAW
    Volume deleted:
            volume name = 'C00SAW', application name = 'dmf'
            cartridgeID = 'ooA69k0uDdAABqXI', side = 'SideA', partition = 'PART 1'

    Take note of the cartridgeID field (in this case, ooA69k0uDdAABqXI), which will be required for the cartID variable in the next step.

  7. Remove the cartridge ID entry from the OpenVault catalog by using the ov_purge(8) command:

    dmserver# ov_purge -f -C cartID

    For example, for cartridge ID ooA69k0uDdAABqXI:

    burn# ov_purge -f -C ooA69k0uDdAABqXI
    Deleted partition PART 1
    Deleted cartridge ooA69k0uDdAABqXI
    

  8. Verify that the tape's VSN is no longer in the OpenVault catalog by examining the output of the ov_dumptable(8) command, which should no longer display the cartridge ID for the VSN:

    dmfserver# ov_dumptable  -n -d'|' -c LibraryName,CartridgePCL,CartridgeID SLOT | grep VSN
    

    For example, the cartridge ID ooA69k0uDdAABqXI does not appear in the following output:

    burn# ov_dumptable  -n -d'|' -c LibraryName,CartridgePCL,CartridgeID SLOT | grep C00SAW
    c00|C00SAW|
    

  9. Use the VTL Console to delete the migration tape. Open the left-hand tree and place the cursor over the library name. For example, for SGI-C00:

    VTL0 -> Virtual Tape Library System -> Virtual Tape Libraries ->  SGI-C00

    Right-click and select Delete Tape(s).

  10. Reuse the freed space for dump tapes. See “Create the Dump Tapes” in Chapter 4.