< Previous | Next > | |
Product: File System Guides | |
Manual: File System 4.1 Administrator's Guide |
Extended mount OptionsThe VxFS file system supports extended mount options to specify:
See VxFS Performance: Creating, Mounting, and Tuning File Systems and the mount_vxfs(1M) manual page for details on the VxFS mount options. Enhanced Data Integrity ModesNote There are performance advantages and disadvantages associated with the use of these mount options. For most UNIX file systems, including VxFS, the default mode for writing to a file is delayed, or buffered, meaning that the data to be written is copied to the file system cache and later flushed to disk in a lazy fashion. This provides much better performance than synchronously writing the data to disk. However, in the event of a system failure, data written shortly before the failure may be lost since it was not flushed to disk. In addition, if space was allocated to the file as part of the write request, and the corresponding data was not flushed to disk before the system failure occurred, unitialized data can appear in the file. For the most common type of write, delayed extending writes (a delayed write that increases the file size), VxFS avoids the problem of unitialized data appearing in the file by waiting until the data has been flushed to disk before updating the new file size to disk. If a system failure occurs before the data has been flushed to disk, the file size has not yet been updated to be unitialized data, thus no uninitialized data appears in the file. The unused blocks that were allocated are reclaimed. Using blkclear Option for Data IntegrityIn environments where performance is more important than absolute data integrity, the preceding situation is not of great concern. However, VxFS supports environments that emphasize data integrity by providing the mount -o blkclear option that ensures uninitialized data does not appear in a file. Using closesync Option for Data IntegrityVxFS provides the mount -o mincache=closesync option, which is useful in desktop environments with users who are likely to shut off the power on machines without halting them first. In closesync mode, only files that are written during the system crash or shutdown can lose data. Any changes to a file are flushed to disk when the file is closed. Using the log Option for Data IntegrityFile systems are typically asynchronous in that structural changes to the file system are not immediately written to disk, which provides better performance. However, recent changes made to a system can be lost if a system failure occurs. Specifically, attribute changes to files and recently created files may disappear. The mount -o log intent logging option guarantees that all structural changes to the file system are logged to disk before the system call returns to the application. With this option, the rename(2) system call flushes the source file to disk to guarantee the persistent of the file data before renaming it. The rename() call is also guaranteed to be persistent when the system call returns. The changes to file system data and metadata caused by the fsync(2) and fdatasync(2) system calls are guaranteed to be persistent once the calls return. Enhanced Performance ModeVxFS has several mount options that improve performance, such as delaylog. Using the delaylog Option for Enhanced PerformanceThe default VxFS logging mode, mount -o delaylog, increases performance by delaying the logging of some structural changes, but does not provide the equivalent data integrity as the previously described modes. That is because recent changes may be lost during a system failure. This option provides at least the same level of data accuracy that traditional UNIX file systems provide for system failures, along with fast file system recovery. delaylog is the default mount option. Modes of Temporary File SystemOn most UNIX systems, temporary file system directories (such as /tmp and /usr/tmp) often hold files that do not need to be retained when the system reboots. The underlying file system does not need to maintain a high degree of structural integrity for these temporary directories. Using the tmplog option For Temporary File SystemsVxFS provides a mount -o tmplog option, which allows the user to achieve higher performance on temporary file systems by delaying the logging of most operations. Improved Synchronous WritesVxFS provides superior performance for synchronous write applications. The default mount -o datainlog option greatly improves the performance of small synchronous writes. The mount -o convosync=dsync option improves the performance of applications that require synchronous data writes but not synchronous inode time updates. Caution The use of the -o convosync=dsync option violates POSIX semantics. Support for Large FilesVxFS can support files larger than two terabytes. See largefiles | nolargefiles for information on how to create, mount, and manage file systems containing large files. Caution Some applications and utilities may not work on large files. |
^ Return to Top | < Previous | Next > |
Product: File System Guides | |
Manual: File System 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |