Page tree
Skip to end of metadata
Go to start of metadata
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

Delete files on replicaA

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

    $ ssh netarkdv@sb-test-bar-001.statsbiblioteket.dk
  2. Set the TESTX variable:

    $ export TESTX=XXXX
  3. Delete all files in the replica:

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

Verify Bitpreservation behaviour 

  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 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.
  • No labels