IBM Support

viosbr fails with "ERROR- Command ' /usr/ios/cli/ioscli chdev -dev fcsX -attr init_link=pt2pt num_cmd_elems=1024 -perm 2>/dev/null 'Failure"

Troubleshooting


Problem

After upgrading the PowerVM Virtual I/O Server (VIOS) to 3.1.X, the viosbr restore fails with the following error:
ERROR-  Command ' /usr/ios/cli/ioscli chdev -dev fcsX -attr init_link=pt2pt num_cmd_elems=1024 -perm 2>/dev/null 'Failure

Symptom

Unable to restore NPIV mappings after upgrading VIOS to 3.1.X.

Cause

The error occurs when upgrading the VIOS to 3.1.X with fcsX adapters whose init_link attribute is set to pt2pt (point-to-point Fibre Channel topology). On VIOS 3.1.X the only valid value is "auto".

Environment

VIOS 3.1.X after upgrading from 2.2.6.X

Diagnosing The Problem

Boot into the 2.2.6.X old_rootvg and run the following command in the padmin shell to check the topology for this adapter:
$ lsdev -dev fcsX -attr init_link
value

pt2pt
If the init_link attribute has the value of "pt2pt", then you would have to change it to "auto" since on VIOS 3.1.X the only value for the init_link attribute is "auto".

Resolving The Problem

To resolve the issue, run this command from the root shell (accessible by running oem_setup_env in the padmin shell) in the 2.2.6.X VIOS:
# chdev -l fcsX -a init_link=auto -P
fcsX changed
To verify that the changes have taken effect, reboot the 2.2.6.X VIOS and then run this command from the padmin shell:
$ lsdev -dev fcsX -attr init_link
value

auto
If the value is "auto", attempt to run the viosupgrade command again.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSPHKW","label":"PowerVM Virtual I\/O Server"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Product Synonym

VIOS; Virtual I/O Server; PowerVM VIOS; PowerVM Virtual I/O Server; Virtual Input/Output Server; PowerVM Virtual Input/Output Server

Document Information

Modified date:
25 April 2022

UID

ibm16572975