Hierarchical File System Usage Guide
Total Page:16
File Type:pdf, Size:1020Kb
Hierarchical File System Usage Guide Learn how to manage HFS data Optimize HFS performance Set up sysplex sharing Nigel Morton Toru Yamazaki Rama Ayyar Dirk Gutschke Barry Kadleck Masato Miyamoto ibm.com/redbooks International Technical Support Organization SG24-5482-01 Hierarchical File System Usage Guide September 2000 Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix C, “Special notices” on page 307. Second Edition (September 2000) This edition applies to Version 1, Release 5 of DFSMS/MVS, Program Number 5695-DF1 for use with Version 2 Release 7 of OS/390 or higher. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. QXXE Building 80-E2 650 Harry Road San Jose, California 95120-6099 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1999, 2000. All rights reserved. Note to U.S Government Users - Documentation related to restricted rights - Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Figures ......................................................ix Tables ...................................................... xiii Preface ......................................................xv The team that wrote this redbook ...................................... xv Commentswelcome................................................xvii Chapter 1. Introduction to the Hierarchical File System................1 1.1HFSoverview...............................................1 1.2StructureofanHFSdataset....................................2 1.2.1 HFS track capacities on a 3380 and 3390 volume ................2 1.2.2 Index structure of an HFS data set ...........................4 1.2.3 Index updates through shadow writes . ......................10 1.2.4Syncprocess..........................................11 1.3 New enhancements . .......................................13 1.3.1 DFSMS/MVS 1.5 enhancements ............................14 1.3.2 OS/390 2.9 enhancements ................................14 1.3.3Non-SMSHFSdatasets..................................15 1.3.4 DFSORT support of HFS data sets ..........................15 Chapter 2. Introduction to OS/390 UNIX System Services .............17 2.1 Required USS operation level to use HFS. ......................17 2.1.1Minimummode.........................................17 2.1.2Sockets-onlymode......................................18 2.1.3Full-functionmode.......................................18 2.2 UNIX System Services and related address spaces .................19 2.3UNIXfilesystemoverview....................................20 2.3.1UNIXfilesystemstructure.................................20 2.3.2 Recommended file system structure . ......................22 2.4HFSandUNIXSystemServicessecurity.........................24 2.4.1UNIXfilesecurityoverview................................24 2.4.2 UNIX users and superuser ................................24 2.4.3 UNIX groups ...........................................25 2.4.4UNIXfilesecuritywiththeOS/390SecurityServer(RACF)........29 Chapter 3. HFS externals .......................................33 3.1SMSconsiderations.........................................33 3.1.1BasicSMSterms........................................33 3.1.2DefiningSMSconstructsforHFSdatasets....................35 3.1.3Dataclass.............................................36 3.1.4Storageclass..........................................37 3.1.5 Management class ......................................39 3.1.6Storagegroup..........................................42 3.1.7ACSroutines...........................................46 3.2Non-SMSconsiderations......................................51 3.2.1 Non-SMS availability management ..........................52 3.2.2 Non-SMS space management. ............................54 3.3 HFS PARMLIB and command enhancements ......................56 3.3.1BPXPRMxxoptions......................................56 3.3.2TSOMOUNTcommand..................................63 © Copyright IBM Corp. 1999, 2000 iii 3.3.3TSOUNMOUNTcommand............................... 64 3.3.4SETOMVSsystemcommand..............................66 3.3.5confighfsshellcommand................................. 68 3.3.6DisplayingtheSYNCintervalsettings....................... 72 3.4 Requirements and restrictions . .............................. 73 3.4.1 Restrictions for executable files (object modules) .............. 74 3.4.2 Additional dependencies, issues, restrictions, and requirements . 74 Chapter 4. Allocating and mounting HFS data sets.................. 77 4.1AllocatinganHFS.......................................... 77 4.1.1Multi-volumeallocationconsiderations....................... 78 4.1.2Guaranteedspaceconsiderations.......................... 78 4.1.3SMSdefinitionexamples................................. 82 4.1.4UsingISPF........................................... 83 4.1.5UsingDDstatementinabatchjob.......................... 86 4.1.6 Miscellaneous allocation methods . ......................... 87 4.1.7UsingISHELL......................................... 89 4.1.8SummaryofHFSdatasetallocations....................... 91 4.2MountinganHFS........................................... 91 4.2.1 Before mounting HFS data sets . ......................... 92 4.2.2 TSO MOUNT and UNMOUNT commands . ................... 93 4.2.3ISPFISHELL.......................................... 95 4.2.4 OMVS mountx and unmountx shell commands . ..............98 4.2.5 After mounting HFS data sets ............................. 98 4.2.6AddingMOUNTStatementstoBPXPRMxx................... 99 4.2.7 Status of mounted HFS data sets . ......................... 99 Chapter 5. Managing HFS data sets ............................. 103 5.1DFSMSdssdumpandrestore................................ 103 5.1.1Dumpprocessing...................................... 103 5.1.2Restoreprocessing.................................... 114 5.2DFSMShsmbackupandmigration............................. 115 5.2.1CommonDFSMShsmfunctions........................... 115 5.2.2Backupprocessing.................................... 118 5.2.3RecoveryandrestoreofHFSdatasets..................... 123 5.2.4 Migrating and recalling an HFS data set . .................. 125 5.3Recoveringfilesanddirectories............................... 126 5.3.1 Copytree utility........................................ 127 5.3.2Consistencycheckingofafilesystem...................... 129 5.4 Additional space management topics. ........................ 130 5.4.1 Releasing unused space . ............................. 130 5.4.2DeletingorremovinganHFSdataset...................... 131 5.4.3TransportinganHFS................................... 132 5.5IncreasingthesizeofanHFSdataset......................... 132 5.5.1IncreasingthefilesystemsizeusingDFSMSdss.............. 133 5.5.2 IDCAMS ALTER to add candidate volumes .................. 137 5.5.3 USS confighfs command to change file system size ........... 139 5.6Displayingthefilesystemsize................................ 143 5.6.1UsingthedfUNIXcommand............................. 143 5.6.2UsingtheUNIXconfighfscommand........................ 145 5.6.3ISPFdatasetinformation............................... 146 5.6.4TSOISHELL—filesystemattributes...................... 147 5.6.5ISMFdatasetinformation............................... 148 iv Hierarchical File System Usage Guide 5.7MovinganddisplayingtheownershipforasharedHFS.............148 5.8 Installing service to products in the HFS .........................150 5.9 Snapshot and DFSMSdss COPY considerations. ................150 Chapter 6. Tivoli Storage Manager...............................153 6.1 Introduction to Tivoli Storage Manager ..........................153 6.1.1 Why use Tivoli Storage Manager?..........................153 6.1.2 Tivoli Storage Manager components . .....................154 6.2 Installing the Tivoli Storage Manager USS client . ................155 6.2.1Orderingtheclientsoftware..............................155 6.2.2Initialinstallation.......................................155 6.2.3Customizingtheclient...................................155 6.2.4 Using the Tivoli Storage Manager client .....................158 6.2.5TSMserverconsiderations...............................162 6.2.6HFSfilesharingconsiderations............................163 6.3 Data management strategies . ................................163 6.3.1 DFSMSdss and Tivoli Storage Manager .....................163 6.3.2Disasterrecoveryconsiderations...........................164 6.4Performanceconsiderations..................................164 6.4.1Tuning...............................................164 6.4.2 Reorganizing HFS for performance .........................165 Chapter 7. Sharing and serialization for HFS data sets ..............167 7.1Serializationconsiderations..................................170 7.1.1 ENQ usage for shared HFS (OS/390 2.9 and higher) . ..........171 7.1.2SerializationbyDFSMSdss...............................173 7.2Sharingconsiderations(OS/3902.8andbelow)...................174 7.2.1 Mount integrity (write protection) enhancements ...............175 7.3 HFS sysplex sharing (OS/390 2.9 and above).....................179 7.3.1Functionshipping......................................179 7.3.2Sysplexsharingconsiderations............................182