Sidebar

Directory Conversion Without the Downtime

IT Infrastructure - Other
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

 

You want it, but you don't want to sacrifice to get it! Good news: IBM i5/OS V5R3 convert-while-active (CWA) is here and is offering you a sweet deal with no strings attached. CWA is a non-dedicated file system conversion that gives you *TYPE2 directories and all of the benefits that go along with them, without disrupting your business. It is the ideal solution for an on-demand operating environment. If you want to move to *TYPE2 directories and avoid the system downtime required to convert, then CWA is the answer!

*TYPE2 Directories

You may be asking yourself, "What are *TYPE2 directories, and what makes CWA so great?" We will tackle the first question so you can see the benefit of CWA later. *TYPE2 directories are the newly designed directory objects that can be found in the "root" (/), QOpenSys, and user-defined file systems of the i5/OS. They replace the old *TYPE1 directory objects and are built for improved performance, reliability, size, compatibility, and functionality. All of these benefits make them a must-have for your file systems.

First, *TYPE2 directories offer excellent performance improvements over *TYPE1 directories. They can provide up to a 12x performance improvement when performing Create Directory operations. In addition, *TYPE2 directories can provide up to a 4x performance improvement on Delete and Read Directory, up to a 2x performance improvement on Open Directory and Save/Restore, and up to a 1.5x performance improvement on Open File. (Performance measurements were done on various systems in the IBM Rochester laboratory. Your performance gains may be similar, but will vary.)

*TYPE2 directories not only have excellent runtime performance, but also are much more reliable than *TYPE1 directories. *TYPE1 directories suffer from poor recovery after a system crash, but not *TYPE2 directories. *TYPE2 directories have been built to extensively use system journaling, which enables a significant recovery improvement after a system crash. They give you one less thing to worry about when the power goes out.

Thanks to the newly designed directory objects, *TYPE2 directories are also able to reduce the disk space consumed by directories. A *TYPE2 directory that has less than 350 objects within it is smaller than a *TYPE1 directory. Having more than 350 objects makes *TYPE2 directories only 10% larger on average. But this should not be a cause for concern, since many directories typically have a relatively small number of objects within them.

*TYPE2 directories are also fully compatible with *TYPE1 directories on a save/restore up to the *TYPE1 directory limits, because directories are stored in a generic form on media to allow them to be interchanged. *TYPE2 directories also provide the ability to create 1,000,000 subdirectories within a single directory. And finally, *TYPE2 directories are required in order to take advantage of new file system improvements, such as IFS object scan enablement and iSeries Navigator automatic name sorting.

How Do You Get *TYPE2 Directories?

With all of these improvements, there should be no hesitation in converting to *TYPE2 directories, right? For many, this is true. However, for those who cannot afford downtime because they are operating in an on-demand business, a dedicated file system conversion is not so easy to accept. Unless you scratch installed to V5R2 or i5/OS V5R3, a dedicated file system conversion (a.k.a. dedicated conversion) is required in V5R1 or V5R2 to convert a file system from *TYPE1 directories to *TYPE2 directories. Such a conversion is not automatic. You must learn how to perform the conversion, and you must watch over it. And the biggest downfall is that the conversion requires a restricted state, which results in system downtime. So what about conversion in i5/OS V5R3?

New Convert-While-Active (CWA)

Unlike dedicated conversion in previous releases, V5R3 offers a new, improved while-active file system conversion, CWA. CWA is an autonomic file system conversion that provides an ideal solution for businesses running in an on-demand environment. As noted, *TYPE2 directories are superior, but dedicated conversion has disadvantages. CWA provides a conversion that is transparent to your V5R3 operations. You do not need to learn how to perform it; it's automatic. You do not need to watch over and manage it; it manages itself. And best of all, it requires no system downtime. This conversion is standard in V5R3. Dedicated conversion can now be manually performed only in V5R1 or V5R2.

How Does CWA Work?

CWA converts all *TYPE1 directories found in the "root" (/), QOpenSys, and user-defined file systems in basic auxiliary storage pools (ASPs 1-32) to *TYPE2 directories while running in a low-priority background thread (thread 2 of the QFILESYS1 system job). CWA converts one directory at a time to minimize the storage and performance impacts to the system. By performing such a conversion, the file system must manage both types of directories at the same time in the same file system! In addition, after a conversion starts on a file system, all new directories in that file system are created as *TYPE2. Not to worry; these are details that only the file system cares about. Users and applications see a fully functional file system even while it is being converted. It makes no difference whether they are working with *TYPE1 directories, *TYPE2 directories, or both. Eventually, they will start realizing all the benefits of *TYPE2 directories as CWA converts file system after file system.

CWA is not a "first-touch" conversion and is not an install-time conversion. Instead, it converts directories that are not being used and interlocks with the file system to convert directories that are being used in a systematic manner, starting with the "root" (/) file system, continuing to the QOpenSys, and then to the user-defined file systems until the conversion is complete. Therefore, all directories, not just those that get touched, eventually get converted to *TYPE2.

Are There Any CWA Restrictions?

With anything that seems too good to be true, you are probably wondering what the catch is. There are no catches; however, there are a couple things to note. First, independent ASPs created in V5R1 that have not been converted to *TYPE2 directories are converted during vary-on to V5R3 using dedicated conversion. This is no different than V5R2. And finally, reclaim storage of directories is not allowed until the system is fully converted (you must use the OMIT(*DIR) option). CWA is a self-healing technology that is designed to repair much of the file system as it is being converted. Therefore, CWA could be considered a scaled-down version of directory reclaim storage. That's it! These restrictions are minor in comparison to a full, dedicated conversion of all file systems.

CWA Performance Impacts

Are you worried about CWA impacting your application or system performance? Don't be! CWA starts running with the lowest possible priority (99). This allows it to use only the spare cycles on the system without being starved indefinitely. If CWA is too slow for your liking, the following Convert Directory (CVTDIR) command can be used to adjust the priority of the CWA thread.

CVTDIR OPTION(*CHGPTY) RUNPTY(xx)  


The command below can also be used to monitor the progress of CWA, as shown in Figure 1.

CVTDIR OPTION(*CHECK)

http://www.mcpressonline.com/articles/images/2002/CwaArticleSentToMcPress%20V4Nov200400.png

Figure 1: Monitor the progress of CWA on a particular system. (Click image to enlarge.)

This will indicate what types of directories your file systems have as well as which file system CWA is converting. If you want more details about the progress of CWA, you can check the messages in the QFILESYS1 job log or the QSYSOPR message queue.

Is CWA Still Running?

Since CWA is converting directories in file systems that are in use, it may appear at times that CWA is not running. Don't let the apparent lack of progress concern you. The CWA thread's priority is very low, and the system might be very active or it may be heavily using the directory being converted. It is also possible that you just performed an IPL, after which CWA waits 30 minutes before starting or resuming the conversion. If none of these appear to match your situation, the following can also cause a delay in CWA's progress:

  • IFS save or restore
  • Multi-process licensed program install
  • An open *TYPE1 directory object
  • An "in-use" *TYPE1 stream file network server storage space (NWSSTG)

These situations are all temporary, and once they're complete, CWA continues with the conversion. In many cases, a delay is not even noticeable.

CWA vs. Dedicated Conversion

So how does CWA stack up against dedicated conversion? The following chart highlights the comparison.

CWA vs. Dedicated Conversion
CWA
DC
Runs automatically without your intervention
Must be run via a V5R2 command (CVTDIR) or a V5R1 API (QP0FCVT2)
Runs in the background while users and applications are performing normal file system operations
Requires a restricted state environment (no file system operations can be performed during the conversion)
The only conversion option available in V5R3
Not available in V5R3
Runs at a low priority (99) in a single thread to reduce I/O and memory impacts
Runs as fast as possible with multiple threads consuming as much system disk space and memory as possible, up to 400 threads
File systems may contain both *TYPE1 and *TYPE2 directories at the same time
File systems contain either *TYPE1 or *TYPE2 directories, not both
The file systems are always available!
System downtime is required.

 

CWA Conversion Time Estimates

You may be wondering how long it will take CWA to convert all the file systems on your machine completely to *TYPE2 directories. The following table shows actual CWA results from a number of IBM Rochester laboratory systems. It should be noted that the total conversion time does not include the 30-minute wait after an IPL. Also, the CWA conversion elapsed time measurements were performed on various systems in the laboratory with varying degrees of workloads. Your performance results may be similar, but will vary.

CWA Conversion Times from IBM Rochester Laboratory Systems
System
Total *TYPE1 Directory Objects
Total Object Links
Total Conversion Time
ibmroch1
8,123
105,778
40 minutes
ibmroch2
185,853
1,330,798
34 hours
ibmroch3
9,627
28,778
36 minutes
ibmroch4
2,243
29,086
24 minutes
ibmroch5
11,505
55,434
55 minutes
ibmroch6
7,093
36,502
65 minutes
ibmroch7
148,874
685,524
23 hours

 

CWA vs. Competition

File system conversion is not a new concept. Most operating systems provide either an install-time or dedicated file system converter to allow users to upgrade to the latest file system technology. For example, Windows offers a FAT- or FAT32-to-NTFS conversion utility (Convert.exe) that is similar to OS/400's dedicated conversion in that the file system cannot be in use while being converted. By eliminating this restriction, CWA can provide the latest i5/OS V5R3 file system technology via an autonomic file system conversion.

CWA contributes to V5R3's strength as an on-demand, reliable, and highly available operating environment. Who says you can't have your cake and eat it too? CWA has set the bar high for IBM and the industry.

For more information on CWA and *TYPE2 directories, check out the V5R3 iSeries Information Center (Files and File Systems > Integrated File System > Convert Directories from *TYPE1 to *TYPE2).

Richard Theis is an IBM software engineer on the i5/OS Integrated File System (IFS) team. His primary focus is the "root" (/), QOpenSys, and user-defined file systems. He can be contacted at This email address is being protected from spambots. You need JavaScript enabled to view it..

Richard Theis
Richard Theis is a software engineer at IBM. His duties include designing, developing and testing core IBM systems software. Richard joined IBM in 2001 after receiving a B.A. in mathematics and a B.S. in computer science.

 

 

He has worked on numerous i5/OS projects involving the Integrated File System (IFS), NFS, and POSIX.  Richard can be reached at rtheis@us.ibm.com.

 

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

RESOURCE CENTER

  • WHITE PAPERS

  • WEBCAST

  • TRIAL SOFTWARE

  • White Paper: Node.js for Enterprise IBM i Modernization

    SB Profound WP 5539

    If your business is thinking about modernizing your legacy IBM i (also known as AS/400 or iSeries) applications, you will want to read this white paper first!

    Download this paper and learn how Node.js can ensure that you:
    - Modernize on-time and budget - no more lengthy, costly, disruptive app rewrites!
    - Retain your IBM i systems of record
    - Find and hire new development talent
    - Integrate new Node.js applications with your existing RPG, Java, .Net, and PHP apps
    - Extend your IBM i capabilties to include Watson API, Cloud, and Internet of Things


    Read Node.js for Enterprise IBM i Modernization Now!

     

  • Profound Logic Solution Guide

    SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation.
    Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects.
    The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the companyare not aligned with the current IT environment.

    Get your copy of this important guide today!

     

  • 2022 IBM i Marketplace Survey Results

    Fortra2022 marks the eighth edition of the IBM i Marketplace Survey Results. Each year, Fortra captures data on how businesses use the IBM i platform and the IT and cybersecurity initiatives it supports.

    Over the years, this survey has become a true industry benchmark, revealing to readers the trends that are shaping and driving the market and providing insight into what the future may bring for this technology.

  • Brunswick bowls a perfect 300 with LANSA!

    FortraBrunswick is the leader in bowling products, services, and industry expertise for the development and renovation of new and existing bowling centers and mixed-use recreation facilities across the entertainment industry. However, the lifeblood of Brunswick’s capital equipment business was running on a 15-year-old software application written in Visual Basic 6 (VB6) with a SQL Server back-end. The application was at the end of its life and needed to be replaced.
    With the help of Visual LANSA, they found an easy-to-use, long-term platform that enabled their team to collaborate, innovate, and integrate with existing systems and databases within a single platform.
    Read the case study to learn how they achieved success and increased the speed of development by 30% with Visual LANSA.

     

  • Progressive Web Apps: Create a Universal Experience Across All Devices

    LANSAProgressive Web Apps allow you to reach anyone, anywhere, and on any device with a single unified codebase. This means that your applications—regardless of browser, device, or platform—instantly become more reliable and consistent. They are the present and future of application development, and more and more businesses are catching on.
    Download this whitepaper and learn:

    • How PWAs support fast application development and streamline DevOps
    • How to give your business a competitive edge using PWAs
    • What makes progressive web apps so versatile, both online and offline

     

     

  • The Power of Coding in a Low-Code Solution

    LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed.
    Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

    • Discover the benefits of Low-code's quick application creation
    • Understand the differences in model-based and language-based Low-Code platforms
    • Explore the strengths of LANSA's Low-Code Solution to Low-Code’s biggest drawbacks

     

     

  • Why Migrate When You Can Modernize?

    LANSABusiness users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.
    In this white paper, you’ll learn how to think of these issues as opportunities rather than problems. We’ll explore motivations to migrate or modernize, their risks and considerations you should be aware of before embarking on a (migration or modernization) project.
    Lastly, we’ll discuss how modernizing IBM i applications with optimized business workflows, integration with other technologies and new mobile and web user interfaces will enable IT – and the business – to experience time-added value and much more.

     

  • UPDATED: Developer Kit: Making a Business Case for Modernization and Beyond

    Profound Logic Software, Inc.Having trouble getting management approval for modernization projects? The problem may be you're not speaking enough "business" to them.

    This Developer Kit provides you study-backed data and a ready-to-use business case template to help get your very next development project approved!

  • What to Do When Your AS/400 Talent Retires

    FortraIT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators is small.

    This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn:

    • Why IBM i skills depletion is a top concern
    • How leading organizations are coping
    • Where automation will make the biggest impact

     

  • Node.js on IBM i Webinar Series Pt. 2: Setting Up Your Development Tools

    Profound Logic Software, Inc.Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. In Part 2, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Attend this webinar to learn:

    • Different tools to develop Node.js applications on IBM i
    • Debugging Node.js
    • The basics of Git and tools to help those new to it
    • Using NodeRun.com as a pre-built development environment

     

     

  • Expert Tips for IBM i Security: Beyond the Basics

    SB PowerTech WC GenericIn this session, IBM i security expert Robin Tatam provides a quick recap of IBM i security basics and guides you through some advanced cybersecurity techniques that can help you take data protection to the next level. Robin will cover:

    • Reducing the risk posed by special authorities
    • Establishing object-level security
    • Overseeing user actions and data access

    Don't miss this chance to take your knowledge of IBM i security beyond the basics.

     

     

  • 5 IBM i Security Quick Wins

    SB PowerTech WC GenericIn today’s threat landscape, upper management is laser-focused on cybersecurity. You need to make progress in securing your systems—and make it fast.
    There’s no shortage of actions you could take, but what tactics will actually deliver the results you need? And how can you find a security strategy that fits your budget and time constraints?
    Join top IBM i security expert Robin Tatam as he outlines the five fastest and most impactful changes you can make to strengthen IBM i security this year.
    Your system didn’t become unsecure overnight and you won’t be able to turn it around overnight either. But quick wins are possible with IBM i security, and Robin Tatam will show you how to achieve them.

  • Security Bulletin: Malware Infection Discovered on IBM i Server!

    SB PowerTech WC GenericMalicious programs can bring entire businesses to their knees—and IBM i shops are not immune. It’s critical to grasp the true impact malware can have on IBM i and the network that connects to it. Attend this webinar to gain a thorough understanding of the relationships between:

    • Viruses, native objects, and the integrated file system (IFS)
    • Power Systems and Windows-based viruses and malware
    • PC-based anti-virus scanning versus native IBM i scanning

    There are a number of ways you can minimize your exposure to viruses. IBM i security expert Sandi Moore explains the facts, including how to ensure you're fully protected and compliant with regulations such as PCI.

     

     

  • Encryption on IBM i Simplified

    SB PowerTech WC GenericDB2 Field Procedures (FieldProcs) were introduced in IBM i 7.1 and have greatly simplified encryption, often without requiring any application changes. Now you can quickly encrypt sensitive data on the IBM i including PII, PCI, PHI data in your physical files and tables.
    Watch this webinar to learn how you can quickly implement encryption on the IBM i. During the webinar, security expert Robin Tatam will show you how to:

    • Use Field Procedures to automate encryption and decryption
    • Restrict and mask field level access by user or group
    • Meet compliance requirements with effective key management and audit trails

     

  • Lessons Learned from IBM i Cyber Attacks

    SB PowerTech WC GenericDespite the many options IBM has provided to protect your systems and data, many organizations still struggle to apply appropriate security controls.
    In this webinar, you'll get insight into how the criminals accessed these systems, the fallout from these attacks, and how the incidents could have been avoided by following security best practices.

    • Learn which security gaps cyber criminals love most
    • Find out how other IBM i organizations have fallen victim
    • Get the details on policies and processes you can implement to protect your organization, even when staff works from home

    You will learn the steps you can take to avoid the mistakes made in these examples, as well as other inadequate and misconfigured settings that put businesses at risk.

     

     

  • The Power of Coding in a Low-Code Solution

    SB PowerTech WC GenericWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed.
    Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

    • Discover the benefits of Low-code's quick application creation
    • Understand the differences in model-based and language-based Low-Code platforms
    • Explore the strengths of LANSA's Low-Code Solution to Low-Code’s biggest drawbacks

     

     

  • Node Webinar Series Pt. 1: The World of Node.js on IBM i

    SB Profound WC GenericHave you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.
    Part 1 will teach you what Node.js is, why it's a great option for IBM i shops, and how to take advantage of the ecosystem surrounding Node.
    In addition to background information, our Director of Product Development Scott Klement will demonstrate applications that take advantage of the Node Package Manager (npm).
    Watch Now.

  • The Biggest Mistakes in IBM i Security

    SB Profound WC Generic The Biggest Mistakes in IBM i Security
    Here’s the harsh reality: cybersecurity pros have to get their jobs right every single day, while an attacker only has to succeed once to do incredible damage.
    Whether that’s thousands of exposed records, millions of dollars in fines and legal fees, or diminished share value, it’s easy to judge organizations that fall victim. IBM i enjoys an enviable reputation for security, but no system is impervious to mistakes.
    Join this webinar to learn about the biggest errors made when securing a Power Systems server.
    This knowledge is critical for ensuring integrity of your application data and preventing you from becoming the next Equifax. It’s also essential for complying with all formal regulations, including SOX, PCI, GDPR, and HIPAA
    Watch Now.

  • Comply in 5! Well, actually UNDER 5 minutes!!

    SB CYBRA PPL 5382

    TRY the one package that solves all your document design and printing challenges on all your platforms.

    Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product.

    Request your trial now!

  • Backup and Recovery on IBM i: Your Strategy for the Unexpected

    FortraRobot automates the routine tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:
    - Simplified backup procedures
    - Easy data encryption
    - Save media management
    - Guided restoration
    - Seamless product integration
    Make sure your data survives when catastrophe hits. Try the Robot Backup and Recovery Solution FREE for 30 days.

  • Manage IBM i Messages by Exception with Robot

    SB HelpSystems SC 5413Managing messages on your IBM i can be more than a full-time job if you have to do it manually. How can you be sure you won’t miss important system events?
    Automate your message center with the Robot Message Management Solution. Key features include:
    - Automated message management
    - Tailored notifications and automatic escalation
    - System-wide control of your IBM i partitions
    - Two-way system notifications from your mobile device
    - Seamless product integration
    Try the Robot Message Management Solution FREE for 30 days.

  • Easiest Way to Save Money? Stop Printing IBM i Reports

    FortraRobot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing.
    Manage your reports with the Robot Report Management Solution. Key features include:

    - Automated report distribution
    - View online without delay
    - Browser interface to make notes
    - Custom retention capabilities
    - Seamless product integration
    Rerun another report? Never again. Try the Robot Report Management Solution FREE for 30 days.

  • Hassle-Free IBM i Operations around the Clock

    SB HelpSystems SC 5413For over 30 years, Robot has been a leader in systems management for IBM i.
    Manage your job schedule with the Robot Job Scheduling Solution. Key features include:
    - Automated batch, interactive, and cross-platform scheduling
    - Event-driven dependency processing
    - Centralized monitoring and reporting
    - Audit log and ready-to-use reports
    - Seamless product integration
    Scale your software, not your staff. Try the Robot Job Scheduling Solution FREE for 30 days.