It happens that a LUN is connected via two paths, but lspath shows boths paths twice – once as Missing and another time as Enabled:

# lspath -l hdisk151
Missing hdisk151 fscsi0
Missing hdisk151 fscsi1
Enabled hdisk151 fscsi0
Enabled hdisk151 fscsi1

The reason usually is located somewhere in the SAN infrastructure – a new switchport, a replugged cable, etc. Anyway, how can I get rid of these “ghost paths” without affecting the good paths?

Not a big deal – every path to a LUN has its unique path ID:

# lspath -l hdisk151 -F “path_id:parent:path_status:status”
0:fscsi0:Missing:N/A
1:fscsi1:Missing:N/A
2:fscsi0:Available:Enabled
3:fscsi1:Available:Enabled
So all we have to do is to remove the two paths with the IDs 0 and 1…
# rmpath -dl hdisk152 -i 0
paths Deleted
# rmpath -dl hdisk151 -i 1
paths Deleted
…and the “ghost paths” are gone:
# lspath -l hdisk151 -F “path_id:parent:path_status:status”
2:fscsi0:Available:Enabled
3:fscsi1:Available:Enabled

# lspath -l hdisk151
Enabled hdisk151 fscsi0
Enabled hdisk151 fscsi1

Advertisements