Home > Domino Tips > Administrator > Server > Simple freetime (busytime.nsf) corruption fix
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SERVER

Simple freetime (busytime.nsf) corruption fix


Gerard Volker
08.13.2001
Rating: -4.11- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


In Notes 5.x, Calendar & Scheduling issues have presented us with several opportunities to develop workarounds to fix customer issues. One such issue is that the freetime search--checking available time for a person or a resource--doesn't always return the proper data. After troubleshooting these issues for a while, we decided to delete the busytime.nsf database daily, in the middle of the night, and have it recreate itself by stopping and restarting the SCHED server task. This solution has reduced the number of C&S issues we have reported from our clients, and might also work in your environment, but be sure and test it prior to implementation.



Code

No LotusScript was used in this implementation, just simple program documents and a batch file on the Windows NT or 2000 server. For different platforms (such as UNIX or AS/400), you would need to write a simple batch file to accomplish the same tasks as the Windows .bat file.

1) Create a text file with the following content:
del <drive path of Notes Data busytime.nsf>, e.g.

del c:notesdatabusytime.nsf

Save and name the file delbt.bat

2) Copy the file to your Notes Server CODE directory (such as C:NOTES or D:NOTES).

3) Add program documents to accomplish the following tasks (below). In our environment, the tasks run M-F, the first starting at 4:30AM and the rest all 1-2 minutes later (per task).

a. Shutdown calconn (4:30AM): turns off Calendar Connector to prevent access of busytime.nsf from another server:

nserver -c "tell calconn quit"

b. Shutdown sched (4:30AM): turns off the scheduler tasks to free the busytime.nsf database

nserver -c "tell sched quit"

c. Dbcache flush (4:32AM): clears db cache of pending queue to make all databases available, allows database to be deleted

nserver -c "dbcache flush"

d. Create a program document to run the batch file to delete busytime db (4:34AM)

nserver -c "load delbt.bat"

e. Restart calconn: Restarts the Calendar Connector task (4:35AM)

nserver -c "load calconn"

f. Restart sched (4:37AM): Restarts the Scheduler Task--when busytime.nsf isn't found on the server, it automatically creates a new database.

nserver -c "load sched"

That's it! Be sure and test in your environment--if the tasks don't restart properly you may need to adjust the times of the program documents. Enjoy!


Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Server
How to move Notes databases off Domino 8 servers and save disk space
Move a Lotus Domino server to a new certifier without a reinstall
Securely connect Lotus Domino servers on different domains
Track and record Lotus Notes user logins to Domino Server
Use SMTP outbound authentication to relay hosts in Lotus Notes Domino 8
Log off idle Lotus Notes users for better Domino Server performance
Copy Lotus Notes databases from the Domino Server console command line
How to perform an in-place upgrade of Lotus Domino server hardware
Daylight Saving Time 2007 -- seven helpful tips for Lotus Notes administrators
FileZilla

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts