Database file protection

How Data ONTAP provides database file protection

Data ONTAP provides database file protection through the nvfail option of the vol options command. The nvfail option enables a filer to detect NVRAM inconsistencies at boot time. Use it to warn database administrators of NVRAM problems that could compromise database validity. If the filer finds any problems, database instances hang or shut down, and the filer sends error messages to the console to alert you to check the state of the database.

How to provide additional protection for database files

You can provide additional protection to specific database files by adding them to an optional file you create called /etc/nvfail_rename. When you enable nvfail and the filer detects NVRAM errors at boot up, the filer renames any database files specified in the nvfail_rename file by appending .nvfail to the original file name. When the filer renames a database file, the database cannot restart automatically. This gives you the opportunity to examine the file for inconsistencies before you remove the .nvfail extension and make the file accessible again.

How nvfail works

When you enable nvfail, the following process takes place during boot-up.

If... Then...
The filer detects no NVRAM errors File service starts normally.
The filer detects NVRAM errors and you use the optional nvfail_rename file a) The filer returns a stale filehandles (ESTALE) error to NFS clients trying to access the database, causing the application to hang, crash, or shut down, and sends an error message to the filer console and log file. b) The filer renames database files specified in the nvfail_rename file by appending .nvfail to the original file name, making those files unavailable to both CIFS and NFS clients.
The filer detects NVRAM errors and you do not use the optional nvfail_rename file a) The filer returns a stale filehandles (ESTALE) error to NFS clients trying to access the database, causing the application to hang, crash, or shut down, and sends an error message to the filer console and log file. b) No database files are renamed. When the application restarts, files are available to both CIFS and NFS clients, even if you have not verified that they are valid.

Where to look for database file verification instructions

See the documentation for your specific database software for instructions about examining database file validity.

Error message example

When you enable nvfail and the filer encounters NVRAM errors, the message sent to the console and the /etc/messages file looks like the following:


 
All filehandles have been invalidated due to previous NVRAM 
failure.
All filesystems must be remounted by the client(s).

If you created an nvfail_rename file, you receive an additional message:


 
Renaming files in /etc/nvfail_rename.
nvfail_rename: old_file_name: new_file_name

Copyright © 1999, Network Appliance, Inc. All rights reserved.

Part No. 210-02334
File: net24.htm
Last updated: 04/26/99 08:11:18