Operating System - HP-UX
1748000 Members
4628 Online
108756 Solutions
New Discussion юеВ

how to know the disk type

 
SOLVED
Go to solution
apple
Super Advisor

how to know the disk type

dear HPUX gurus,
i have one vg that i would like to remove. when i issue the autopath display command, it didn't there. how to know this disk is belong to which type of disk? internal disk, san storage disk? if san storage, need to unpresent from the san storage etc
--- Physical volumes ---
PV Name /dev/dsk/c5t0d0
PV Status available
Total PE 7449
Free PE 1
Autoswitch On

hope to hear from you. thank you
15 REPLIES 15
apple
Super Advisor

Re: how to know the disk type

if i can recall, the disk is belong to our DAS (direct attach storage) for database backup. but i'm not sure how to confirm this from OS. should u require more ouput, kindly lemme know. thnak you
os type is:
B.11.11 U 9000/800
Analyst
Trusted Contributor

Re: how to know the disk type

hi apple,

Use ioscan -fnC disk

the output gives internal disk or Storage connected.
ie either EMC/HP.....

Ganesan R
Honored Contributor
Solution

Re: how to know the disk type

Hi,

>>>PV Name /dev/dsk/c5t0d0<<<

By looking the device file it may not be a SAN disk. It could be internal or direct attached storage.

Check the ioscan output and its hardware path. You need to find the HBA of c5. If the HBA is connected to DAS then it is external disk.

Best wishes,

Ganesh.
apple
Super Advisor

Re: how to know the disk type

dear sir,
thank you. :)
disk 6 255/0/1.0.0.0 sdisk CLAIMED DEVICE Ovrl-00 Overland
REO
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0

from the output, the type is overland REO, our DAS is of that type. so its confirmed it belongs to direct attach storage.

sir,
would like to seek yr advice. if we have one vg with 2 LV and 3 physical san storage discs extension, would appreciate you can verify the steps:
1. # umount /disc20
# umount /disc21
2. # vgchange -a n /dev/vg18
3. # vgexport vg18

PV Name /dev/dsk/c14t1d0
PV Name /dev/dsk/c16t1d0 Alternate Link
PV Name /dev/dsk/c10t1d0 Alternate Link
PV Name /dev/dsk/c12t1d0 Alternate Link

4. then I unpresent from the disc the HP EVA

5. # ioscan -funC disk
6. # autopath display
7. # autopath discover
8. # autopath delete 6005-08B4-0010-491E-0000-E000-01F9-0000
and finally delete all the delete all the (3*4 path for each disk=12 path)
9. # rmsf -a /dev/dsk/cXXtXd0
10. # rmsf -a /dev/dsk/cXXtXd0
11. # rmsf -a /dev/dsk/cXXtXd0
12. # rmsf -a /dev/dsk/cXXtXXd0
13. # rmsf -a /dev/dsk/cXXtXd0
14. rmsf -a /dev/dsk/cXXtXd0
15. # rmsf -a /dev/dsk/cXXtxd0
16. # rmsf -a /dev/dsk/cXXtxd0
17. # rmsf -a /dev/dsk/cXXtxd0
18. # rmsf -a /dev/dsk/cXXt4d0
19. # rmsf -a /dev/dsk/cXXt3d0
20. rmsf -a /dev/dsk/cXXtXd0

would appreciate u can verify the steps. than k you
apple
Super Advisor

Re: how to know the disk type

interesting. how to know the the HBA of c5? thank you
Ganesan R
Honored Contributor

Re: how to know the disk type

Hi Apple,

Your steps looks good. I don't find anything wrong in it.

>>>>interesting. how to know the the HBA of c5?<<<

Very simple. Just issue this command.

#ioscan -fnC ext_bus

Look at the scsi adapter which is having instance number(I) 5 will be the C5 controller.
You can see more elebroate details with "ioscan -fn |more" command.

One more thing. if you want to remove all the device presented to specific hardware path, then run rmsf -H
Best wishes,

Ganesh.
apple
Super Advisor

Re: how to know the disk type

dear sir,
i would like to hardware path of the disk,
1. # ioscan -fnC disk
check the device file (/dev/dsk/c36t4d6) and hardware path (1/0/14/0/0.1.33.0.0.4.6) that match with the vgdisplay -v vg18 ouput

# ioscan -fnH 1/0/14/0/0.1.33.0.0.4.6
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
disk 319 1/0/14/0/0.1.33.0.0.4.6 sdisk CLAIMED DEVICE HP HSV210
/dev/dsk/c36t4d6 /dev/rdsk/c36t4d6

would like to confirm my understanding:
rmsf -H 1/0/14/0/0.1.33.0.0.4.6 instead of delete one by one:
9. # rmsf -a /dev/dsk/cXXtXd0
10. # rmsf -a /dev/dsk/cXXtXd0
11. # rmsf -a /dev/dsk/cXXtXd0
12. # rmsf -a /dev/dsk/cXXtXXd0
13. # rmsf -a /dev/dsk/cXXtXd0
14. rmsf -a /dev/dsk/cXXtXd0
15. # rmsf -a /dev/dsk/cXXtxd0
16. # rmsf -a /dev/dsk/cXXtxd0
17. # rmsf -a /dev/dsk/cXXtxd0
18. # rmsf -a /dev/dsk/cXXt4d0
19. # rmsf -a /dev/dsk/cXXt3d0
20. rmsf -a /dev/dsk/cXXtXd0

sir, the hardware path is unique rite?

hope to hear from you. thank you
Johnson Punniyalingam
Honored Contributor

Re: how to know the disk type

the hardware path is unique rite?

Yes, you are right,

Thnx
Johnson
Problems are common to all, but attitude makes the difference
apple
Super Advisor

Re: how to know the disk type

dear HPUX gurus,
i have removed the hardware path, but when i issue ioscan -fnC disk, it still there. but the /dev/rdsk no more already. is it because we haven't claimed/unpresent the DAS from the server?
hope to hear from you. thank you
#rmsf -H 55/0/1.0.0.0
ioscan -fnC disk
disk 6 255/0/1.0.0.0 sdisk CLAIMED DEVICE Ovrl-00 Overland REO
# ioscan -fnH 255/0/1.0.0.0
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 6 255/0/1.0.0.0 sdisk CLAIMED DEVICE Ovrl-00 Overland REO