User Tools

Site Tools


aix:check_path

Check paths to SAN disks after installation / modification /maintenance

Valid only on lpar with physical IO cards or on vio after running oem_setup_env

General informations

Use pcmpath command to identify topologie.

pcmpath query adapter returns number of adapter and general state of path

pcmpath query adapter

Total Dual Active and Active/Asymmetrc Adapters : 6

Adpt#    Name    State     Mode             Select     Errors  Paths  Active
    0  fscsi0   NORMAL   ACTIVE         2570414022       6288    496     238
    1  fscsi1   NORMAL   ACTIVE         2539253749       1511    496     238
    2  fscsi2   NORMAL   ACTIVE         2544104628       1318    496     238
    3  fscsi3   NORMAL   ACTIVE         2542800951       1327    496     238
    4  fscsi4   NORMAL   ACTIVE         2541881089       1337    496     238
    5  fscsi5   NORMAL   ACTIVE         2539155490      24517    496     238

A state of NORMAL indicates that all paths are OK.

A state of DEGRADE indicates some paths to some disks have failed.

To list failed paths, use:

lspath |grep -v Enabled

To list all paths for a given hdisk, use:

lspath -l hdisk10 -F status:parent:connection|grep  Enabled

Enabled:fscsi0:50050763070345c8,4050401200000000
Enabled:fscsi0:50050763071845c8,4050401200000000
Enabled:fscsi0:50050763071345c8,4050401200000000
Enabled:fscsi1:50050763070305c8,4050401200000000
Enabled:fscsi1:50050763071805c8,4050401200000000
Enabled:fscsi1:50050763071305c8,4050401200000000
Enabled:fscsi2:50050763070345c8,4050401200000000
Enabled:fscsi2:50050763071845c8,4050401200000000
Enabled:fscsi2:50050763071345c8,4050401200000000
Enabled:fscsi3:50050763070305c8,4050401200000000
Enabled:fscsi3:50050763071805c8,4050401200000000
Enabled:fscsi3:50050763071305c8,4050401200000000
Enabled:fscsi4:50050763070345c8,4050401200000000
Enabled:fscsi4:50050763071845c8,4050401200000000
Enabled:fscsi4:50050763071345c8,4050401200000000
Enabled:fscsi5:50050763070305c8,4050401200000000
Enabled:fscsi5:50050763071805c8,4050401200000000
Enabled:fscsi5:50050763071305c8,4050401200000000

or

pcmpath query device 10

DEV#:  10  DEVICE NAME: hdisk10  TYPE: 2107900  ALGORITHM:  Load Balance 
SERIAL: 75DD2215012
===========================================================================
Path#      Adapter/Path Name          State     Mode     Select     Errors
    0           fscsi0/path0          CLOSE   NORMAL          0          0
    1           fscsi0/path1          CLOSE   NORMAL          0          0
    2           fscsi0/path2          CLOSE   NORMAL          0          0
    3           fscsi1/path3          CLOSE   NORMAL          0          0
    4           fscsi1/path4          CLOSE   NORMAL          0          0
    5           fscsi1/path5          CLOSE   NORMAL          0          0
    6           fscsi2/path6          CLOSE   NORMAL          0          0
    7           fscsi2/path7          CLOSE   NORMAL          0          0
    8           fscsi2/path8          CLOSE   NORMAL          0          0
    9           fscsi3/path9          CLOSE   NORMAL          0          0
   10          fscsi3/path10          CLOSE   NORMAL          0          0
   11          fscsi3/path11          CLOSE   NORMAL          0          0
   12          fscsi4/path12          CLOSE   NORMAL          0          0
   13          fscsi4/path13          CLOSE   NORMAL          0          0
   14          fscsi4/path14          CLOSE   NORMAL          0          0
   15          fscsi5/path15          CLOSE   NORMAL          0          0
   16          fscsi5/path16          CLOSE   NORMAL          0          0
   17          fscsi5/path17          CLOSE   NORMAL          0          0

Reactivate failed path

On standalone machine or non virtualized lpar

There are two possibility to reactivate paths:

  • User cfgmgr -vl fscsiX
  • User smitty mpiopath / Enable Paths / Enable Selected or All Paths

On VIO

Login as padmin and run oem_setup_env to enter root level prior to use the above mentioned commands

[root@labotest]/root# ssh padmin@vios1

[padmin@vios1]/home/padmin# 

Enter root level:

[padmin@vios1]/home/padmin# oem_setup_env
[padmin@]/home/padmin#

Tools

Should the reactivation of paths fail or result in additional paths beeing created without activating or removing the disabled paths, you can use the clean_path.sh to delete all inactif paths.

On vio, in /home/padmin.

This script doesn't ask any question and needs no parameter. Use with care

aix/check_path.txt · Last modified: 2021/01/01 21:21 (external edit)