This test verifies that files lost in a replica can be restored correctly.
Prerequisites
A number of Jobs has been run creating content in the archive.
Delete files on replicaA
Login in sb-test-bar-001.statsbiblioteket.dk as netarkdv
$ ssh netarkdv@sb-test-bar-001.statsbiblioteket.dk
Set the TESTX variable:
$ export TESTX=XXXX
Delete all files in the replica:
$ ${TESTX}/conf/killall.sh $ rm -rf /netarkiv/0001/netarkdv/${TESTX}/filedir/* $ rm -rf /netarkiv/0002/netarkdv/${TESTX}/filedir/* $ ${TESTX}/conf/startall.sh
Verify Bitpreservation behaviour
- Go to
http://kb-test-adm-001.kb.dk:807?/HarvestDefinition/
- Select
Bitpreservation
- Click
Update filestatus
for all replicas. - FileStatus for the replicaA show a missing file number corresponding to the missing files.
- FileStatus for the the other replicas should show no missing files.
- Select
Show missing files
for ReplicaA. The deleted files should be listed. - Set 'x' in the
Change infobox for all files
. AllGet Info
boxes should be selected. - Click
Execute
. Verify all files now have detailed info. - Set 'x' in
Change all which can be added
. AllAdd to archive
boxes should be selected. - Click on the
Change
infobox for all files and pressExecute
. - Verify that the restored files are no longer listed as missing.
- Go to the FIleStatus page. Click all the
Update status
links. - The status should now be that the files are present in all replicas and have OK checksums.