Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

This test verifies that files lost in a replica can be restored correctly.

Note that ReplicaA might be named differently in your installation (e.g. SBN)

Prerequisites

A number of Jobs has been run creating content in the archive, or a number of files have been uploaded to the archive

...

  1. Login in sb-test-bar-001.statsbiblioteket.dk as netarkdv

    Code Block
    $ ssh netarkdv@sb-test-bar-001.statsbiblioteket.dk


  2. Set the TESTX variable:

    Code Block
    $ export TESTX=XXXX


  3. Delete all files in the replica:

    Code Block
    ${TESTX}/conf/killall.sh
    rm -rfrfv /netarkiv/0001/netarkdv/${TESTX}/filedir/* 
    rm -rfrfv /netarkiv/0002/netarkdv/${TESTX}/filedir/* 
    ${TESTX}/conf/startall.sh


...

  1. Go to  http://kb-test-adm-001.kb.dk:807?/HarvestDefinition/
  2. Select Bitpreservation
  3. Click Update filestatus for all replicas. (use open link in new tab to avoid leaving the page)
  4. FileStatus for the replicaA show a missing file number corresponding to the missing files.
  5. FileStatus for the the other replicas should show no missing files.
  6. Select Show missing files for ReplicaA. The deleted files should be listed.
  7. Set 'x' in the Change infobox for all files. All Get Info boxes should be selected.
  8. Click Execute. Verify all files now have detailed info.
  9. Set 'x' in Change all which can be added. All Add to archive boxes should be selected.
  10. Click on the Change infobox for all files and press Execute.
  11. Verify that the restored files are no longer listed as missing.
  12. Go to the FIleStatus FileStatus page. Click all the Update status links. Use open link in new tab to avoid leaving the page
  13. The status should now be that the files are present in all replicas and have OK checksums.