8.3.3. Changing Devices

Device attributes can be changed with the command “vios chdev” (change device). In addition to the virtual I/O server, the device name (or physical location code) as well as the attribute to be changed and the new value must be specified:

$ vios chdev ms13-vio1 fcs1 label=Fabric2
$

By default, the change is made dynamically and in the ODM. If the change is only to be made in the ODM, but not dynamically, the ‘-P‘ (persistent only) option can be used:

$ vios chdev -P ms13-vio1 fcs1 label=Fabric2
$

If there is a range of valid values or a list of valid values for an attribute, these can be queried with the “-R” (range) option of “vios lsattr“:

$ vios lsattr -R ms13-vio1 fcs1 num_cmd_elems
200...4096 (+1)
$

Any number of attributes can be changed in one command:

$ vios chdev ms13-vio1 fcs1 label=Fabric2 num_cmd_elems=4096
$