Overview

Skill Level: Intermediate

This enables a faster switch from one VIOS to another should a failure occurs

Ingredients

AIX LPAR
VIOS

Step-by-step

  1. This command shows from which VIOS the disk adapter came from

    echo cvai | kdb | grep vscsi

  2. Check whether the disk adapter vscsiX has the "vscsi_err_recov" attribute set to "delayed_fail" (bad) instead of "fast_fail" (good)

    lsattr -HEl vscsi0 -a vscsi_err_recov

  3. Find out which disks are attached to that adapter

    lspath | grep “vscsi0”

  4. Change the disks from "Available" to "Defined", otherwise you won't be able to change the "vscsi_err_recov" attribute

    rmpath -l hdisk1 -p vscsi0

  5. Check if the paths are "Defined"

    lspath | grep “vscsi0”

  6. Check if there any child device still attached to the adapter, if so, remove it using "rmdev -l DEVICE_NAME"

    lsdev -Cp vscsi0

  7. Change the "vscsi_err_recov" atribute to "fast_fail", ideal for multipathing environment

    chdev -l vscsi0 -a vscsi_err_recov=fast_fail

  8. Verify if the "vscsi_err_recov" atribute was changed to "fast_fail"

    lsattr -HEl vscsi0 -a vscsi_err_recov

  9. Run "cfgmgr" to bring all paths online (Enabled) again

    cfgmgr

  10. Check if disk came back online and you are done

    lspath | grep vscsi0

Join The Discussion