Operating System - HP-UX
1833163 Members
3399 Online
110051 Solutions
New Discussion

serial number disk non HP

 
SOLVED
Go to solution
Charles THISE
Occasional Advisor

serial number disk non HP

Hi all,

How can i find the serial number of a disk non HP connected in FC directly in command line (without stm !).

When i use STM, i can find it, but i don't know the command used by stm.

In fact, i use a IBM ESS storage in SAN area connected to some HP-9000 L2000 server with hpux 11.00.
I must do a roll-out scsi (previous connection to my ESS) to fibre. for that, i must refind the right disk to reimport my VG's on the right vg.
The disk serial number is the links between them.

In advance, i thank you for your help.

Charles THIS
5 REPLIES 5
K.Vijayaragavan.
Respected Contributor
Solution

Re: serial number disk non HP

Hi,

"ioscan -kfnC disk"
to find the device name associated with the disk.
/dev/rdsk/c#t#d#

and use the command

"diskinfo /dev/rdsk/c#d#d#"

-Vijay
"Let us fine tune our knowledge together"
Carlos Fernandez Riera
Honored Contributor

Re: serial number disk non HP


Take a look to my response on:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html


You can use also cstm ( command line stm). search for expamples...

The last, and worst, method is diskinfo -v

vendor: SEAGATE
product id: ST318404LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
rev level: HP04
blocks per disk: 35566480
ISO version: 0
ECMA version: 0
ANSI version: 3
removable media: no
response format: 2
(Additional inquiry bytes: (32)42 (33)54 (34)31 (35)5a (36)50 (37)44 (38)4c (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0
(48)0 (49)0 (50)0 (51)c (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0
(70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0
(92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (103)63 (104)29 (105)20 (106)32 (107)30 (108)30 (10
9)30 (110)20 (111)53 (112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c (122)20 (123)2 (124)1e (125)b3
(126)90 (127)0 (128)0 (129)2 (130)0 (131)0 (132)0 (133)0 (134)0 (135)0 (136)0 (137)0 (138)0 )


First 8 bytes (not into '()') must be S/N of disk.


Good Luck
unsupported
Charles THISE
Occasional Advisor

Re: serial number disk non HP

Hello,

i thank you for your answer, but if look well, diskinfo don't give back the serial number but just the Vendor et disk type, etc...

But not serial number (what's shame...).

Any ideas else ?

Charles.
K.Vijayaragavan.
Respected Contributor

Re: serial number disk non HP

Have you tried it in sam?

sam >disk and file systems > disk devices

see also the manpage of fcmsutil,

man fcmsutil

-K.Vijay
"Let us fine tune our knowledge together"
Sanjay_6
Honored Contributor

Re: serial number disk non HP

Hi,

Try this,

ioscan -fnkC disk |pg

Find the disk hardware address.

Then generate this report,

echo 'selclass type disk;info;wait;infolog' |cstm >/tmp/disk_info.txt

more /tmp/disk_info.txt

You should get the serial no of the disk from this file.

Hope this helps.

Regds