Operating System - HP-UX
1833883 Members
1452 Online
110063 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
Analyst
Trusted Contributor

Re: how to know the disk type

HI Apple,

Now can you check the drivers are available in the /dev/rdsk/....,/dev/dsk/.... locations.

use lssf command to check the same.


Thanks,
Analyst.
apple
Super Advisor

Re: how to know the disk type

dear sir,
from this output, i can't see the /dsk and /rdsk anymore. how to use the lssf command? hope to hear from you
# ll /dev/*/group
0x000000 Jun 10 2006 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x0a0000 Jul 13 2005 /dev/vg10/group
crw-rw-rw- 1 root sys 64 0x140000 Apr 15 2006 /dev/vg20/group
crw-rw-rw- 1 root sys 64 0x150000 Apr 15 2006 /dev/vg21/group
crw-rw-rw- 1 root sys 64 0x160000 Apr 15 2006 /dev/vg22/group
crw-rw-rw- 1 root sys 64 0x170000 Apr 15 2006 /dev/vg23/group

Analyst
Trusted Contributor

Re: how to know the disk type


Apple,

Use the command

Display stale device special files:

lssf -s

Display Critical Resource Analysis information for /dev/disk/disk7:

lssf -c /dev/disk/disk7

And please go thru the files

/dev/config -I/O system special file

/etc/ioconfig -I/O system configuration database

/etc/ext_ioconfig-I/O system configuration database

Suraj K Sankari
Honored Contributor

Re: how to know the disk type

Hi,

Do ( #man lssf ) from there you can see more example.

Suraj
apple
Super Advisor

Re: how to know the disk type

dear sir,
if the file /dsk and rdsk is not there anymore, coz just now i deleted the hardware path. but wondering when when i issue ioscan -fnC disk and i can still see the the overland is claimed. is it because we did not unpresent the overland disk? hope to hear from you.
Johnson Punniyalingam
Honored Contributor

Re: how to know the disk type

Hi Apple,

>>>>>>>>because we did not unpresent the overland disk <<<<<<<<<<<<<<<<<,

Yes you are Right,

you need to un-present disks "from you storage " to required Host,

than run

insf -e
ioscan -fnC disk

Thanks,
Johnson
Problems are common to all, but attitude makes the difference