Versions Compared

Key

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


Excerpt

Verifies 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 netarkiv.netarkdv

    Code Block
    $ ssh netarkiv@sbnetarkdv@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
    $ cd ${TESTX} 
    $ /conf/killall.sh cd 
    $ rm -rf rfv /netarkiv/0001/netarkdv/${TESTX}/filedir/* 
    cd /home/netarkiv/TEST11A/conf 
    $ rm -rfv /netarkiv/0002/netarkdv/${TESTX}/filedir/* 
    ${TESTX}/conf/startall.sh

Steps

...


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 replica with the deleted files should replicaA show a missing file number corresponding to the missing files.

...

  1. FileStatus for the the other replicas should show no missing files.
  2. Select Show missing files for ReplicaA. The deleted files should be listed.
  3. Set 'x' in the Change infobox for all files. All Get Info boxes should be selected.
  4. Click Execute. Verify all files now have detailed info.
  5. Set 'x' in Change all which can be added. All Add to archive boxes should be selected.
  6. Click on the Change infobox for all files and press Execute.
  7. Verify that the restored files are no longer listed as missing.
  8. Go to the FileStatus page. Click all the Update status links. Use open link in new tab to avoid leaving the page
  9. The status should now be that the files are present in all replicas and have OK checksums.