Title: Netvault loses tape library config after restarting the service
NV Version: All
OS Version: All
Application version: N/A
Description: This FAQ describes the situation and remedy for tape libraries that disappear from Netvault's view after restarting the service.
A tape library that works perfectly disappears every time the Netvault service is restarted. User can add the library again and it all works fine until the next time the service is restarted. At this point the library has disappeared again and has to be added again.
This scenario is often caused by corrupted DeviceTree files. In order to fix this you must navigate to ~/db/MediaDatabase. Below this directory are several other directories. We are interested in Indexes and Records. In both these directories is a file called DeviceTree. These files hold details of the physical libraries connected to a Netvault server.
Follow the procedure below to remove the DeviceTree files. Netvault will recreate them automatically:
1. Stop the Netvault service.
2. Move ~/db/MediaDatabase/Indexes/DeviceTree and ~/db/MediaDatabase/Records/DeviceTree from their current locations to locations outside of Netvault directory structure ensuring the relocated files are named appropriately so you know which is which (giving the option of restoring them if needed).
3. Start Netvault.
4. Add the tape library/libraries.
5. Stop and restart Netvault.
6. Ensure the library/libraries are still present in the Device Management screen.