Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Created by Guest
Created on Jan 12, 2024

zos_backup_restore ansible module looping over an inventory item with multiple entries + restore HLQ

Dear colleagues,


First of all I would like to apologize in advance if this topic has been posted before, or if it will be created in an inappropriate section of the website interface.

I am currently working on developing an MQ upgrade playbook and I have encountered a little show stopper. Sort of. Since its intended purpose if to be used to a variety of clients with either one or two HLQ for the MQ datasets, pagesets, BSDS, logcopy files etc, I need to be able to use the above mentioned module in such a way that the following will work :

- name: Backup MQ run files

operation: backup

space_type: CYL

space: 350

data_sets:

include: "{{ item }}.SCSQ**"

backup_name: "{{ CURHLQ[0] }}.DUMP.MQFILES.D{{ date }}"

loop: "{{ CURHLQ }}"


What will happen in the above mentioned scenario, is that the task will run, and for item[0] in the CURHLQ variable, the backup file will be created, and then the task will run again until there are no more items. Is it possible to append somehow subsequent iterations to the original dump file, otherwise next runs will faill since the backups dsn already exists.


Moreover, is it possible to remove appending the ansible threads UID as HLQ to the files I am restoring from a backup ? It's not really useful if I am to backup a variety of files with a variety of HLQ's, and, should there be the need to restore any MQ files, to have another HLQ attached to them. It would be good to restore them as original.


I do hope that the above makes sense, and that this information is not out of bounds.


Respectfully

Idea priority Low
  • Admin
    Sebastian Torf
    Reply
    |
    Jan 16, 2024

    I see you created https://github.com/ansible-collections/ibm_zos_core/issues/1164, which will be used to track this enhancement request. Closing this ticket out.


    Please don't hesitate to open any new requests for Z Open Automation Utilities as needed.

  • Admin
    Sebastian Torf
    Reply
    |
    Jan 12, 2024

    Thanks for your submission. This does not look like a Z Open Automation Utilities request, however. Would it be possible for you to file it in the Ansible for IBM z/OS Core Collection repository?


    You can find the repository here: https://github.com/ansible-collections/ibm_zos_core

  • Guest
    Reply
    |
    Jan 12, 2024

    By the looks of it the documentation metions that the restore will occur to the HLQ of the user invoking it if there is no hlq: parameter specified

    "- name: Restore data sets from backup stored in the UNIX file /tmp/temp_backup.dzp.
    Use z/OS username as new HLQ.
    zos_backup_restore:
    operation: restore
    backup_name: /tmp/temp_backup.dzp"

    I can understand that if you create some infrastructure datasets that are linked to a service via a specific HLQ upon restore you would like to restore them to the same HLQ when they were backed up.

    Here you are looping through a list and you would have to track the HLQ (and probably also LLQ) specific to this service either in the backup dataset name or a separate file - which can be troublesome.

    THere should be a parameter of some sorts that mentions that the restore should be done with the original HLQ.

    Same as it's done natively by SMSDSS ADRDSSU program when doing backup and restore.