03-13-2007 12:09 PM
I am currently running LMS 2.5.1 with plans to migrate to 2.6 soon. I have been having problems related to the fact the deleting a device in the database doesn't remove the corresponding configuration file in the shadow directory. I'm hoping that happens automatically in 2.6. Does that happen? If not, is there some way I can make it happen?
03-13-2007 12:35 PM
Yes and no. Shadow entries are not immediately purged when a device is deleted. However, every time ConfigMgmtServer is restarted, stale entries will be cleaned up. This should be happening even in LMS 2.5.1.
03-13-2007 12:46 PM
Does that mean that the shadow directory files for any device that has been removed from the database will be removed as part of the clean up?
03-13-2007 12:48 PM
Yes. If you pdterm then pdexec ConfigMgmtServer, any device that is no longer managed by RME will have its shadow directory entries deleted from the file system.
03-13-2007 01:01 PM
Thanks that is good news. I have one more question though. That sounds like commands run in a command window. Correct? Can those be scheduled to happen periodically so you regularly get a clean shadow directory?
03-13-2007 01:04 PM
The commands can be scheduled, but this is not something you really want to run that often. Restarting the ConfigMgmtServer will interrupt any config polling or collection operations (basically anything having to do with config archive). If you're sure the server is otherwise idle, you can periodically restart ConfigMgmtServer using cron or at.
03-15-2007 09:58 AM
We did a test before trying to run anything in cron or as an at job. Unfortunately, it didn't work. The devices that were removed still have config files in the shadow directory. Do you have any suggestions on what might be wrong or what we can do to make this work?
03-15-2007 10:00 AM
What version of RME do you have? It definitely works in RME 4.0.5, but I have not tested the previous versions. The code is there, but there may be bugs.
03-15-2007 10:49 AM
The RME version is 4.0.5. What do you think could be going wrong?
03-16-2007 10:21 AM
I just learned that the servers in question are running RME 4.0.4. Mine is different. So, is there something else we might need to do on servers running 4.0.4?
03-16-2007 10:29 AM
I've reviewed the code, and there was a bug prior to LMS 2.6 (i.e. RME 4.0.5) that prevented this from working. You will need to upgrade to get working shadow directory cleaning.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: