AIX

 View Only
Expand all | Collapse all

Migration from v7.1 AIX to v7.2 AIX pre_migration script syntax errors

  • 1.  Migration from v7.1 AIX to v7.2 AIX pre_migration script syntax errors

    Posted Thu January 18, 2024 09:33 AM

    I am attempting to migrate from AIX 7.1 to AIX 7.2 on a POWER7 server. This is a disaster recovery server and the same upgrades will be done on the production server which is a POWER9.
    I have downloaded the file AIX_7200-00-06-1806_Install_Flash_52018.iso. Transferred the file to the server and then to a USB drive connected to the AIX server.
    dd if=/tmp/Aix7200-00-06-1806_Install_Flash_52018.iso of=/dev/usbms0 bs=4096
    672437+1 records in.
    672437+1 records out.
    Mounted the drive Mount -r vudfs /dev/usbm0 /usbdrive
    copied the pre_migration script from /usbdrive/usr/lpp/bos to /tmp
    When I run the script from /tmp I receive these errors:
    /tmp ->./pre_migration
    ./pre_migration: ^\: not found.
    A file or directory in the path name does not exist.
    ./pre_migration[2]: ^CbM V^ ^M 5 E ^F ^K^S^]^ ^ gu9^B^ ^X^L^Hj1^ ^ ! G^ -^ ^ R . 7^ ^H^ ^_^ ^Q+^ y^JT ^E9,^:v ^\^\ ^ ^O^K ^ ^ ^S 2 PV^ /)^_^ME )^ R^T./pre_migration^ ^PM ^ c^ ^I^^^ ^K^P c 0^ ^ ^D V^ ^ ^W* ^V^ ^ eSxb ^B&q^D^ nF ^ ^FV^[^JE ; ^Tn ^E^ f ^ ^ bMH< ^ME ^ ^U^ ^ ^O ^ ^ E ^ A e : /G^ p^?^ ^M^ ^N^ n^^ ^A bXx^R> ^D ^ ^|X^ ^H*P #^K^K^ r^ )\-8^ M0 S ^D+ eOpY8^I^A)^ ^ : p^LM ^ W)f ^ / ^ 5 ^ Bu47^B^ j^KW H0Qq^O: 0403-016 Cannot find or open the file.
    ./pre_migration[2]: ^ f^ ^ ^V^ a x E ^ ^H ^]^] : not found.
    ./pre_migration[2]: : not found.
    ./pre_migration[6]: ^W^^ ^ ^^U^U^T _ 6k^ S} : not found.
    ./pre_migration[8]: y^ Q^ F kX:JlP^]a^R ^P^ 98^ v:0^\n^ 7: not found.
    ./pre_migration[9]: M: not found.
    ./pre_migration[6]: ^N : not found.
    ./pre_migration[12]: 0403-057 Syntax error at line 2 : `(' is not expected.
    ./pre_migration[14]: 0403-057 Syntax error at line 1 : `(' is not expected.
    ./pre_migration[6]: : not found.
    [root@teamaix-prod]/tmp ->./pre_migration[6]: 0403-057 Syntax error at line 1 : `)' is not expected.

    I have since read that the USB cannot be used on a POWER7 server but I copied the pre_migration to the POWER9 server and the same errors occur.

    thanks



    ------------------------------
    Jane Caldwell-Myers
    ------------------------------


  • 2.  RE: Migration from v7.1 AIX to v7.2 AIX pre_migration script syntax errors

    Posted Fri January 19, 2024 03:31 AM

    At first this is textfile converted to dos format, a dos2unix should correct that.

    It is possible to mount the file locally with a loopmount:  loopmount -i /tmp/Aix7200-00-06-1806_Install_Flash_52018.iso -o "-o ro -v udfs" -m /mnt

    Second, why don't you migrate to a supportet TL?



    ------------------------------
    Robert Kampermann
    ------------------------------