PowerVM

 View Only
  • 1.  viosupgrade -X ROOTUSRFS syntax

    Posted Thu July 04, 2024 04:00 AM
    Edited by Stefano Calisto Thu July 04, 2024 04:25 AM

    Hi there

    My migration to 4.1.0.10 fails during copying of our own created FS during the viosupgrade procedure:

    viosupgrade -l -i /tmp/vio41_mksysb -a hdisk1 -g backupfiles.txt
    ---
    Copying /usr/ips contents to /alt_inst/usr/ips failed

    I read that I can exclude these FS with -X ROOTUSRFS but then it fails with:


    Migration of contents to new rootvg initiated.
    Use of uninitialized value in string eq at /usr/ios/sbin/viosupg.pl line 7822.
    Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE /usr/ios/cli/ioscli/ at /usr/ios/sbin/viosupg.pl line 10849.

    then I tried:

    viosupgrade -l -i /tmp/vio41_mksysb -a hdisk1 -g backupfiles.txt -X ROOTUSRFS:/var/ips:/etc/ips:/usr/ips
    Unsupported -X option '/VAR/IPS'.

    $ viosupgrade -l -i /tmp/vio41_mksysb -a hdisk1 -g backupfiles.txt -X ROOTUSRFS:/var/ips,/etc/ips,/usr/ips
    Unsupported -X option '/VAR/IPS,/ETC/IPS,/USR/IPS'.

    $ viosupgrade -l -i /tmp/vio41_mksysb -a hdisk1 -g backupfiles.txt -X ROOTUSRFS:/var/ips;/etc/ips;/usr/ips
    Unsupported -X option '/VAR/IPS'.
    rksh: /etc/ips: 0403-019 The operation is not allowed in a restricted shell.
    rksh: /usr/ips: 0403-019 The operation is not allowed in a restricted shell.

    $ viosupgrade -l -i /tmp/vio41_mksysb -a hdisk1 -g backupfiles.txt -X ROOTUSRFS:/var/ips -X ROOTUSRFS:/etc/ips -X ROOTUSRFS:/usr/ips
    Unsupported -X option '/USR/IPS'.

    What is the correct syntax to exclude more than 1 Filesystem ?

    Thanks in advance and kind regards,

    Stefano



    ------------------------------
    Stefano Calisto
    ------------------------------



  • 2.  RE: viosupgrade -X ROOTUSRFS syntax

    Posted Thu July 18, 2024 03:28 AM

    Hi everybody

    Problem has been solved. There where some pid files from Splunk that had to be removed and also an offending  cron entry (viosbr -nobackup).

    Afterwards the migration went through without a hitch.

    Thanks to IBM Support for the help and kind regards,

    Stefano



    ------------------------------
    Stefano Calisto
    ------------------------------