Zfs Enhancements Z/OS V1R11 File Sharing Mode
Total Page:16
File Type:pdf, Size:1020Kb
ibm.com zFS Enhancements z/OS V1R11 File Sharing Mode International Technical Support Organization © Copyright IBM Corp. 2009. All rights reserved. Trademarks eNetwork DFSMS/MVS IMS RACF geoManager DFSMSdfp IMS/ESA RMF AD/Cycle DFSMSdss IP PrintWay RS/6000 ADSTAR DFSMShsm IPDS S/390 AFP DFSMSrmm Language Environment S/390 Parallel Enterprise Server APL2 DFSORT Multiprise SecureWay APPN Enterprise System 3090 MQSeries StorWatch BookManger Enterprise System 4381 MVS/ESA Sysplex Timer BookMaster Enterprise System 9000 Network Station System/390 C/370 ES/3090 NetSpool SystemView CallPath ES/4381 OfficeVision/MVS SOM CICS ES/9000 Open Class SOMobjects CICS/ESA ESA/390 OpenEdition SP CICS/MVS ESCON OS/2 VisualAge CICSPlex First Failure Support Technology OS/390 VisualGen COBOL/370 FLowMark Parallel Sysplex VisualLift DataPropagator FFST Print Services Facility VTAM DisplayWrite GDDM PrintWay WebSphere DB2 ImagePlus ProductPac 3090 DB2 Universal Database Intelligent Miner PR/SM 3890/XP DFSMS IBM QMFr z/OS IBM System z z/OS.e Domino (Lotus Development Corporation) Tivoli (Tivoli Systems Inc.) UNIX (X/Open Company Limited) DFS (Transarc Corporation) Tivoli Management Framework Windows (Microsoft Corporation) Java (Sun Microsystems, Inc.) (Tivoli Systems Inc.) Windows NT (Microsoft Corporation) Lotus (Lotus Development Corporation) Tivoli Manger (Tivoli Systems Inc.) © Copyright IBM Corp. 2009. All rights reserved. zFS - 1-2 UNIX System Services (z/OS UNIX) Interactive Interface Shell POSIX-API C RTL cmds z/OS UNIX REXX ASM/C/C++ programs z/OS UNIX Callable Services Interfaces z/OS Logical File System UNIX Kernel z/OS UNIX-PFS Interface Physical File Systems (PFS) HFS PFS © Copyright IBM Corp. 2009. All rights reserved. Requests to LFS to PFS to Files read write open close z/OS Callable Services Interface Logical File System Kernel z/OS UNIX-PFS Interface auto- IP Local NFS TFS HFS mount sockets sockets client ZFS Physical File Systems HFSVOL ZFSVOL Migration / / F F FF F F F F F HFS to zFS F F © Copyright IBM Corp. 2009. All rights reserved. zFS - 3-4 Shared File Systems in a Sysplex OS/390 V2R9 - First file sharing - (Only HFS) zFS supports shared file systems - (z/OS V1R2) USS sharing group Buffer / Cache System 1System 2 System 3 File System File System File System Sharing/Client Owner/Server Sharing/Client XCF XCF R/WR/W R/W I/O's BPXPRMxx ... BPXMCDS SYSPLEX(YES) / ... F F F OMVS couple data set F F File System © Copyright IBM Corp. 2009. All rights reserved. zFS Migration Considerations Migrate from HFS file systems to zFS file systems (Recommended) - because zFS is planned to become a requirement in a future release zFS is the strategic file system HFS may no longer be supported in future releases - necessary to migrate HFS file systems to zFS Migration tool available with z/OS V1R7 - BPXWH2Z HFS and zFS file system types in mount statements and command operands are now generic file system types that can mean either HFS or zFS Based on the data set type, the system will determine which is appropriate © Copyright IBM Corp. 2009. All rights reserved. zFS - 5-6 zSeries File System (zFS) zFS is the strategic UNIX Systems Services file system for z/OS The Hierarchical File System (HFS) functionality has been stabilized - (HFS-PFS) HFS is continuing to ship as part of the operating system and will be supported in within terms of a customer's applicable support agreement IBM intends to continue enhancing zFS functionality, including RAS and performance capabilities, in future z/OS releases All requirements for UNIX file services are expected to be addressed in the context of zFS only © Copyright IBM Corp. 2009. All rights reserved. Recent zFS Support Considerations When all systems are running at the z/OS V1R11 level, only compatibility mode aggregates are supported in a sysplex Starting with z/OS V1R8, a zFS file system that resides in a multi-file system aggregate cannot be mounted in a sysplex sharing environment © Copyright IBM Corp. 2009. All rights reserved. zFS - 7-8 Shared File Systems Prior to V1R11 One system becomes the owner system of either a: Read/write (R/W) and read/only (R/O) file system The sysplex member system that owns the file system is the first system that processes the mount This system always accesses the R/W file system locally Other systems do not access the R/W file system directly Each system can access the R/O file system directly It is a disadvantage when accessing a file system mounted as R/W and access is performed on a system not being the file system owner In this situation the request has to be addressed forward to the owning system © Copyright IBM Corp. 2009. All rights reserved. USS Syplex File System Sharing Provides many advantages when comparing it to single system mode: Write to file systems from all systems in the sysplex Using XCF High availability of file systems for applications in the USS sysplex environment Ability to do small changes to file systems used in read-only mode By switching to read-write mode temporary Perform the change Switching back to read-only mode © Copyright IBM Corp. 2009. All rights reserved. zFS - 9-10 Request Forwarding - Function Shipping In this case, zFS runs sysplex-unaware z/OS UNIX forwards all file requests to the z/OS UNIX owning system From this system the request is sent down to the zFS physical file system (PFS) This forwarding of requests is sometimes called z/OS UNIX “function shipping” Responses are returned from zFS to z/OS UNIX which returns the response to the issuing system This is exactly the same technique that is used for HFS © Copyright IBM Corp. 2009. All rights reserved. Sysplex Sharing Mode Prior to V1R7 V1R2 to V1R6 systems Application Application Application USS USS USS zFS zFS zFS / R/W F F F F F © Copyright IBM Corp. 2009. All rights reserved. zFS - 11-12 Shared File System Mode SC64 SC70 SC65 z/OS V1R7 Buffer / Cache z/OS V1R8 z/OS V1R6 ZFS XCF ZFS ZFS Function-ships R/W requests Locally mounted OWNER of R/O and Read (R/O) Locally mounted R/W file systems XCF Read (R/O) Function-ships R/W requests BPXPRMxx / R/W ... F F SYSPLEX(YES) F F F ... / RO BPXMCDS F F F F F OMVS couple data set © Copyright IBM Corp. 2009. All rights reserved. zFS Owner versus z/OS UNIX Owner The zFS owner of the aggregate can be different than the z/OS UNIX owner of the file system To display the z/OS UNIX owner, use df -v command The z/OS UNIX owner is only responsible for BRLM To display the zFS owner, use the zfsadm lsaggr command © Copyright IBM Corp. 2009. All rights reserved. zFS - 13-14 zFS Sharing Mode Terminology zFS namespace Starting with z/OS V1R7, zFS has supported administrative commands and APIs that are sysplex wide in a shared file system environment zFS communicates between sysplex members using XCF protocols Information is exchanged about zFS ownership and attributes of mounted zFS file systems This information is kept in memory of each zFS member and is called the zFS namespace This is used to know who the zFS owner is of each aggregate that is currenly in-use © Copyright IBM Corp. 2009. All rights reserved. zFS Command Forwarding Support z/OS V1R7 - Ability to issue zFS filesystem commands from anywhere within a sysplex using: -system system_name Allows quiesce of zFS from any LPAR in a sysplex zfsadm commands will now display and work with zFS aggregates and file systems across the sysplex This enhancement is exploited by: DFSMS backup (ADRDSSU) Backups can now be issued from any member of the sysplex when all members are at z/OS V1R7 regardless of which member owns the file system ISHELL zFS administrators © Copyright IBM Corp. 2009. All rights reserved. zFS - 15-16 zFS Starts and Joins the XCF group IEF403I ZFS - STARTED - TIME=18.59.13 - ASID=008F - SC70 ... IOEZ00052I zFS kernel: Initializing z/OS zSeries File System Version 01.07.00 Service Level 0000000 - HZFS370. Created on Mon Apr 4 16:06:17 EDT 2005. ... IOEZ00350I Successfully joined group IOEZFS *IOEZ00525I Starting initialization with SC65 IOEZ00529I Preparing for initialization with SC70. <===== SC65 IOEZ00530I Ready to initialize with SC70. <============== SC65 *IOEZ00526I Requesting aggregate information from SC65 IOEZ00532I Sending aggregate information to SC70. <====== SC65 ... IOEZ00528I Initialization with SC65 complete. IOEZ00533I Done initializing with SC70. <================ SC65 ... IOEZ00055I zFS kernel: initialization complete. © Copyright IBM Corp. 2009. All rights reserved. New zfsadm Command Examples zfsadm lssys - Shows the members in a sysplex zfsadm sysplex command example using -system system_name ROGERS @ SC65:/u/rogers>zfsadm lssys IOEZ00361I A total of 2 systems are in the XCF group for zFS SC65 SC70 ROGERS @ SC65:/u/rogers> ROGERS @ SC65:/u/rogers>zfsadm aggrinfo -system SC70 IOEZ00368I A total of 2 aggregates are attached to system SC70. OMVS.TEST.MULTIFS.ZFS (R/O MULT): 20597 K free out of total 20880 OMVS.HERING.TEST.ZFS (R/O COMP): 454 K free out of total 11520 © Copyright IBM Corp. 2009. All rights reserved. zFS - 17-18 zFS (V1R7) added IOEZFS Group Application Application Application File File USS USS USS Admin Admin zFS zFS zFS / F F R/W F F F © Copyright IBM Corp. 2009. All rights reserved. zFS Sharing Mode Terminology Sysplex-unaware A file system is sysplex-unaware if the PFS supporting that file system requires it to be accessed through the remote owning system from all other systems in a sysplex (allowing only one connection for update at a time) for a particular mode (read-only or read-write).