Veritas File System Administrator's Guide
Total Page:16
File Type:pdf, Size:1020Kb
Veritas File System Administrator's Guide Solaris N18516F Veritas File System Administrator's Guide The software described in this book is furnished under a license agreement and may be used only in accordance with the terms of the agreement. Veritas File System 5.0 PN: N18516F Legal Notice Copyright © 2006 Symantec Corporation. All rights reserved. Federal acquisitions: Commercial Software - Government Users Subject to Standard License Terms and Conditions. Symantec, the Symantec Logo, and Storage Foundation are trademarks or registered trademarks of Symantec Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Symantec Corporation and its licensors, if any. THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE. The Licensed Software and Documentation are deemed to be "commercial computer software" and "commercial computer software documentation" as defined in FAR Sections 12.212 and DFARS Section 227.7202. Symantec Corporation 20330 Stevens Creek Blvd. Cupertino, CA 95014 USA http://www.symantec.com Printed in the United States of America. 10 9 8 7 6 5 4 3 2 1 Contents Chapter 1 Introducing Veritas File System About Veritas File System .............................................................. 11 Logging ................................................................................ 12 Extents ................................................................................ 12 File system disk layouts ........................................................... 12 Veritas File System features ........................................................... 12 Extent-based allocation ........................................................... 14 Extent attributes .................................................................... 16 Fast file system recovery .......................................................... 16 Extended mount options .......................................................... 17 Enhanced data integrity modes ................................................. 18 Enhanced performance mode ................................................... 19 Modes of temporary file systems ............................................... 19 Improved synchronous writes ................................................... 19 Support for large files ............................................................. 20 Access Control Lists ................................................................ 20 Storage Checkpoints ............................................................... 20 Online backup ....................................................................... 20 Quotas ................................................................................. 21 Support for databases ............................................................. 21 Cluster file systems ................................................................ 22 Cross-platform data sharing ..................................................... 22 File Change Log ..................................................................... 22 Multi-volume support ............................................................. 23 Dynamic Storage Tiering ......................................................... 23 Veritas File System performance enhancements ................................. 23 About enhanced I/O performance .............................................. 24 Using Veritas File System .............................................................. 25 Veritas Enterprise Administrator Graphical User Interface ............. 25 Online system administration ................................................... 26 Application program interface .................................................. 27 4 Contents Chapter 2 VxFS performance: creating, mounting, and tuning File Systems mkfs command options ................................................................. 29 Block size ............................................................................. 29 Intent log size ........................................................................ 30 Choosing mount command options .................................................. 30 The log mode ......................................................................... 31 The delaylog mode ................................................................. 32 The tmplog mode ................................................................... 32 The logiosize mode ................................................................. 33 The nodatainlog mode ............................................................. 33 The blkclear mode .................................................................. 33 The mincache mode ................................................................ 34 The convosync mode ............................................................... 35 The ioerror mode ................................................................... 36 The largefiles|nolargefiles option .............................................. 37 The cio option ....................................................................... 39 Combining mount command options ......................................... 39 Using kernel tunables ................................................................... 40 Tuning inode table size ........................................................... 40 vx_maxlink ........................................................................... 41 Veritas Volume Manager maximum I/O size ................................ 41 Monitoring free space ................................................................... 42 Monitoring fragmentation ....................................................... 42 Tuning I/O .................................................................................. 43 Tuning VxFS I/O parameters .................................................... 44 Tunable I/O parameters ........................................................... 45 File system tuning guidelines ................................................... 52 Chapter 3 Extent attributes About extent attributes ................................................................. 55 Reservation: preallocating space to a file ..................................... 56 Fixed extent size .................................................................... 56 Other controls ....................................................................... 57 Commands related to extent attributes ............................................ 58 Failure to preserve extent attributes ........................................... 59 Chapter 4 VxFS I/O Overview About VxFS I/O ............................................................................ 61 Buffered and Direct I/O ................................................................. 62 Direct I/O ............................................................................. 62 Contents 5 Unbuffered I/O ...................................................................... 63 Data synchronous I/O ............................................................. 63 Cache advisories .......................................................................... 64 Freezing and thawing a file system .................................................. 65 Getting the I/O size ...................................................................... 65 Getting the I/O size ....................................................................... 65 Getting the I/O size ....................................................................... 65 Getting the I/O size ...................................................................... 66 Chapter 5 Storage Checkpoints About Storage Checkpoints ............................................................ 67 How Storage Checkpoints differ from snapshots ........................... 68 How a Storage Checkpoint works ..................................................... 69 Copy-on-write ....................................................................... 71 Types of Storage Checkpoints ......................................................... 72 Data Storage Checkpoints ........................................................ 72 nodata Storage Checkpoints ..................................................... 73 Removable Storage Checkpoints ................................................ 74 Non-mountable Storage Checkpoints ......................................... 74 Storage Checkpoint administration .................................................. 74 Creating a Storage Checkpoint .................................................. 75 Removing a Storage Checkpoint ................................................ 76 Accessing a Storage Checkpoint ...............................................