1833758 Members
2589 Online
110063 Solutions
New Discussion

Alternate Links to Pv

 
KapilRaj
Honored Contributor

Alternate Links to Pv

Hi friends,

Can I have an HPUX command to find out Alternate links to a Phisical volume which is not part of LVM.

Regds,


Kapil Raj
Nothing is impossible
11 REPLIES 11
federico_3
Honored Contributor

Re: Alternate Links to Pv

vgdisplay -v vgxx

federico
Insu Kim
Honored Contributor

Re: Alternate Links to Pv

Do lvlnboot -v at the shell prompt.


Never say "no" first.
Vincenzo Restuccia
Honored Contributor

Re: Alternate Links to Pv

vgdisplay -v vgXX|grep -i alternate
Stefan Farrelly
Honored Contributor

Re: Alternate Links to Pv


Youve asked about finding out about alternate links outside of LVM so all the lv.. or vg.. or pv.. commands are no good.

This is quite tricky. You need to do a plan of your hardware connections using ioscan. Do an ioscan -fk, make note of all the scsi controllers and disks. If any of these entries for a disk is an alternate link the same disk then it must have the same matching scsi address over 2 controllers.

eg. ioscan -fknCdisk shows;

disk 1 10/0.4.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t4d0 /dev/rdsk/c0t4d0
disk 2 10/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 3 10/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0

disk 4 10/8.5.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c1t5d0 /dev/rdsk/c1t5d0
disk 5 10/8.6.0 sdisk CLAIMED DEVICE SEAGATE ST39371W
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0

So, there are 3 disks on 10/0 and only 2 on 10/8, but the 2 disks on 10/8 have the same SCSI addresses as 2 on 10/0 so these could possibly be pvlinks to the same physical disk. Are the model numbers the same also ? no, one of the 2 disks on 10/8 is an ST39371, not a ST34371 so it cant be a pvlink to the same physical disk. The only candidate is 10/8.5. How to check its the same ? Add it into the same volume group as the disk 10/0.5.0 is in using vgextend and when you do a vgdisplay -v vgXX it will display it as being an alternate link, if it is. This is the only safe way of finding out - unless you go to the back of the server and trace the SCSI cables from 10/0 and 10/8 and see if they connect to the same disk devices - which they must do to be pvlinks.
Im from Palmerston North, New Zealand, but somehow ended up in London...
KapilRaj
Honored Contributor

Re: Alternate Links to Pv

hi stephan,

Thanks for spending u'r valuable time for me.

But here the case is diff. I just can not add it into another vg.
And the reason behind it is not a technical one. & i can not open the machine as it is remote to me. I can not go there. I think there should be some command / utility which will give a diagram how my disks and controllers are connected, don't you think so ?.

kaps
Nothing is impossible
Carlos Fernandez Riera
Honored Contributor

Re: Alternate Links to Pv


If your disks are not symmetrix or XP256... , you can use stm, select each disk and run info.

For each disk stm will show a Serial number, ie:

Product Id: ST318203LC Vendor: SEAGATE
Device Type: SCSI Disk Firmware Rev: HP01
Device Qualifier: SEAGATEST318203LC Logical Unit: 0
Serial Number: LRC39834000070300P77
Capacity (M Byte): 17366.45

...

By hand but maybe help you.

unsupported
nancy rippey
Trusted Contributor

Re: Alternate Links to Pv

vgdisplay -v will provide alternate link info.
--- Physical volumes ---
PV Name /dev/dsk/c7t0d0
PV Name /dev/dsk/c9t8d0 Alternate Link
PV Status available
Total PE 1078
Free PE 0
Autoswitch On
nrip
nancy rippey
Trusted Contributor

Re: Alternate Links to Pv

Sorry - missed the part about not being with and LVM, disregard response. You may be able to run 'inq' directing it to an output file, inq will produce the following type of info.
/dev/rdsk/c9t8d6 :EMC :SYMMETRIX :5265 :830D1000 :4418880
/dev/rdsk/c9t8d7 :EMC :SYMMETRIX :5265 :830D2000 :4418880
/dev/rdsk/c9t9d0 :EMC :SYMMETRIX :5265 :830DB000 :4418880
/dev/rdsk/c9t9d1 :EMC :SYMMETRIX :5265 :830DC000 :4418880
/dev/rdsk/c9t9d2 :EMC :SYMMETRIX :5265 :830DD000 :4418880
/dev/rdsk/c9t9d3 :EMC :SYMMETRIX :5265 :830DE000 :4418880
/dev/rdsk/c9t9d4 :EMC :SYMMETRIX :5265 :830DF000 :4418880
/dev/rdsk/c9t9d5 :EMC :SYMMETRIX :5265 :830E0000 :4418880
/dev/rdsk/c9t9d6 :EMC :SYMMETRIX :5265 :830E1000 :4418880
/dev/rdsk/c9t9d7 :EMC :SYMMETRIX :5265 :830E2000 :4418880
/dev/rdsk/c9t10d0 :EMC :SYMMETRIX :5265 :830E3000 :4418880
/dev/rdsk/c9t10d1 :EMC :SYMMETRIX :5265 :830E4000 :4418880
/dev/rdsk/c9t10d2 :EMC :SYMMETRIX :5265 :830FB000 :4418880
nrip
Carlos Fernandez Riera
Honored Contributor

Re: Alternate Links to Pv

Kapil:

List /dev/rscsi. In this directory you will find all scsi cards installed on your system. All cards are SCSI-ID 7 , except if there is more than one card in the bus that must be configured as SCSI-ID 6.

So you will find some cxt7d0, and if you find cxt6d0 it is posible than you have more than one access path to a disk.

Nanci:

I have hear something about inq utility, and i think it is developed to EMC boxes. Do you know where i can find this soft?

Thanks.
unsupported
KapilRaj
Honored Contributor

Re: Alternate Links to Pv

Thanks to all who responded.

I just heard abt these utils "stm & inq" . Can you tell me how to install & run it. these utils do not come by default am i correct ?.

Kaps
Nothing is impossible
Carlos Fernandez Riera
Honored Contributor

Re: Alternate Links to Pv


Install support plus CD for stm

OnlineDiag B.11.00.12.07 HPUX 11.0 Support Tools Bundle

unsupported