La commande 'lspath' permet d'afficher les caractéristiques des disques partagés en multipath.
Utilisée sans argument, la commande donne la liste des disques, leur statut et le contrôleur par lequel il est utilisé.
Exemple :
# lspath
Enabled hdisk237 vscsi1
Enabled hdisk2 vscsi0
Enabled hdisk2 vscsi1
Il est également possible d'utiliser la commande 'lspath' pour lister les caractéristiques :
Pour visualiser la priorité d’un hdisk sur la partition virtuelle :
# lspath -E -p vscsi0 -l hdiskXX
Pour modifier un paramètre, telle que la priorité, il faut utiliser la commande 'chpath'.
# lspath -s Missing -F "path_id status parent connection"
2 Missing fscsi0 50060e00000b9d46,3000000000000
2 Missing fscsi0 50060e00000b9d46,4000000000000
2 Missing fscsi0 50060e00000b9d46,6000000000000
lspath Command
Purpose
Displays information about paths to an MultiPath I/O (MPIO) capable device.
Syntax
lspath [ -F Format ] [ -H ] [ -l Name ] [ -p Parent ] [ -s Status ] [ -w Connection ]
lspath -A -l Name -p Parent [ -w Connection ] {-D [ -O ] | -E [ -O ] | -F Format [ -Z character ] }
[ -a Attribute ] ...[ -f File ] [ -H ]
lspath -A -l Name -p Parent [ -w Connection ] -R -a Attribute [ -f File ] [ -H ]
lspath -h
Exemple :
Examples of displaying path status:
1 To display the status of all paths to hdisk1 with column headers, enter:
lspath -H -l hdisk1
The system will display a message similar to the following:
status device parent
enabled hdisk1 scsi0
disabled hdisk1 scsi1
missing hdisk1 scsi2
2 To display, without column headers, the set of paths whose operational status is disabled,
enter:
lspath -s disabled
The system will display a message similar to the following:
disabled hdisk1 scsi1
disabled hdisk2 scsi1
disabled hdisk23 scsi8
disabled hdisk25 scsi8
3 To display the set of paths whose operational status is failed, enter:
lspath -s failed
The system will display a message similar to the following:
failed hdisk1 scsi1
failed hdisk2 scsi1
failed hdisk23 scsi8