Operating System - Tru64 Unix
1748213 Members
2992 Online
108759 Solutions
New Discussion юеВ

How to find out the disk location in array

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

How to find out the disk location in array

I find some messages as below:

********************************* ENTRY 21052. *********************************

----- EVENT INFORMATION -----

EVENT CLASS ERROR EVENT
OS EVENT TYPE 199. CAM SCSI
SEQUENCE NUMBER 5457.
OPERATING SYSTEM DEC OSF/1
OCCURRED/LOGGED ON Sat May 29 00:46:36 2004
OCCURRED ON SYSTEM nn97c
SYSTEM ID x00070016
SYSTYPE x00000002
PROCESSOR COUNT 4.
PROCESSOR WHO LOGGED x00000000

----- UNIT INFORMATION -----

CLASS x0000 DISK
SUBSYSTEM x0000 DISK
BUS # x0003
x00D0 LUN x0
TARGET x2


How to identify the disk location ,where is it?

the disk
8 REPLIES 8
Ralf Puchner
Honored Contributor
Solution

Re: How to find out the disk location in array

SCSI BUS 3, Lun 0, SCSI-ID 2

Depending on your OS version you must use hwmgr (5.x) or file /dev/rz* (4.x) to get the device behind the adress.

If you are lost use the "man"-page of each command.



Help() { FirstReadManual(urgently); Go_to_it;; }
Abdul Rahiman
Esteemed Contributor

Re: How to find out the disk location in array

If you are using v5.x, you can use the following hwmgr command to see the exact dsk# of the device in question.

hwmgr -show scsi -bus 3 -target 2 -lun 0

If on 4.x systems, I think you could compute it like this,
rz[a-f](bus#)*(target#)+target# where a,b,c,..f (lun 0,1,2,3. .7)
and I guesss it would be,
rz26

pls. let me know if you have questions.
No unix, no fun
Abdul Rahiman
Esteemed Contributor

Re: How to find out the disk location in array

sorry , correct like this,
rz[a-f](bus#)*8+target# where a,b,c,..f (lun 0,1,2,3. .7)
No unix, no fun
Rambo_1
Regular Advisor

Re: How to find out the disk location in array

Thanks

Is the rz26 location disk 30200 ?

HSZ70>show dev

Name Type Port Targ Lun Used by
------------------------------------------------------------------------------

DISK10000 disk 1 0 0 FAILEDSET
DISK10100 disk 1 1 0 R1
DISK10200 disk 1 2 0 R1
DISK10300 disk 1 3 0 R1
DISK20000 disk 2 0 0 R1
DISK20100 disk 2 1 0 R1
DISK20200 disk 2 2 0 R1
DISK20300 disk 2 3 0 R1
DISK30000 disk 3 0 0 R1
DISK30100 disk 3 1 0 SPARESET
DISK30200 disk 3 2 0 R1
DISK30300 disk 3 3 0 R1
DISK40000 disk 4 0 0 R2
DISK50000 disk 5 0 0 R2
DISK60000 disk 6 0 0 R2

BR
Uwe Zessin
Honored Contributor

Re: How to find out the disk location in array

No, definitely not. You see that DISK30200 is part of the storageset 'R1'. It _could_ be unit 'D200' on your HSZ, but you must find out first if the HSZ is on SCSI bus #3.
.
Hein van den Heuvel
Honored Contributor

Re: How to find out the disk location in array


The error log entry is from the Unix side of the house. You suggest that it is mapped onto a storage controller. Lun 0 would then be the first 'unit' on the controller living on bus 3 at scsi 2. You can verify this with hwmgr and find the disk name for it. Please specify your Tru64 version and/or some storage controller details to allow us to help better.
Anyway, next step, either with hsxterm(5) or with the storage console you can use 'show d0' to find out what it is mapped onto. This can be a direct disk, or a raid/stripe set. The disk(s) on the controller will have similar bus-target-lun names but that are completely independend from the OS device.

You can use 'locate d0' with hsxterm or storage console to flash the yellow lights on the actuall disk.

Another crude but effective way to locate disks is to issue a 'dd if=os-disk-name of=/dev/null' and if the disk still works a little bit this will give you green activity lights.

I have made some scripts to map os-devices to controller units to controller devices, but thos are relatively version and controller dependend (hsz/hsg/(no)command-lun/...). I can dig those up if interested but they likely need changes.

Good luck,
Hein.

Ralf Puchner
Honored Contributor

Re: How to find out the disk location in array

Rambo,

next time only assign 10 Pts once and not for every answer or correction! Btw. if someone repeats an answer from previously poster why giving him the same points?

Please read the itrc forum rules next time, specially information about assigning "points"
Help() { FirstReadManual(urgently); Go_to_it;; }
Uwe Zessin
Honored Contributor

Re: How to find out the disk location in array

Rambo,
I have overlooked that you need to check your storage system anyway, because DISK10000 has failed.
.