Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vpath -> hdisk

Status
Not open for further replies.

unixfreak

ISP
Oct 4, 2003
632
0
0
GB

Hi,
is there an easy way to see the vpath to hdisk relationship?

Thanks
Henrik Morsing
 
you can use lsvpcfg. You see the vpath to hdisk realtionship. Or you can use lsattr -El vpathX
 
I normally do a "for" and dump it to a file for review.

First I dump the vpath:
lsdev -Cc disk | grep vpath | awk '{print $1}' > /tmp/vdisk

Then I check the attributes:
for i in `cat /tmp/vdisk | awk '{print $1}'`
do
lsattr -El $i > /tmp/vdiskatt.txt
done
 
For a single disk, you can use:
Ssaxlate –l pdiskXX or hdiskXX.

To see all mappings, I normally use this simple loop:

for i in $(lsdev -CS1 -cpdisk -sssar -F name)
do
echo "$i: "$(ssaxlate -l $i)
done
 

Hi!

Yes, lsvpcfg is the best tool to discover relationships. However there are a few cases when it does not return with correct output when there are some glitches in the ODM. After power problems for example, when the box died on power loss.

There are 2 tools to modify vpath states: hd2vp and vp2hd. These are used for modify the way the LVM uses them.
check manpages.

j1gh2: ssaxlate is related to SSA disks and enclosures. But vpath is related to Data Path Optimizer an Shark storage boxes, and they have ro relations to each other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top