AIX Open Source

 View Only
Expand all | Collapse all

dnf -y update fails during NIMADM Phase 7 script

  • 1.  dnf -y update fails during NIMADM Phase 7 script

    Posted Thu February 10, 2022 06:16 AM
    I'm using NIMADM to upgrade AIX 7.1 to 7.3 and, at the same time (Phase 7 script, chroot environment), updating various "layered products" and installing/updating DNF. When running NIMADM I'm NOT using caching because the filesystems get compressed when brought back to the NIM which means /opt isn't large enough to install DNF.

    If I run the DNF install and DNF "update" manually on the AIX 7.3 LPAR it works fine. If I run the DNF install and the DNF "update" via NIMADM (Phase 7 script, chroot environment) the DNF install works fine however the DNF "update" fails.

    Here's a code snippet from the post migration script run during Phase 7 of NIMADM.

    echo Installing DNF
    cd /var/tmp/AIX73dnf
    ./install_dnf.sh -d
    echo Return code is: $?
    echo Setting PATH
    PATH=$PATH:/opt/freeware/bin
    export PATH
    echo PATH now $PATH
    echo Running updtvpkg First execution
    updtvpkg
    echo Running dnf -y update
    dnf -y update
    echo Running dnf -y install for various additional packages
    dnf -y install bash-doc.ppc emacs.ppc emacs-nox.ppc wget.ppc unzip.ppc zip.ppc
    echo Running updtvpkg Second execution
    updtvpkg​

    Here are the messages I receive and wonder what I can do to overcome this:

    +-----------------------------------------------------------------------------+
    Executing nimadm phase 7.
    +-----------------------------------------------------------------------------+
    Executing user chroot script /export/nim/depot/AIX73/AIX73postmigration.sh.
    Installing latest rpm.rte
    Return code is: 0
    Installing latest Java8 JRE
    return code is: 0
    Installing latest Java8 SDK
    Return code is: 0
    Installing latest OpenSSL
    Return code is: 0
    Installing latest OpenSSH
    Return code is: 0
    Installing latest lsof
    Return code is: 0
    Installing DNF
    
    
    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.
    
    ca-certificates-2020.06.01-0 will be installed
    dnf-4.2.17-64_3 will be installed
    dnf-automatic-4.2.17-64_3 will be installed
    dnf-data-4.2.17-64_3 will be installed
    libcomps-0.1.11-64_1 will be installed
    libdnf-0.39.1-64_2 will be installed
    libmodulemd-1.5.2-64_1 will be installed
    librepo-1.11.0-64_1 will be installed
    libsmartcols-2.34-64_1 will be installed
    libsolv-0.7.9-64_1 will be installed
    libzstd-1.4.4-64_1 will be installed
    p11-kit-0.23.16-0 will be installed
    p11-kit-tools-0.23.16-0 will be installed
    python3-3.7.9-0 will be installed
    python3-dnf-4.2.17-64_3 will be installed
    python3-gpgme-1.13.1-64_1 will be installed
    python3-hawkey-0.39.1-64_2 will be installed
    python3-libcomps-0.1.11-64_1 will be installed
    python3-libdnf-0.39.1-64_2 will be installed
    python3-librepo-1.11.0-64_1 will be installed
    rpm-python3-4.15.1-64_2 will be installed
    zchunk-libs-1.1.4-64_1 will be installed
    
    Installing the packages...
    
    Verifying...                          ########################################
    Preparing...                          ########################################
    Updating / installing...
    python3-3.7.9-0                       ########################################
    libzstd-1.4.4-64_1                    ########################################
    libmodulemd-1.5.2-64_1                ########################################
    libsolv-0.7.9-64_1                    ########################################
    libsmartcols-2.34-64_1                ########################################
    zchunk-libs-1.1.4-64_1                ########################################
    librepo-1.11.0-64_1                   ########################################
    rpm-python3-4.15.1-64_2               ########################################
    libdnf-0.39.1-64_2                    ########################################
    python3-libdnf-0.39.1-64_2            ########################################
    python3-hawkey-0.39.1-64_2            ########################################
    libcomps-0.1.11-64_1                  ########################################
    python3-libcomps-0.1.11-64_1          ########################################
    python3-gpgme-1.13.1-64_1             ########################################
    p11-kit-0.23.16-0                     ########################################
    p11-kit-tools-0.23.16-0               ########################################
    dnf-data-4.2.17-64_3                  ########################################
    python3-dnf-4.2.17-64_3               ########################################
    dnf-4.2.17-64_3                       ########################################
    dnf-automatic-4.2.17-64_3             ########################################
    ca-certificates-2020.06.01-0          ########################################
    python3-librepo-1.11.0-64_1           ########################################
    
    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.
    
    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.
    
    Return code is: 0
    Setting PATH
    PATH now /usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/opt/freeware/bin
    Running updtvpkg First execution
    Please wait...
    Running dnf -y update
    AIX generic repository                          1.8 MB/s | 8.3 MB     00:04
    AIX noarch repository                           1.0 MB/s | 1.3 MB     00:01
    AIX 7.3 specific repository                     225 kB/s | 190 kB     00:00
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 122, in cli_run
        ret = resolving(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 158, in resolving
        base.resolve(cli.demands.allow_erasing)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 764, in resolve
        self._transaction = self._goal2transaction(goal)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 685, in _goal2transaction
        ts.add_upgrade(pkg, upgraded, obs)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 278, in add_upgrade
        ti_new = self.new(new, libdnf.transaction.TransactionItemAction_UPGRADE)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 227, in new
        reason = self.get_reason(pkg)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 242, in get_reason
        return self.history.swdb.resolveRPMTransactionItemReason(pkg.name, pkg.arch, -1)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 674, in resolveRPMTransactionItemReason
        return _transaction.Swdb_resolveRPMTransactionItemReason(self, name, arch, maxTransactionId)
    RuntimeError: Step: disk I/O error in
    
            SELECT
                ti.action as action,
                ti.reason as reason
            FROM
                trans_item ti
            JOIN
                trans t ON ti.trans_id = t.id
            JOIN
                rpm i USING (item_id)
            WHERE
                t.state = 1
                /* see comment in TransactionItem.hpp - TransactionItemAction */
                AND ti.action not in (3, 5, 7, 10)
                AND i.name = 'ca-certificates'
                AND i.arch = 'ppc'
            ORDER BY
                ti.trans_id DESC
            LIMIT 1
    
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 59, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 123, in __exit__
        self.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 467, in close
        self.reset(sack=True, repos=True, goal=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 495, in reset
        self.history.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
        self.swdb.closeTransaction()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    Exception ignored in: <function SwdbInterface.__del__ at 0xa00000000751168>
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 262, in __del__
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
    RuntimeError: Exec failed: disk I/O error
    Running dnf -y install for various additional packages
    Last metadata expiration check: 0:00:04 ago on Thu Feb 10 05:55:18 EST 2022.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 122, in cli_run
        ret = resolving(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 158, in resolving
        base.resolve(cli.demands.allow_erasing)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 764, in resolve
        self._transaction = self._goal2transaction(goal)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 659, in _goal2transaction
        ts.add_install(pkg, obs, reason)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 265, in add_install
        ti_new = self.new(new, libdnf.transaction.TransactionItemAction_INSTALL, reason)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 224, in new
        rpm_item = self._pkg_to_swdb_rpm_item(pkg)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 215, in _pkg_to_swdb_rpm_item
        rpm_item = self.history.swdb.createRPMItem()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 59, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 123, in __exit__
        self.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 466, in close
        self._finalize_base()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 449, in _finalize_base
        self.history.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
        self.swdb.closeTransaction()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    Running updtvpkg Second execution
    Please wait...​

    Many thanks, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------


  • 2.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Thu February 10, 2022 08:37 AM
    We have not tried running dnf migration with  nimadm but I think it should work.
    One change in step, we should run updtvpkg before install dnf in the script.
    Do you already have yum or other package manager installed in this system ? 
    Not sure about the DISK I/O error, it could be in the DB. I hope there is enough disk and filesystem space.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Thu February 10, 2022 09:04 AM
    Sanket,

    Hi, thanks for getting back to me.

    I've updated the script as per your recommendation and am re-running the whole process now.  My "test" AIX 7.1 LPAR doesn't have an Package Manager installed and there's plenty of space.

    Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
    /dev/hd4           2.00      1.96    2%     2524     1% /
    /dev/hd2           8.00      6.10   24%    39244     3% /usr
    /dev/hd9var       16.00     11.42   29%     1613     1% /var
    /dev/hd3           2.00      1.99    1%       52     1% /tmp
    /dev/hd1           0.50      0.50    1%        7     1% /home
    /dev/hd11admin      0.12      0.12    1%        5     1% /admin
    /proc                 -         -    -        -      - /proc
    /dev/hd10opt       8.00      7.91    2%      494     1% /opt
    /dev/livedump      0.25      0.25    1%        4     1% /var/adm/ras/livedump

    I'll provide an update once the NIMADM process has finished.

    Many thanks, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 4.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Thu February 10, 2022 10:40 AM
    The same error messages are appearing even with running updtvpkg before the DNF install.

    +-----------------------------------------------------------------------------+
    Executing nimadm phase 7.
    +-----------------------------------------------------------------------------+
    Executing user chroot script /export/nim/depot/AIX73/AIX73postmigration.sh.
    Installing latest rpm.rte
    Return code is: 0
    Installing latest Java8 JRE
    return code is: 0
    Installing latest Java8 SDK
    Return code is: 0
    Installing latest OpenSSL
    Return code is: 0
    Installing latest OpenSSH
    Return code is: 0
    Installing latest lsof
    Return code is: 0
    Running updtvpkg FIRST execution
    Please wait...
    Installing DNF
    
    
    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.
    
    ca-certificates-2020.06.01-0 will be installed
    dnf-4.2.17-64_3 will be installed
    dnf-automatic-4.2.17-64_3 will be installed
    dnf-data-4.2.17-64_3 will be installed
    libcomps-0.1.11-64_1 will be installed
    libdnf-0.39.1-64_2 will be installed
    libmodulemd-1.5.2-64_1 will be installed
    librepo-1.11.0-64_1 will be installed
    libsmartcols-2.34-64_1 will be installed
    libsolv-0.7.9-64_1 will be installed
    libzstd-1.4.4-64_1 will be installed
    p11-kit-0.23.16-0 will be installed
    p11-kit-tools-0.23.16-0 will be installed
    python3-3.7.9-0 will be installed
    python3-dnf-4.2.17-64_3 will be installed
    python3-gpgme-1.13.1-64_1 will be installed
    python3-hawkey-0.39.1-64_2 will be installed
    python3-libcomps-0.1.11-64_1 will be installed
    python3-libdnf-0.39.1-64_2 will be installed
    python3-librepo-1.11.0-64_1 will be installed
    rpm-python3-4.15.1-64_2 will be installed
    zchunk-libs-1.1.4-64_1 will be installed
    
    Installing the packages...
    
    Verifying...                          ########################################
    Preparing...                          ########################################
    Updating / installing...
    python3-3.7.9-0                       ########################################
    libzstd-1.4.4-64_1                    ########################################
    libmodulemd-1.5.2-64_1                ########################################
    libsolv-0.7.9-64_1                    ########################################
    libsmartcols-2.34-64_1                ########################################
    zchunk-libs-1.1.4-64_1                ########################################
    librepo-1.11.0-64_1                   ########################################
    rpm-python3-4.15.1-64_2               ########################################
    libdnf-0.39.1-64_2                    ########################################
    python3-libdnf-0.39.1-64_2            ########################################
    python3-hawkey-0.39.1-64_2            ########################################
    libcomps-0.1.11-64_1                  ########################################
    python3-libcomps-0.1.11-64_1          ########################################
    python3-gpgme-1.13.1-64_1             ########################################
    p11-kit-0.23.16-0                     ########################################
    p11-kit-tools-0.23.16-0               ########################################
    dnf-data-4.2.17-64_3                  ########################################
    python3-dnf-4.2.17-64_3               ########################################
    dnf-4.2.17-64_3                       ########################################
    dnf-automatic-4.2.17-64_3             ########################################
    ca-certificates-2020.06.01-0          ########################################
    python3-librepo-1.11.0-64_1           ########################################
    
    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.
    
    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.
    
    Return code is: 0
    Setting PATH
    PATH now /usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/opt/freeware/bin
    Running updtvpkg SECOND execution
    Please wait...
    Running dnf -y update
    AIX generic repository                          2.6 MB/s | 8.3 MB     00:03
    AIX noarch repository                           1.1 MB/s | 1.3 MB     00:01
    AIX 7.3 specific repository                     238 kB/s | 190 kB     00:00
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 122, in cli_run
        ret = resolving(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 158, in resolving
        base.resolve(cli.demands.allow_erasing)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 764, in resolve
        self._transaction = self._goal2transaction(goal)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 685, in _goal2transaction
        ts.add_upgrade(pkg, upgraded, obs)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 278, in add_upgrade
        ti_new = self.new(new, libdnf.transaction.TransactionItemAction_UPGRADE)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 227, in new
        reason = self.get_reason(pkg)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 242, in get_reason
        return self.history.swdb.resolveRPMTransactionItemReason(pkg.name, pkg.arch, -1)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 674, in resolveRPMTransactionItemReason
        return _transaction.Swdb_resolveRPMTransactionItemReason(self, name, arch, maxTransactionId)
    RuntimeError: Step: disk I/O error in
    
            SELECT
                ti.action as action,
                ti.reason as reason
            FROM
                trans_item ti
            JOIN
                trans t ON ti.trans_id = t.id
            JOIN
                rpm i USING (item_id)
            WHERE
                t.state = 1
                /* see comment in TransactionItem.hpp - TransactionItemAction */
                AND ti.action not in (3, 5, 7, 10)
                AND i.name = 'ca-certificates'
                AND i.arch = 'ppc'
            ORDER BY
                ti.trans_id DESC
            LIMIT 1
    
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 59, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 123, in __exit__
        self.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 467, in close
        self.reset(sack=True, repos=True, goal=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 495, in reset
        self.history.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
        self.swdb.closeTransaction()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    Exception ignored in: <function SwdbInterface.__del__ at 0xa00000000751168>
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 262, in __del__
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
    RuntimeError: Exec failed: disk I/O error
    Running dnf -y install for various additional packages
    Last metadata expiration check: 0:00:04 ago on Thu Feb 10 09:52:34 EST 2022.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 122, in cli_run
        ret = resolving(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 158, in resolving
        base.resolve(cli.demands.allow_erasing)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 764, in resolve
        self._transaction = self._goal2transaction(goal)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 659, in _goal2transaction
        ts.add_install(pkg, obs, reason)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 265, in add_install
        ti_new = self.new(new, libdnf.transaction.TransactionItemAction_INSTALL, reason)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 224, in new
        rpm_item = self._pkg_to_swdb_rpm_item(pkg)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 215, in _pkg_to_swdb_rpm_item
        rpm_item = self.history.swdb.createRPMItem()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 59, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 123, in __exit__
        self.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 466, in close
        self._finalize_base()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 449, in _finalize_base
        self.history.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
        self.swdb.closeTransaction()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    Running updtvpkg THIRD execution
    Please wait...
    Installing latest VPSX
    Return code is: 0​

    Many thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 5.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Fri February 11, 2022 03:09 AM
    Hi Steve,

    Is it possible to run till Step 6 and leave the alternate file system as it is in mounted situation and then run the commands of post migration ?
    Before running the dnf update please verify if you have an write access to the files present in chrooted /var/lib/dnf.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 6.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Mon February 14, 2022 11:29 AM
    Sangamesh,

    Hi, once Phase 6 has been run the alternate file system remains mounted, yes, as that's the target file system the post migration script (called by NIMADM Phase 7) executes against.

    I'll re-run to Phase 6 and see what I can find out for you.

    Thanks, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 7.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Mon February 14, 2022 01:14 PM
    I re-ran the NIMADM phases 1 through 6 and then modified the post migration script called by Phase 7 to check for /var/lib/dnf before running dnf install.

    • Checking for /var/lib/dnf (pre dnf install) returned "not found" (as expected)
    • Successfully ran dnf install (from within the script so "in" the chroot environment)
    # ls -la /<LPAR>_alt/alt_inst/opt/freeware/bin
    total 5584
    drwxr-xr-x    2 root     system         4096 Feb 14 12:45 .
    drwxrwxr-x   18 root     system         4096 Feb 14 12:45 ..
    lrwxrwxrwx    1 root     system           24 Feb 14 12:15 bunzip2 -> /usr/opt/rpm/bin/bunzip2
    lrwxrwxrwx    1 root     system           22 Feb 14 12:15 bzcat -> /usr/opt/rpm/bin/bzcat
    lrwxrwxrwx    1 root     system           22 Feb 14 12:15 bzip2 -> /usr/opt/rpm/bin/bzip2
    lrwxrwxrwx    1 root     system           29 Feb 14 12:15 bzip2recover -> /usr/opt/rpm/bin/bzip2recover
    lrwxrwxrwx    1 root     system            5 Feb 14 12:45 dnf -> dnf-3
    -rwxr-xr-x    1 root     system         2020 Jan 06 12:45 dnf-3
    -rwxr-xr-x    1 root     system         1288 Jan 06 12:45 dnf-automatic​

    • Re-checked for /var/lib/dnf (from within the script so "in" the chroot environment) returned "not found"!!!!

    This is all I see on the NIM with the various filesystems mounted for the client LPAR.

    # ls -la /<LPAR>_alt/alt_inst/var/lib
    total 8
    drwxr-xr-x    4 bin      bin             256 Feb 14 12:21 .
    drwxr-xr-x   35 bin      bin            4096 Feb 14 12:45 ..
    lrwxrwxrwx    1 root     system           26 Feb 14 12:15 rpm -> /usr/opt/freeware/packages
    drwxr-xr-x    2 bin      bin             256 Feb 14 12:13 xdm
    drwxr-xr-x    2 bin      bin             256 Feb 14 12:21 xkb​


    Thanks, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 8.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Tue February 15, 2022 02:11 AM
    Hi Steve,

    The default sqlite database files are created in the path /var/lib/dnf.
    In this case i think we explicitly need to provide the chrooted sqlite db path.
    We can do this by using persistdir configuration option in dnf.conf.
    Can you edit the /opt/freeware/etc/dnf/dnf.conf file and add the new entry as "persistdir=/<LPAR>_alt/alt_inst/var/lib/dnf" and run the dnf update ?


    ------------------------------
    SANGAMESH
    ------------------------------



  • 9.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Tue February 15, 2022 07:21 AM
    Sangamesh,

    Hi, I updated the dnf.conf and ran dnf -y update via the Phase 7 script, here's what I see:

    # cat /<LPAR>_alt/alt_inst/opt/freeware/etc/dnf/dnf.conf
    [main]
    cachedir=/var/cache/dnf
    keepcache=1
    debuglevel=2
    logfile=/var/log/dnf.log
    obsoletes=1
    plugins=1
    gpgcheck=1
    installonly_limit=3
    clean_requirements_on_remove=True
    best=True
    skip_if_unavailable=True
    persistdir=/<LPAR>_alt/alt_inst/var/lib/dnf
    
    [AIX_Toolbox]
    name=AIX generic repository
    baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    enabled=1
    gpgcheck=0
    
    [AIX_Toolbox_noarch]
    name=AIX noarch repository
    baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/
    enabled=1
    gpgcheck=0
    
    [AIX_Toolbox_73]
    name=AIX 7.3 specific repository
    baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/
    enabled=1
    gpgcheck=0
    
    #
    ===============
    Running Phase 7
    ===============
    Running updtvpkg FIRST execution
    Please wait...
    Setting PATH
    PATH now /usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/opt/freeware/bin
    Running updtvpkg SECOND execution
    Please wait...
    Running dnf -y update
    AIX generic repository                          1.7 MB/s |  11 MB     00:06
    AIX noarch repository                           1.1 MB/s | 1.3 MB     00:01
    AIX 7.3 specific repository                     226 kB/s | 190 kB     00:00
    Last metadata expiration check: 0:00:01 ago on Tue Feb 15 06:57:51 EST 2022.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 122, in cli_run
        ret = resolving(cli, base)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 158, in resolving
        base.resolve(cli.demands.allow_erasing)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 764, in resolve
        self._transaction = self._goal2transaction(goal)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 685, in _goal2transaction
        ts.add_upgrade(pkg, upgraded, obs)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 278, in add_upgrade
        ti_new = self.new(new, libdnf.transaction.TransactionItemAction_UPGRADE)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 227, in new
        reason = self.get_reason(pkg)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/group.py", line 242, in get_reason
        return self.history.swdb.resolveRPMTransactionItemReason(pkg.name, pkg.arch, -1)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 674, in resolveRPMTransactionItemReason
        return _transaction.Swdb_resolveRPMTransactionItemReason(self, name, arch, maxTransactionId)
    RuntimeError: Step: disk I/O error in
    
            SELECT
                ti.action as action,
                ti.reason as reason
            FROM
                trans_item ti
            JOIN
                trans t ON ti.trans_id = t.id
            JOIN
                rpm i USING (item_id)
            WHERE
                t.state = 1
                /* see comment in TransactionItem.hpp - TransactionItemAction */
                AND ti.action not in (3, 5, 7, 10)
                AND i.name = 'ca-certificates'
                AND i.arch = 'ppc'
            ORDER BY
                ti.trans_id DESC
            LIMIT 1
    
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 59, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 123, in __exit__
        self.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 467, in close
        self.reset(sack=True, repos=True, goal=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 495, in reset
        self.history.close()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
        self.swdb.closeTransaction()
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
        self._swdb = libdnf.transaction.Swdb(self.dbpath)
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
        _transaction.Swdb_swiginit(self, _transaction.new_Swdb(*args))
    RuntimeError: Exec failed: disk I/O error
    Exception ignored in: <function SwdbInterface.__del__ at 0xa00000000751168>
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 262, in __del__
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 305, in close
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
      File "/opt/freeware/lib64/python3.7/site-packages/libdnf/transaction.py", line 620, in __init__
    RuntimeError: Exec failed: disk I/O error
    
    ==============================
    Checked chroot-ed /var/lib/dnf
    ==============================
    #
    # ls -la /<LPAR>_alt/alt_inst/var/lib/dnf
    total 296
    drwxr-xr-x    2 root     system          256 Feb 15 06:57 .
    drwxr-xr-x    5 bin      bin             256 Feb 15 06:57 ..
    -rw-r--r--    1 root     system       118784 Feb 15 06:57 history.sqlite
    -rw-r--r--    1 root     system        32768 Feb 15 06:57 history.sqlite-shm
    -rw-r--r--    1 root     system            0 Feb 15 06:57 history.sqlite-wal
    
    ===============================================================================
    Checked content of history.sqlite-shm which was empty even though size is 32768
    ===============================================================================
    # cat  /<LPAR>_alt/alt_inst/var/lib/dnf/history.sqlite-shm
    #
    ​

    Many thanks, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 10.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Fri February 18, 2022 06:44 AM
    Hi Steve,

    This error is related to accessing and updating the sqlite database.
    I tried to check if having remote mount path as sqlite database works and i got the similar error.

    Here is the error if we manually try to access the db.

    # sqlite3 /mnt/history.sqlite
    SQLite version 3.35.5 2021-04-19 18:32:05
    Enter ".help" for usage hints.
    sqlite> .table
    Error: disk I/O error
    sqlite>

    Need to find out yet why sqlite is not able to run update query with mount path and alt_inst mount paths.

    As a workaround can you add "dnf update" to the first boot script (/etc/firstboot).
    In NIM it can be copied or created using fb_script resource on NIM server
    https://www.ibm.com/docs/en/aix/7.2?topic=resources-using-fb-script-resource


    Also, you can run the "dnf update" once you boot into the alternate disk.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 11.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Fri February 18, 2022 08:38 AM
    Sangamesh,

    Hi, thanks for the update and it's good to know you've also seen the issue.  Agreed, I can use one of the two workarounds for now whilst we wait to hear from you regarding why sqlite has this issue along with a resolution.

    Many thanks, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 12.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Wed March 16, 2022 05:32 AM
    Edited by SANKET RATHI Wed March 16, 2022 07:24 AM
    Hi Steve,
     Please find few pointers as below:
    A) It is recommended to use the cache to avoid any NFS issues during alternate disk migration.
    [ Reference link : https://www.ibm.com/support/pages/using-nim-alternate-disk-migration-nimadm#:~:text=NIMADM%20stands%20for%20Network%20Install%20Manager%20Alternate%20Disk,a%20new%20version%20or%20release%20level%20of%20AIX.
    Line of interest : "Nothing else is required but it is recommended to enter a volume group for disk caching in order to avoid NFS issues." ]

    So using cache should solve the problem you are facing but looks like you have some limitations there & want to work without cache on NIMServer.

    B) So for your case, another way to avoid this problem could be by passing "llock" option for mounting, this can be done in following ways:
    1. In # smitty nimadm
    NFS mounting options [llock]

    2. In nimadm cmd by passing "-m NFSMountOptions"
    Specifies arguments that are passed to the mount command that mounts client resources on the master. 

    Also, after phase 6 ensure in mount command o/p  for client mounts "llock" option is used.

    e.g : nimadm -c idevp8-lp9 -s 2204A_73B_spot -l 2204A_73B_lpp_source -Y -d hdisk1 -m "llock" -z postmig -D
    Using NFS remote mounted sqlite DB causes some locking issues as we can see from sqlite DB community discussions.
    [ ref. link & lines: https://sqlite.org/faq.html#q5
    Line of interest : But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations.
    ]
    Hope this helps. 

    --------------------------
    Thanks & Regards,
    Taru Varshney
    IBM OSS Development
    -------------------------

    ------------------------------
    Taru Varshney
    ------------------------------



  • 13.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Wed March 16, 2022 07:27 AM
    Hi Steve,
    Please find few pointers as below:
    A) It is recommended to use the cache to avoid any NFS issues during alternate disk migration.
    So using cache should solve the problem you are facing but looks like you have some limitations there & want to work without cache on NIMServer.
    [ link : https://www.ibm.com/support/pages/using-nim-alternate-disk-migration-nimadm#:~:text=NIMADM%20stands%20for%20Network%20Install%20Manager%20Alternate%20Disk,a%20new%20version%20or%20release%20level%20of%20AIX.
    Line of interest : "Nothing else is required but it is recommended to enter a volume group for disk caching in order to avoid NFS issues." ]

    B) So for your case, another way to avoid this problem is by passing "llock" option for mounting, this can be done in following ways:
    1. In # smitty nimadm
    NFS mounting options [llock]

    2. In nimadm cmd by passing "-m NFSMountOptions"
    Specifies arguments that are passed to the mount command that mounts client resources on the master. 
    e.g : nimadm -c idevp8-lp9 -s 2204A_73B_spot -l 2204A_73B_lpp_source -Y -d hdisk1 -m "llock" -z postmig -D

    After phase 6 of NIMADM install we can check that all VM file systems are mounted with llock option. 

    Using NFS remote mounted sqlite DB causes some locking issues as we can see from sqlite DB community discussions.
    [ ref. link & lines: https://sqlite.org/faq.html#q5
    Line of interest : But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations.
    ]
    Hope this helps.

    Thanks & Regards,
    Taru Varshney
    OSS Development

    ------------------------------
    Taru Varshney
    ------------------------------



  • 14.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Wed March 16, 2022 01:04 PM
    Taru,

    Thanks very much for coming back to me on this.  As you say, we can't use the cache as it reduces the fs size and I need space for the DNF install so Plan B.2 seems to be the path to follow.

    I'll try the below and see where that takes me.

    nimadm -l 730lpp_res -c <LPAR-name> -s 730spot_res -z AIX73postmigration -m "llock" -d hdisk1 -Y​

    Regards, Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 15.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Fri March 18, 2022 09:55 AM
    ** UPDATE **

    Having found that the process seemed to "lock up" when using "llock" I decided to circle back and review what I really needed/wanted to do.  As a result I decided that the following might be a better option for me.

    echo ==================
    echo Running Phases 1-6
    echo ==================
    nimadm -j nimadmvg -l 730lpp_res -c $1 -s 730spot_res -z AIX73postmigration -d $2 -P1,2,3,4,5,6 -Y
    echo ==============================================
    echo Re-expanding filesystems before installing DNF
    echo ==============================================
    chfs -a size=8G /$1_alt/alt_inst/opt
    chfs -a size=16G /$1_alt/alt_inst/var
    chfs -a size=2G /$1_alt/alt_inst/tmp
    echo ===================
    echo Running Phases 7-12
    echo ===================
    nimadm -j nimadmvg -l 730lpp_res -c $1 -s 730spot_res -z AIX73postmigration -d $2 -P7,8,9,10,11,12 -Y​

    In effect it was what I had  been doing (manually) as I'd run Phases 1-6, manually re-expand the three filesystems I needed, and then complete Phases 7-12.

    Within the AIX73postmigration.sh script, along with the "layered" products I needed to update, I was able to install dnf and selectively install/update the required rpms.  I did find that the searching of AIX repos took some time and, in fact, it timed out for a dnf update -y so (for now) I've not included that in the revised script.

    Steve

    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------



  • 16.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Wed August 14, 2024 09:38 AM

    I Sangamesh,

    I try to migrate do DNF during phase 7 of nimadm using a VG for caching. I increase the size of filesystems on the NIM server. I run command updtvpkg before install_dnf.sh -y. The same command  works well when I boot on the disk, it looks like it is a nimadm issue.

    I get the following message :

    +-----------------------------------------------------------------------------+
    Executing nimadm phase 7.
    +-----------------------------------------------------------------------------+
    Executing user chroot script /factory/nim/migrate_yum_to_dnf.sh.
    +-----------------------------------------------------------------------------+
                        Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    FILESET STATISTICS
    ------------------
        3  Selected to be installed, of which:
            3  Already installed (directly or via superseding filesets)
      ----
        0  Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name                      Level           Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    openssl.man.en_US         3.0.10.1000     Already superseded by 3.0.10.1001
    openssl.license           3.0.10.1000     Already superseded by 3.0.10.1001
    openssl.base              3.0.10.1000     Already superseded by 3.0.10.1001

    +-----------------------------------------------------------------------------+
                        Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Already installed (directly or via superseding filesets)
      ----
        0  Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name                      Level           Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte                   4.15.1.2009     Already superseded by 4.18.1.2001

    Failed loading plugin "generate_completion_cache": Symbol resolution failed for /opt/freeware/lib64/python3.9/lib-dynload/_sqlite3.cpython-39.so because:
            Symbol _GLOBAL__AIXI_libsqlite3_so (number 1) is not exported from dependent
              module /usr/opt/rpm/lib/libsqlite3.a[libsqlite3.so.0].
            Symbol _GLOBAL__AIXD_libsqlite3_so (number 2) is not exported from dependent
              module /usr/opt/rpm/lib/libsqlite3.a[libsqlite3.so.0].
    Could not load module /opt/freeware/lib64/python3.9/lib-dynload/_sqlite3.cpython-39.so.
    System error: Exec format error
    Examine .loader section symbols with the 'dump -Tv' command.
    Repository AIX_Toolbox_noarch is listed more than once in the configuration
    error: Failed dependencies:
            python3.9-six >= 1.13.0 is needed by (installed) python3.9-configobj-5.0.6-2.noarch
    warning: /opt/freeware/etc/yum/yum.conf saved as /opt/freeware/etc/yum/yum.conf.rpmsave

    Many thanks

    Samy



    ------------------------------
    Samy Morel
    ------------------------------



  • 17.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Thu August 15, 2024 12:32 PM

    Hi Samy,

    Please provide the list of rpm packages installed on the nim client.

    Are you setting any LIBPATH in the post migration script ?



    ------------------------------
    SANGAMESH
    ------------------------------



  • 18.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Fri August 16, 2024 02:56 AM

    Hi Sangamesh,

    I do not set LIBPATH in post migration script.

    RPM list on NIM server :

    libXcursor-1.1.14-1.ppc
    libcroco-0.6.1-1.ppc
    make_64-4.1-1.ppc
    t1lib-5.1.2-1.ppc
    jbigkit-2.1-1.ppc
    unzip-6.0-3.ppc
    python-setuptools-0.9.8-2.noarch
    python-pip-10.0.1-1.noarch
    fontconfig-2.11.95-4.ppc
    cpio-2.13-1.ppc
    pcre-8.44-2.ppc
    libstdc++-10-2.ppc
    libmpc-1.2.1-1.ppc
    json-c-0.15-2.ppc
    libpng-1.6.37-1.ppc
    libXrender-0.9.8-3waixX11.ppc
    pinentry-1.0.0-1.ppc
    gcc10-c++-10.3.0-6.ppc
    cyrus-sasl-2.1.28-1.ppc
    gdk-pixbuf-2.35.1-3waixX11.ppc
    gnupg2-2.2.35-1.ppc
    libyaml-0.2.5-1.ppc
    libsodium-1.0.18-1.ppc
    libxcb-1.14-1waixX11.ppc
    gcc-gfortran-10-2.ppc
    gtk2-2.24.30-3waixX11.ppc
    python-jinja2-2.10.1-1.noarch
    gmp-devel-6.2.1-1.ppc
    libstdc++-devel-10-2.ppc
    fping-2.4b2-1.ppc
    libXcursor-devel-1.1.14-1.ppc
    libdatrie-0.2.4-1.ppc
    netperf-2.5.0-1.ppc
    xorg-compat-aix-1.0-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    python-deltarpm-3.6-1.ppc
    shared-mime-info-1.6-2.ppc
    jbigkit-libs-2.1-1.ppc
    python-pycrypto-2.6.1-1.ppc
    python-keyczar-0.716-1.noarch
    python-httplib2-0.9.2-1.noarch
    libXft-2.3.2-4waixX11.ppc
    libdbi-0.9.0-1.ppc
    libXft-devel-2.3.2-4waixX11.ppc
    screen-4.7.0-1.ppc
    libconfuse-3.2.2-2.ppc
    lpar2rrd-agent-7.00-1.ppc
    mc-4.8.26-1.ppc
    libgcc10-10.3.0-6.ppc
    libstdc++10-10.3.0-6.ppc
    gmp-6.2.1-1.ppc
    freetype2-2.12.1-1.ppc
    less-598-1.ppc
    python-babel-0.9.6-1.noarch
    libgpg-error-devel-1.45-1.ppc
    sed-4.8-1.ppc
    gcc-cpp-10-2.ppc
    lz4-1.9.3-1.ppc
    libmodulemd-1.5.2-100.ppc
    libXdmcp-1.1.2-1.ppc
    gcc-c++-10-2.ppc
    dos2unix-7.4.1-1.ppc
    lynx-2.8.9-1ssl.ppc
    expat-2.5.0-1.ppc
    pam_hbac-1.2-4.3.ppc
    iozone-3.465-1.ppc
    libXpm-3.5.10-2.ppc
    libthai-0.1.15-1.ppc
    netcat-1.10-2.ppc
    deltarpm-3.6-1.ppc
    dejavu-sans-mono-fonts-2.37-1.noarch
    python-paramiko-1.7.6-1.ppc
    python-pyasn1-0.2.3-1.noarch
    python-virtualenv-1.9.1-1.noarch
    bzip2-1.0.8-2.ppc
    libdbi-devel-0.9.0-1.ppc
    zip-3.0-4.ppc
    pcre-devel-8.44-2.ppc
    libgcc-10-2.ppc
    db-5.3.28-1.ppc
    check-0.13.0-1.ppc
    libgomp-10-2.ppc
    libgpg-error-1.45-1.ppc
    gdbm-1.23-1.ppc
    libassuan-2.5.5-1.ppc
    gcc10-cpp-10.3.0-6.ppc
    gcc-10-2.ppc
    libwebp-1.0.2-1.ppc
    libgfortran-10-2.ppc
    gcc10-gfortran-10.3.0-6.ppc
    libXrender-devel-0.9.8-3waixX11.ppc
    jasper-1.900.1-2.ppc
    libXpm-devel-3.5.10-2.ppc
    librsvg2-2.26.0-1.ppc
    renderproto-0.11.1-1.ppc
    python-iniparse-0.4-1.noarch
    yum-metadata-parser-1.1.4-2.ppc
    atk-2.20.0-3.ppc
    cairo-1.14.6-2waixX11.ppc
    dejavu-lgc-sans-mono-fonts-2.37-1.noarch
    python-six-1.10.0-1.noarch
    python-PyYAML-3.11-1.ppc
    python-markupsafe-1.0-1.ppc
    pkg-config-0.29.2-2.ppc
    pysqlite-2.8.3-2.ppc
    lzo-2.10-2.ppc
    libart_lgpl-2.3.21-2.ppc
    slang-2.3.2-1.ppc
    mpfr-4.1.0-1.ppc
    libstdc++10-devel-10.3.0-6.ppc
    libgomp10-10.3.0-6.ppc
    libunistring-0.9.10-1.ppc
    libiconv-1.17-1.ppc
    nettle-3.7.3-1.ppc
    gcc10-10.3.0-6.ppc
    file-libs-5.41-1.ppc
    npth-1.5-1.ppc
    libgfortran10-10.3.0-6.ppc
    libxcb-devel-1.14-1waixX11.ppc
    gdbm-devel-1.23-1.ppc
    tar-1.33-1.ppc
    expect-5.45.4-2.ppc
    openldap-2.5.16-1.ppc
    rpm-python3.9-4.15.1-64_4.ppc
    rpm-python3-4.15.1-64_4.ppc
    zlib-1.2.13-1.ppc
    xz-libs-5.4.3-1.ppc
    libxml2-2.10.4-1.ppc
    libffi-3.4.4-1.ppc
    ncurses-6.4-1.ppc
    bash-5.2.15-1.ppc
    libzstd-1.5.2-2.ppc
    gpgme-1.13.1-101.ppc
    perl-5.34.1-2.ppc
    libtasn1-4.19.0-1.ppc
    libgcrypt-1.10.2-1.ppc
    apr-1.7.4-1.ppc
    tcl-8.6.13-1.ppc
    pcre2-10.40-1.ppc
    libxslt-1.1.37-2.ppc
    libtextstyle-0.21-2.ppc
    gettext-0.21-2.ppc
    info-7.0.2-1.ppc
    readline-8.2-1.ppc
    sqlite-3.41.2-1.ppc
    python3.9-3.9.18-1.ppc
    python3-3.9.18-1.ppc
    python-2.7.18-4.ppc
    libsmartcols-2.34-101.ppc
    python3.9-gpg-1.13.1-101.ppc
    p11-kit-0.24.1-1.ppc
    p11-kit-tools-0.24.1-1.ppc
    ca-certificates-2023.2.60-2.ppc
    libgcrypt-devel-1.10.2-1.ppc
    harfbuzz-7.1.0-1.ppc
    postgresql15-libs-15.4-1.ppc
    apr-util-1.6.3-1.ppc
    krb5-libs-1.20.1-1.ppc
    popt-1.19-1.ppc
    xz-5.4.3-1.ppc
    libcomps-0.1.15-101.ppc
    python3.9-libcomps-0.1.15-101.ppc
    xz-devel-5.4.3-1.ppc
    libxml2-devel-2.10.4-1.ppc
    libssh2-1.10.0-2.ppc
    dnf-data-4.2.17-64_53.ppc
    vim-common-9.0.1649-1.ppc
    rsync-3.2.7-1.ppc
    pixman-0.42.2-1.ppc
    lua-5.4.4-1.ppc
    libnghttp2-1.55.1-1.ppc
    curl-8.4.0-1.ppc
    zchunk-libs-1.1.4-103.ppc
    librepo-1.11.0-103.ppc
    libsolv-0.7.9-64_52.ppc
    libdnf-0.39.1-64_52.ppc
    python3.9-libdnf-0.39.1-64_52.ppc
    python3.9-hawkey-0.39.1-64_52.ppc
    git-core-2.41.0-1.ppc
    git-core-doc-2.41.0-1.noarch
    python3.9-dnf-4.2.17-64_53.ppc
    python3-dnf-4.2.17-64_53.ppc
    dnf-4.2.17-64_53.ppc
    python3.9-librepo-1.11.0-103.ppc
    createrepo_c-libs-0.16.0-64_2.ppc
    libjpeg-9e-1.ppc
    libtiff-4.6.0-1.ppc
    createrepo_c-0.16.0-64_2.ppc
    python3-librepo-1.11.0-103.ppc
    dnf-automatic-4.2.17-64_53.ppc
    git-2.41.0-1.ppc
    python3-hawkey-0.39.1-64_52.ppc
    python3-libdnf-0.39.1-64_52.ppc
    php-common-7.4.33-1.ppc
    python-pycurl-7.43.0.5-1.ppc
    lua-devel-5.4.4-1.ppc
    pango-1.40.1-3waixX11.ppc
    vim-enhanced-9.0.1649-1.ppc
    libxslt-devel-1.1.37-2.ppc
    python3-libcomps-0.1.15-101.ppc
    xz-lzma-compat-5.4.3-1.ppc
    logrotate-3.20.1-1.ppc
    httpd-2.4.58-1.ppc
    gnutls-3.7.9-1.ppc
    python3-gpg-1.13.1-101.ppc
    python-devel-2.7.18-4.ppc
    python-docs-2.7.18-4.ppc
    python-tools-2.7.18-4.ppc
    libxml2-python3-2.10.4-1.ppc
    xcb-proto-1.14-2.ppc
    readline-devel-8.2-1.ppc
    coreutils-9.3-1.ppc
    wget-1.21.4-1.ppc
    sudo_ids-1.9.13p2-2.ppc
    tcl-devel-8.6.13-1.ppc
    tk-8.6.13-1.ppc
    libksba-1.6.3-1.ppc
    sshpass-1.10-1.ppc
    iperf3-3.14.1-1.ppc
    glib2-2.76.3-2.ppc
    grep-3.7-2.ppc
    AIX-rpm-7.3.2.1-99.ppc
    iperf2-2.1.9-1.ppc

    Regards

    Samy



    ------------------------------
    Samy Morel
    ------------------------------



  • 19.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Fri August 16, 2024 01:50 PM

    Hi Samy,

    Please also provide the list of rpm packages installed in the nim client.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 20.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Tue August 20, 2024 06:56 AM

    Hello Sangamesh,

     

    Sorry, I just realize I sent NIM server rpm list to you instead of client as you asked for.

     

    NIM client rpm list is attached to this e-mail.

     

    Regards

    Samy

     

    Meilleures salutations

     

    Testez gratuitement et sans engagement notre service S3






    Samy Morel ¦ Senior Consultant ¦ WIRD Group ¦ Route de la Pierre 22 ¦ 1024 Ecublens ¦ Switzerland
    Phone +41 21
    695 21 26
    Zug ¦ Lausanne ¦ Genève ¦ Lugano ¦ www.wirdgroup.com


    This e-mail has been sent by a trading and services firm.
    It is confidential and may be privileged. Only the intended recipient may read, copy and use it. If you have received it in error, please contact us immediately. Thank you.

     






  • 21.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Tue August 20, 2024 07:00 AM

    Hello Sangamesh,

     

    Sorry, I just realize I sent NIM server rpm list to you instead of client as you asked for.

     

    As attachment are not supported, the list below:

     

    python-requests-2.4.3-1.noarch

    python-boto-2.34.0-1.noarch

    python-jsonpatch-1.8-1.noarch

    python-prettytable-0.7.2-1.noarch

    python-setuptools-0.9.8-2.noarch

    python-xml-0.8.4-1.ppc

    zlib-1.2.13-1.ppc

    libgcc-10-2.ppc

    libstdc++10-10.3.0-6.ppc

    ncurses-6.4-1.ppc

    db-5.3.28-1.ppc

    pcre2-10.40-1.ppc

    xz-libs-5.4.3-1.ppc

    cyrus-sasl-2.1.28-1.ppc

    gmp-6.2.1-1.ppc

    libssh2-1.10.0-2.ppc

    freetype2-2.12.1-1.ppc

    libgomp10-10.3.0-6.ppc

    libgomp8-8.3.0-6.ppc

    libtextstyle-0.21-2.ppc

    glib2-2.76.3-2.ppc

    libiconv-1.17-1.ppc

    info-7.0.2-1.ppc

    sqlite-3.41.2-1.ppc

    python3.9-3.9.18-1.ppc

    python3.9-charset-normalizer-2.0.12-2.noarch

    pysqlite-2.8.3-2.ppc

    python3.9-six-1.13.0-2.noarch

    python3.9-pyyaml-5.4.1.1-2.ppc

    python3.9-jsonpatch-1.24-2.noarch

    python3.9-idna-2.8-2.noarch

    python3.9-pyrsistent-0.19.3-1.ppc

    python3.9-netifaces-0.11.0-1.ppc

    python3.9-jinja2-3.1.2-1.noarch

    krb5-libs-1.21.2-1.ppc

    p11-kit-tools-0.24.1-1.ppc

    curl-8.5.0-1.ppc

    python3.9-requests-2.31.0-1.noarch

    libXft-2.3.2-4waixX11.ppc

    cloud-init-22.1-5.noarch

    logrotate-3.20.1-1.ppc

    python-tools-2.7.18-4.ppc

    coreutils-9.3-1.ppc

    wget-1.21.4-1.ppc

    libstdc++8-8.3.0-6.ppc

    lpar2rrd-agent-7.60-5.ppc

    pam_hbac-1.2-4.3.ppc

    yum-metadata-parser-1.1.4-2.ppc

    python-iniparse-0.4-1.noarch

    python-urlgrabber-3.10.1-1.noarch

    unzip-6.0-3.ppc

    python-PyYAML-3.11-1.ppc

    python-pyserial-2.7-1.ppc

    python-jsonpointer-1.0-1.noarch

    python-cheetah-2.4.4-2.ppc

    python-six-1.10.0-1.noarch

    python-configobj-5.0.5-1.noarch

    python-oauth-1.0.1-1.noarch

    yum-utils-1.1.31-2.noarch

    libgcc8-8.3.0-6.ppc

    libgcc10-10.3.0-6.ppc

    libffi-3.4.4-2.ppc

    libstdc++-10-2.ppc

    expat-2.5.0-1.ppc

    bzip2-1.0.8-2.ppc

    libtasn1-4.19.0-1.ppc

    tcl-8.6.13-1.ppc

    openldap-2.5.16-1.ppc

    libnghttp2-1.55.1-1.ppc

    libpng-1.6.37-1.ppc

    libyaml-0.2.5-1.ppc

    libgomp-10-2.ppc

    libxml2-2.10.4-1.ppc

    libunistring-1.1-1.ppc

    bash-5.2.15-1.ppc

    gettext-0.21-2.ppc

    readline-8.2-1.ppc

    gdbm-1.23-1.ppc

    python-2.7.18-4.ppc

    fontconfig-2.14.2-1.ppc

    python3.9-oauthlib-3.2.2-1.noarch

    python3.9-configobj-5.0.6-2.noarch

    python3.9-jsonpointer-2.0-2.noarch

    python3.9-certifi-2019.9.11-2.noarch

    python3.9-attrs-19.3.0-2.noarch

    python3.9-jsonschema-4.17.3-1.noarch

    python3.9-markupsafe-2.1.2-1.ppc

    popt-1.19-1.ppc

    p11-kit-0.24.1-1.ppc

    ca-certificates-2023.2.60-2.ppc

    python3.9-urllib3-2.0.6-1.noarch

    libXrender-0.9.8-3waixX11.ppc

    tk-8.6.13-1.ppc

    python-pycurl-7.43.0.5-1.ppc

    yum-3.4.3-8.noarch

    python-devel-2.7.18-4.ppc

    tar-1.33-1.ppc

    expect-5.45.4-2.ppc

    less-598-1.ppc

    AIX-rpm-7.2.5.203-8.ppc

    sudo_ids-1.9.14p3-1.ppc

     

    Regards

    Samy

     

     

    Meilleures salutations

     

    Testez gratuitement et sans engagement notre service S3






    Samy Morel ¦ Senior Consultant ¦ WIRD Group ¦ Route de la Pierre 22 ¦ 1024 Ecublens ¦ Switzerland
    Phone +41 21
    695 21 26
    Zug ¦ Lausanne ¦ Genève ¦ Lugano ¦ www.wirdgroup.com


    This e-mail has been sent by a trading and services firm.
    It is confidential and may be privileged. Only the intended recipient may read, copy and use it. If you have received it in error, please contact us immediately. Thank you.

     






  • 22.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Wed August 21, 2024 08:04 AM

    Hi Samy,

    Thanks for the providing the list of rpm packages.

    Please could you also provide the migrate_yum_to_dnf.sh script you are using.

    I think this script is modified version of dnf_aixtoolbox.sh (install_dnf.sh) ?



    ------------------------------
    SANGAMESH
    ------------------------------



  • 23.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Thu August 22, 2024 07:00 AM

    Hi Sangamesh,

    The script is as follow :

    #!/bin/ksh

    LOG=/tmp/migrate_yum_to_dnf.log

    exec 2>&1 > $LOG

    unset http_proxy

    /opt/freeware/bin/wget -q http://<internal server>/aix/dnf_bundle_aix_73.tar

    tar xf dnf_bundle_aix_73.tar

    installp -acXYd. openssl.base openssl.license openssl.man.en_US

    updtvpkg

    ./install_dnf.sh -y

    I just added openssl packages to  https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_bundle_aix_73.tar

    A diff on install_dnf.sh shows no difference between the script version I am using and the one provided by the IBM tar ball.

    By the way, when I boot the LPAR on AIX 7.3 after nimadm migration, my scripts works. To me it looks like a chroot side effect…

    Thanks for the help

    Regards

    Samy



    ------------------------------
    Samy Morel
    ------------------------------



  • 24.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Wed November 15, 2023 02:04 PM

    Hi Mr. Steve , 

    I'm having the same problem when installing DNF install and DNF update , however, were you able to solve the problem? To be able to execute step 7 with script in NIMADM? Can I increase a Filesystem of type <LPAR>/alt_disk..../opt ? for example ? Thank you very much for contributing to this forum. To Mr. SANKETHI RATHI too. We await a response. I am migrating my environment from AIX 7.2 to AIX 7.3.



    ------------------------------
    Emerson Jose de Lima
    ------------------------------



  • 25.  RE: dnf -y update fails during NIMADM Phase 7 script

    Posted Thu November 16, 2023 04:31 AM

    Emerson,

    Hi, good day to you.

    In answer to your question, I always expanded the filesystem (after Phase 6 and before Phase 7) and so haven't tried expanding the FS "within" the Phase 7 script I have to say.

    With specific reference to DNF: I originally added an inittab entry to run the dnf install during the re-boot (to AIX 7.3) however this, then, conflicted with our vNIC conversion (SEA > vNIC) work and so we now simply run the dnf install/update script manually once we've completed the vNIC conversion process.

    Regards, Steve



    ------------------------------
    Steve Munday
    AIX, IBM i, HMC, PowerVM
    ------------------------------