19
Fri, Apr
5 New Articles

Directory Conversion Without the Downtime

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 This email address is being protected from spambots. You need JavaScript enabled to view it..

 

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

Book Reviews

Resource Center

  • SB Profound WC 5536 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. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • 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 company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY 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. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) 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:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. 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:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot 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:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business 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.

  • 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:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic 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.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? 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: