Thursday, August 30, 2012

Reasons of NSF File Corruption and Its Recovery

In this blog post, we have discussed the most common reasons of NSF file corruption and what are the techniques which can be used to perform recovery of damaged Lotus Notes database .nsf file.

Causes of Corruption:

Following are the prominent reasons of corruption in Notes database files:

• Domino Server failure or crash
• Hardware malfunctioning
• Header Part corruption
• Log files damage or deletion
• Mailboxes deletion accidentally
• Dirtyshutdown of application caused by power failure or any other reason
• Virus/malware attacks
• Interaction with an incompatible program
• Operating system problems


Possible Ways to Perform the Preventive Maintenance and to Fix the Corrupt NSF File:

That can be done in two ways, one is Online and the second one is Offline.

A) Online Maintenance Method:

In this method, Load command is used to perform the maintenance on Domino Server. This method can affect the performance of the server so it is highly recommended to take the backup of your database files. Following are the syntaxes of Load command:

load fixup BES : This switch fixes the unopened documents in database and views.
load fixup BES -o : It is used to determine the corrupted views and make the database offline.
load updall -r BES : This command is resource intensive and rebuild utilize views and resolve corruption in full-text indices.
Load compact -c BES : This command is used to rebuild corrupted database.


All commands which are applicable in Offline maintenance can be used in Online maintenance without “n” character in front of these commands. For example, in place of ncompact command, you require to run compact command.

B) Offline Maintenance Method:


In order to perform this method, first you should have to stop Lotus Domino server. Then, you can perform offline maintenance by running these commands on command prompt window:

nfixup : This command handles damaged views and documents.
nupdall -r : This command line tool is a resource intensive and is used to correct damaged views, repair & rebuild used views and full-text indices.
ncompact -c : This command resolves the corruption issues in NSF file database.


After completing above process, you need to start Lotus Domino Server.

If aforementioned two methods do not give the accurate results or you are unable to follow the above procedure, you can use a simple third party application like Stellar Phoenix Lotus Notes Recovery. This NSF database recovery tool is very user friendly and helps the users of Lotus Notes as well as Domino Server to effectively recover and rebuild the corrupt NSF file. This utility is designed to work with Lotus Notes 6.x, 7.x versions. A free, full featured, trial version copy of the product can be downloaded from the official website: http://www.stellarservertools.com/lotus-notes-recovery.phpLink