Operating System - HP-UX
1833758 Members
2627 Online
110063 Solutions
New Discussion

Re: determining channels on disks

 
Rob O'Connor
Advisor

determining channels on disks

Hey everyone:
We have a disk array on two different fibre channels. We have a large storage arrays with many disks. I want to alternate the channel for the disks on the array. For example, disk1 runs on first channel and disk2 runs on second channel. I use ioscan -funC disk but list over 100 disks. The question is if there a simplier command that will give me the list of disk and which 2 channels the disks resides on. In other words, disk one should have path c1txdx and c2txdx. Thanks.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: determining channels on disks

ll /dev/dsk

You will still get 100, but you'll only get disks.

What you won't know is whether the disk is claimed or working right.

You can put the output through grep to see one channel or the other.

ll /dev/dsk | grep c2

diskinfo might be of some use to you.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stefan Farrelly
Honored Contributor

Re: determining channels on disks

Try;

cd /dev/dsk

lssf *

Im from Palmerston North, New Zealand, but somehow ended up in London...
Geoff Wild
Honored Contributor

Re: determining channels on disks

If your storage is on EMC....

I do something like this:

syminq |grep "5669 65" | grep -v 11520 |sort -k6,6 >syminq.65.sort6.6

Where the "5669 65" is the REV and first 2 digits of the serial and 11520 is the capacity of you gatekeeper disk.

That will give you as sorted list of devices - including the multiple paths - then to get a list of just the real physical ones (not alternates):

uniq -f 5 syminq.65.sort6.6 syminq.65.sort6.6.uniq

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sunil Sharma_1
Honored Contributor

Re: determining channels on disks

Hi,

This is very common problem and solution is laying with Storage vendor.

If you are using some storage managemnt s/w then there must be some command to do this like inq and syminq for EMC storage.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***