z/OS

z/OS

z/OS

IBM z/OS is a widely-used mainframe operating system designed for a stable, secure and highly available environment for running mission-critical applications.

 View Only

Managing hardware and software I/O configuration changes on z/OS when using IBM Infrastructure Management for Z and LinuxONE

By Michael Grötzner posted 09/23/26 08:20 AM

  
A practical guide for z/OS system programmers covering HCD activation methods, and how to use them in an environment where IBM Infrastructure Management for Z and LinuxONE is used to manage the hardware I/O configuration. The handling is described in three end-to-end change scenarios. It reflects the state as of IBM Infrastructure Management 1.1 and IBM Terraform Self-Managed for Z and LinuxONE Version 2.0.0.

Contents
  1. Hardware and Software I/O Configuration Overview
  2. Activation Methods
  3. The Modern Approach using IBM Infrastructure Management for Z and LinuxONE
  4. Prerequisites and IBM Infrastructure Management Baseline Setup
  5. Scenario 1 — Hardware Changes via IBM Infrastructure Management
  6. Scenario 2 — Hardware Changes Without IBM Infrastructure Management (HCD managed resources)
  7. Scenario 3 — Hardware Changes via IBM Infrastructure Management Requiring Software I/O Changes
  8. IODF Activation Reference Procedure
  9. Further Reading

1. Hardware and Software I/O Configuration Overview

On IBM Z systems, I/O configuration is the description of every I/O resource, for example channel paths, control units, and devices, and how these resources are made available to processors and operating systems. This configuration is stored in a central repository called the I/O Definition File (IODF), maintained by the Hardware Configuration Definition (HCD) component. HCD replaced the older model of maintaining separate IOCP and MVSCP data sets and consolidates all configuration data into a single, validated source of truth.

Within a single IODF, I/O configuration data is split into two conceptually distinct areas:

Hardware I/O Configuration

This information describes the physical and logical I/O topology as seen by the channel subsystem (CSS). It covers channel paths (CHPIDs), the logical channel subsystems (LCSSs) and partitions they belong to, the control units they connect to, and the devices attached to those control units and partitions. When a processor performs a Power-On Reset (POR), it reads this information from an I/O Configuration Data Set (IOCDS) (a compiled form of the of the hardware configuration) to the hardware support area (HSA). The hardware configuration establishes what resources physically exist and how they are connected, independent of any operating system.

Software I/O Configuration

This information describes how z/OS or z/VM operating systems uses the hardware resources defined to by the hardware. For z/OS, it includes parameters and feature for devices used as unit control block (UCB) data, Eligible Device Tables (EDTs), esoteric and generic device groups, and console definitions. At IPL, z/OS reads this information directly from the production IODF to build the in-memory control blocks that govern I/O operations. Keeping hardware and software information in a single IODF ensures consistency and enables cross-validation.

Work IODF vs. Production IODF Key concepts A work IODF is the editable version of the configuration repository where changes are made using the HCD dialog. The configuration in that work IODF might not be fully validated to allow easier editing configurations in any order.
A production IODF is built from the work IODF, is read-only, passes full post-validation (including IOCP channel-packaging rules), and is the input used for IPL and dynamic activation.

2. Activation Methods

Once a production IODF is built and verified, it's configuration changes must be activated to make it visible to the hardware and/or operating system. HCD provides four distinct activation paths, each with different scope, disruption level, and prerequisites.

Method Scope Disruption Prerequisite
Static via POR Hardware Full processor restart IOCDS written from the IODF
Software-Only Software, e.g. z/OS UCBs and EDTs only, either local, sysplex-wide, or HMC-wide None (dynamic) IODF token matches active z/OS configuration
Full activation Hardware and Software, either local, sysplex-wide, or HMC-wide None (dynamic) Active processor token matches HSA token and IODF token matches active z/OS configuration
Hardware-Only (remote) Hardware None (dynamic) z/OS 2.4 or later, IBM z14 or later, no HCD instance on remote processor, some restrictions apply

Static Activation via Power-On Reset (POR)

The traditional and most disruptive method. From the production IODF, HCD invokes the IOCP program to generate an IOCDS and writes it to the processor's support element. The new I/O configuration only becomes active when the processor performs a POR (Power-On Reset), which restarts all LPARs. This method is required for changes that cannot be applied dynamically, for example, certain CHPID-type changes, or initial configuration of a new processor. Although disruptive, the POR guarantees a clean hardware state and removes any dependency on the current runtime token.

For z/OS, the software configuration becomes active at the subsequent IPL (Initial Program Load), when z/OS reads the production IODF specified in the LOADxx member of SYS1.PARMLIB or SYSn.IPLPARM.

Software-Only Activation

This method is used when hardware is already correctly configured but z/OS control blocks need to be updated, for example, adding a new OS device definition for a device that already exists in hardware, or changing esoteric group membership. It is also used when you run multiple z/OS instances on the same processor. Then you do software-only activation on all but a last instance, and on the last instance you perform the full activation. Select option 2.3, Activate software configuration only. This is the safest and fastest method for software-only changes and can be applied sysplex-wide in a single operation.

Full Activation

When the currently active IODF token matches the token stored in the hardware system area and the IODF token matches the active z/OS configurationn, HCD can apply both hardware and software changes dynamically, without POR or IPL while the hardware and operating system remains running. HCD computes the delta between the currently active IODF and the new target production IODF, then instructs the channel subsystem and z/OS operating system to process the differences only. From the HCD Activate or Verify Configuration panel (Option 2), select option 1 Activate new hardware and software configuration. Define following key parameters:

  • Test only (Yes/No) determines whether the activation would succeed without committing any changes or whether the changes should be implemented. Always run test-only (Test only YES) first.
  • Allow hardware deletes (FORCE / FORCE=DEVICE) is required to remove hardware objects. Deleting hardware configuration elements can be disruptive for a partition and with this option HCD adds a safety feature. Use this option with caution.
  • Delete partition access to CHPIDs unconditionally (FORCE=CANDIDATE) removes partitions access to CHPID and PCIe functions when the objects themselves remain configured. Use this option also with caution.
  • Write IOCDS instructs HCD to write the new configuration to an IOCDS after the dynamic changes are applied. That way the hardware configuration survives the next POR.
  • Switch IOCDS for next POR makes the newly written IOCDS the active one at next POR.

If activation fails mid-way HCD automatically tries to recover and revert all changes that have already been applied. In case that HCD cannot continue, next time it presents recovery options. Recovery actions are Resume (forward recovery from the failure point to the target configuration) or Reset (backward recovery, rolling back to the source configuration).

Hardware-Only Activation

This method is available since z/OS 2.4 on IBM z14 and later. It allows HCD on a z/OS system to push hardware I/O configuration changes to a remote processor containing a coupling facility LPAR, a Linux on IBM Z partition, or a z/TPF partition, when no z/OS or z/VM instance is running on that processor. From the HCD Processor Cluster List, option 2.11, select the target processor and choose action a Activate hardware changes only. The source and target IODFs are specified, and the channel subsystem of the remote partition is updated dynamically. This is particularly valuable for adding coupling connectivity to coupling facilities without scheduling downtime.


3. The Modern Approach using IBM Infrastructure Management for Z and LinuxONE

Manually editing I/O configurations through an ISPF dialog has served IBM Z customers for decades, but the industry is moving toward Infrastructure-as-Code (IaC), declaring the desired state of infrastructure in version-controlled files and using automation to enforce that state. Tools like HashiCorp Terraform have become the standard for this model in cloud and distributed environments.

IBM Infrastructure Management for Z and LinuxONE (IBM Infrastructure Management) brings that paradigm to IBM Z hardware I/O configuration and partition lifecycle management. IBM Infrastructure Management exposes IBM Z I/O resources, for example CHPIDs, partitions, and related hardware objects, as Terraform resources, allowing configuration changes to be expressed as declarative Terraform code, reviewed in pull requests, version-controlled in Git, and applied through automated pipelines. IBM Infrastructure Management integrates with HCD by maintaining an own IODF. It reads the current hardware I/O configuration, models it as Terraform state, applies planned changes to a work IODF, and produces an updated IODF that can then be built into a production IODF using standard HCD procedures.

This approach delivers several benefits over the traditional HCD dialog workflow:

  • Audit trail by default when every change is a Git commit with author, timestamp, and description.
  • Change review using terraform plan that produces a human-readable diff before any change is applied, equivalent to an HCD compare report but generated automatically.
  • Automation and pipeline integration by changes that can be triggered by CI/CD pipelines, approval workflows, and change-management tooling without manual ISPF interaction.
  • Consistent, repeatable configuration where the desired state is declared once and enforced consistently across environments.
  • Simplification of the configuration model that allows to abstracts away e.g. logical channel subsystems (LCSS), control units, or CHPIDs.
IBM Infrastructure Management and the industry trend Terraform's provider model has made it the lingua franca of infrastructure automation. By offering a Terraform provider for IBM Z platform management, IBM Infrastructure Management positions IBM Z and LinuxONE platform management alongside modern DevOps practices, enabling the same tool-chains used for cloud infrastructure to manage the IBM Z infrastructure. This is a significant step toward unified, automated infrastructure governance.
Documentation note The scenarios below are based on the IBM Infrastructure Management 1.1.0 documentation at ibm.com/docs/en/iim/1.1.0. Specific Terraform resource names, provider attributes, and the exact rebase command syntax should be verified against the current documentation for your IBM Infrastructure Management version. This article uses the term rebase to mean the operation of re-importing a newly activated production IODF into IBM Infrastructure Management as the new Terraform state baseline.

IBM Infrastructure Management today allows to configure storage, networks, and partitions. z/OS instances usually need additional I/O, for example coupling connections to a coupling facility, consoles, tapes, or Channel-to-Channel (CTC) devices. In the current version, these additional devices must still be managed using traditional HCD. All z/OS systems usually have a mix of these different I/O types and hence IBM Infrastructure Management-managed resources and HCD-managed resources. z/OS software I/O configuration is not covert by IBM Infrastructure Management. It remains fully under the control of HCD.

HCD is covering hardware configuration. Making this configuration operational requires the IBM Z Hardware Management Console (HMC), e.g to create partition activation profile and to start or stop a partition. IBM Infrastructure Management interfaces with the HMC and allows you to automate partition lifecycle management together with hardware I/O configuration in one product.


4. Prerequisites and IBM Infrastructure Management Baseline Setup

Based on a mix of responsibilities for different I/O configuration elements there are different change scenarios, depending on which parts of the configuration you are updating. To avoid complexity, it is recommended that you follow follow one of the three scenarios described below.

All three scenarios below assume the following starting state:

  • IBM Infrastructure Management is installed and configured with access to your z/OS HCD environment. Be aware that IBM Infrastructure Management also requires a connection to your Hardware Management Console (HMC).
  • IBM Terraform Self-Managed for Z and LinuxONE has been set-up to work with your IBM Infrastructure Management instance.
  • IBM Infrastructure Management has been initialized against the currently active production IODF. That is, IBM Infrastructure Management's Terraform state reflects the configuration that is live on the system. This is the IBM Infrastructure Management baseline.
  • Changes to hardware I/O configuration are made through IBM Infrastructure Management for IBM Infrastructure Management-managed resources. Non-IBM Infrastructure Management-managed resources continue to be changed through the standard HCD dialog.
  • Your site has an established IODF activation procedure. A reference procedure is described in Section 8.


5. Scenario 1 — Hardware Changes via IBM Infrastructure Management

Scenario: Hardware I/O changes to IBM Infrastructure Management-managed resources, no software I/O changes required

This scenario covers the common case for adding, modifying, or removing hardware I/O objects (CHPIDs, control units, devices) that are managed by IBM Infrastructure Management, where the changes do not require new or updated Operating System device definitions in z/OS.


Step 1 — Author the Change in Terraform

Edit the Terraform configuration files in your version-controlled repository to declare the desired hardware I/O state. For example, adding a new CHPID or changing the access list of an existing one. Raise a pull request, have the change reviewed, and merge it when approved. This step provides the audit trail and approval record for the change.

Step 2 — Plan and Apply via IBM Infrastructure Management

Run terraform plan against the IBM Terraform for Z provider. Review the plan output carefully. It will show every hardware object that will be added, modified, or deleted. When satisfied, run terraform apply. IBM Infrastructure Management applies the changes to its HCD work IODF, producing an updated work IODF that reflects the desired state.

Step 3 — Build the Production IODF

Using HCD, build a production IODF from the updated work IODF:

  1. From the HCD Primary Task Selection panel, select Activate or process configuration data.
  2. Select Build a production IODF. HCD performs full post-validation, including IOCP channel-packaging rule checking.
  3. Review the message list. Understand severity levels before proceeding

Step 4 — Handle Errors and Warnings

HCD applies the following severity model during the production IODF build:

Severity Code Effect on Build Action Required
Terminating T Build fails and no production IODF created Correct the error by updating the terraform configuration file and restart from Step 1.
Error E Build fails and no production IODF created Correct the error by updating the terraform configuration file and restart from Step 1.
Severe Warning S Production IODF created Review carefully; correct if the condition is unintended
Warning W Production IODF created Review; acceptable to proceed if intentional
Informational I Production IODF created Informational only; no action needed


For errors (T/E), use the HCD message action e (Explain message) to get details, correct the work IODF, and rebuild. Such situation usually arise if your intended configuration does not adhere to IBM Z hardware limits or restrictions. Correct your desired target state input for terraform to adhere to hardware limits and re-start from Step 1.

Severe warnings (S) that reflect genuine configuration problems should also be corrected before proceeding to activation.

Important: Do not proceed to activation if there are outstanding Severe warnings (S) that are not understood. Document any intentionally accepted warnings in the activity log.

Step 5 — Verify Changes Using HCD Compare Report

Before activating, generate an HCD compare report to confirm that the production IODF contains exactly the intended changes and nothing else:

  1. From HCD Primary Task Selection, specify the new (target) production IODF created in Step 3 and then select Print or compare configuration data.
  2. Select Compare IODFs.
  3. Specify the currently active (source) production IODF for compaprison.
  4. Select the appropriate report type(s) Processor Compare for hardware changes
  5. Use the Limit option to scope the report to the specific processor or channel subsystem if helpful.
  6. Review the output. The compare report shows additions, deletions, and modifications for each HCD object type. Confirm that the delta matches the planned Terraform change and nothing unintended has been introduced.

Step 6 — Activate Using Your Established Procedure

With the production IODF verified, activate it using the procedure described in Section 8. For pure hardware changes on a running system, this will typically be a dynamic hardware + software activation or hardware-only dynamic activation. Activating software configuration is optional, and only needed if you want to stay in sync with hardware and software tokens of the IODF.

Step 7 — Re-base IBM Infrastructure Management to the New Active IODF

After successful activation, the production IODF is the new system baseline. IBM Infrastructure Management must be updated to reflect this new baseline so that future Terraform operations are aligned with the current live state. Perform the IBM Infrastructure Management re-base operation against the newly activated production IODF. This re-imports the active configuration into IBM Infrastructure Management's state for Terraform, making it the new reference point for subsequent terraform plan and terraform apply operations.

Re-base timing: Always re-base IBM Infrastructure Management immediately after a successful activation. Running terraform plan against a stale baseline will produce misleading diffs and could cause IBM Infrastructure Management to attempt to revert changes that have already been applied. Consult the IBM Infrastructure Management 1.1.0 documentation for the exact re-base command and options.

6. Scenario 2 — Hardware Changes Without IBM Infrastructure Management (HCD-Managed Resources)

Scenario: Hardware I/O changes to resources not managed by IBM Infrastructure Management, using the traditional HCD dialog

Not all hardware I/O objects can or will necessarily be managed by IBM Infrastructure Management from day one. Or you need to do software I/O configuration changes that do not require hardware changes. This scenario covers these changes to resources that remain under direct HCD control, made the traditional way through the ISPF HCD dialog while IBM Infrastructure Management is also active in the environment. The key requirement is that after activation, IBM Infrastructure Management is re-based to stay aligned with the new live configuration.

Step 1 — Make Changes in HCD

Open the currently active production IODF in the HCD dialog and copy it to a new work IODF. Make the required hardware changes, for example add, modify, or remove CHPIDs, control units, or devices as needed. Then make the required operating system changes to parameters and features, esoterics, or NIP consoles as needed. HCD validates each change at entry time, providing immediate feedback. Add notes to the activity log describing the change, its purpose, and the associated change record, if needed.

Step 2 — Build the Production IODF

Build a production IODF from the updated work IODF, following the same process as described in Scenario 1, Steps 3–4. Resolve all error (T/E) messages. Review and accept (or resolve) S/W messages. Document accepted warnings in the activity log.

Step 3 — Verify Using HCD Compare Report

Run the HCD compare report against the new production IODF and the currently active production IODF, as described in Scenario 1, Step 5. Confirm the delta is as intended.

Step 4 — Activate Using Your Established Procedure

Activate the new production IODF using the procedure in Section 8. There is no procedural difference here from any standard HCD-managed activation. Here, activating software configuration is required.

Step 5 — Re-base IBM Infrastructure Management to the New Active IODF

This step is critical. Even though the change was not made through IBM Infrastructure Management, the live hardware I/O configuration has changed. IBM Infrastructure Management's state for Terraform must be re-based to the new active production IODF. Without this step, the next terraform plan will show the manually applied changes as drift and may attempt to revert them.

Process discipline: In environments where both IBM Infrastructure Management-managed and non-IBM Infrastructure Management-managed changes occur, the re-base step must be a mandatory part of every activation procedure, regardless of whether IBM Infrastructure Management was involved in making the change. Consider adding it to your site's change closure checklist.

7. Scenario 3 — Hardware Changes via IBM Infrastructure Management Requiring Software I/O Configuration Changes

Scenario: IBM Infrastructure Management hardware changes that also require new or modified z/OS OS device definitions

Some hardware changes introduce new devices that do not yet have corresponding z/OS OS configuration, for example, adding a new DASD control unit with attached volumes, or connecting new tape devices. The devices exist in the hardware configuration but z/OS cannot use them until OS device definitions (UCBs, EDT entries, esoteric groups) are added to the IODF. This scenario handles that combined change from scenario 1 and 2.

The approach uses a two-phase IODF build. First build a temporary production IODF to validate the hardware changes, then add the OS device definitions and build the final production IODF for activation. This avoids a situation where hardware and software changes are interleaved in a single build, which can complicate error diagnosis.

Phase A — Apply and Validate Hardware Changes

  1. Author and apply the Terraform change via IBM Infrastructure Management, exactly as in Scenario 1 Steps 1–2. The result is an updated work IODF with the new hardware objects defined.
  2. Build a temporary production IODF from the updated work IODF. At this stage the new devices are present in the hardware configuration but have no OS device definitions.
  3. Review T/E messages and resolve any hardware-layer errors. The temporary production IODF should be clean from a hardware perspective.
  4. Run the HCD compare report between the temporary production IODF and the currently active production IODF. Verify that only the expected hardware changes are present.

Phase B — Add OS Device Definitions

  1. Create a new work IODF from the temporary production IODF in the HCD dialog. Navigate to the OS configuration section for each affected z/OS image.
  2. Add OS device definitions for the new hardware devices. Define parameters and features, assign devices to the appropriate EDT, add them to relevant esoteric and generic device groups, define console attributes if applicable. Ensure device numbers align with the hardware definitions.
  3. Build the final production IODF from the updated work IODF. This build now includes both the hardware changes and the new OS device definitions. Resolve all T/E messages. Review warnings.
  4. Run the HCD compare report between the final production IODF and the currently active production IODF. The report should now show both the hardware additions and the corresponding OS configuration additions. Verify both layers are correct.

Phase C — Activate and Onboard Devices in z/OS

  1. Activate the final production IODF using your established procedure (Section 8). Because this change involves both hardware and software, the activation will be a dynamic hardware + software activation. z/OS will build the new UCBs and update the EDT for the new devices as part of the activation.
  2. Bring the new devices online in z/OS. After dynamic activation, new devices are defined but offline. Issue the appropriate VARY command to bring them online:
    VARY 
    devnum
    ,ONLINE
    For new DASD volumes, follow with the appropriate ICKDSF initialization steps, if needed. For tape devices, verify operational status with the appropriate operator command.
  3. Verify device availability. Use D U,DASD,ONLINE or D U,TAPE,ONLINE to confirm the new devices are online and accessible. Check for any IOS messages indicating configuration mismatches.
  4. Application and subsystem changes are site-specific. Adding devices to z/OS may require additional steps depending on your environment, e.g. updating JES spool configurations, SMS storage group definitions, HSM migration hierarchies, catalog aliases, or application-specific device lists. These are outside the scope of HCD and IBM Infrastructure Management and should be handled per your site's procedures.
  5. Rebase IBM Infrastructure Management to the newly activated final production IODF, as in Scenario 1 Step 7.
Why the two-phase approach? Building a temporary production IODF to validate hardware changes in isolation reduces the risk of OS-layer errors masking hardware errors (or vice versa) during diagnosis. It also provides a clean rollback point for software definitions.
You can also run both phases independently, first completing the hardware changes with Scenario 1, and then performing the rest using Scenario 2. This requires usually more time and may exceed your change window for the activation.

8. IODF Activation Reference Procedure

The following procedure is the reference activation procedure referenced by all three scenarios. Adapt it to your site's change management requirements, maintenance windows, and RACF authorization setup.

Pre-Activation Checklist

  • Production IODF has been built successfully (no T/E messages outstanding).
  • HCD compare report has been reviewed and approved.
  • Change record is open and approved.
  • Affected LPARs and volumes have been identified; any required preparatory VARYs have been done.
  • System programmer with RACF authority to activate (MVS.ACTIVATE profile in OPERCMDS class) is available.

In most environments you want to stay in sync for hardware and software configuration having the hardware and software tokens from the same production IODF. This requires software-only and full activation. You start with the software-only activation on all z/OS and z/VM operating systems on a processor, except a last one. On the last operating system instance, you perform a full activation, changing software configuration of that instance and the hardware configuration for all partitions of that processor.

When you process an activate, it is recommended that you start with a test activate to verify that all preparation steps have already successfully been processed.

Step 1 — Test-Only Activation

  1. On the HCD Primary Task Selection menu, enter the name of the new target production IODF
  2. Select Activate or process configuration data (Option 2), then Activate or verify configuration dynamically (Option 6).
  3. On the Activate or Verify Configuration panel, check the status message. If the active IODF matches the HSA token, both hardware and software changes are allowed. Select option 1. If only software changes are allowed, select option 3.
  4. On the Activate New Hardware and Software Configuration panel, populate the target processor name, operating system configuration name, and EDT id. HCD usually proposes the same names that are currently active from the activate IODF.
  5. Set Test only = Yes. Leave all FORCE options at No as they do not have any effects here.
  6. Press Enter. Review the message list. If the test completes with no E or T messages, proceed to live activation. If errors appear, investigate and resolve these issues and perform a new test activate.

Step 2 — Live Activation

  1. On the same panel, set Test only = No.
  2. Set Allow hardware deletes = Yes only if the change includes intentional hardware object removals as indicated by the test activate.
  3. Set Write IOCDS = Yes to write the new hardware configuration to the HSA, ensuring it survives the next POR. Optionally set Switch IOCDS for next POR = Yes.
  4. Press Enter to execute the activation.
  5. Monitor the message list. A successful activation updates the HSA token. The new IODF is now the active configuration for software and hardware.

Step 3 — Activation Failure Recovery

If the activation fails mid-way, HCD presents two recovery options:

  • Resume (forward recovery): Continues applying changes from the point of failure. Use when the failure was transient (e.g., a temporarily busy resource) and the partial state is understood.
  • Reset (backward recovery): Rolls back all applied changes to restore the source configuration. Use when the failure indicates a configuration problem and a clean rollback is needed.

Step 4 — Sysplex-Wide Activation (if applicable)

For changes that affect multiple z/OS systems in a Parallel Sysplex, use the HCD sysplex-wide activation:

  1. From the Activate or Verify Configuration panel, select Activate configuration sysplex-wide.
  2. The Active Sysplex Member List is displayed. Select the target systems.
  3. Apply the activation action to each selected system. Software-only activation can typically be applied to all members simultaneously; hardware changes should follow your site's sequencing policy.
  4. Review the message output from each system.

Post-Activation

  • Verify the activation with HCD option Verify active configuration against system.
  • Confirm new or changed devices are in the expected state.
  • Close the change record.
  • Install any new hardware, e.g. channels, switches, or storage servers, if necessary
  • Take any new device online
  • Re-base IBM Infrastructure Management to the new active production IODF (all scenarios).

9. Further reading

0 comments
83 views

Permalink