1828959 Members
2202 Online
109986 Solutions
New Discussion

scsi_id

 
ossupport55
Frequent Advisor

scsi_id

folks,

server is RHEL 5.3. i need to find the wwid. When i issue the below commands noting is returned. What's wrong in the command?

scsi_id -g -u -d /dev/cciss/c0d0

scsi_id -g -u -s /block/cciss\!c0d0/

cheers
9 REPLIES 9
Hakki Aydin Ucar
Honored Contributor

Re: scsi_id

did not you get any error like Non block or class device something ?
ossupport55
Frequent Advisor

Re: scsi_id

nope, nothing. Should i check for the messages file to get the error ?
Hakki Aydin Ucar
Honored Contributor

Re: scsi_id

I think , actually you have to see some errors.For example the command:
[root@idmsv01 ~]# scsi_id -g -s /block/sda

gives open class /sys/block/sda failed: No such file or directory

because there is no sda at the given path. .

And go to vi /etc/scsi_id.config and you have to see;

# If you know all the scsi devices on your system support valid id's,
# remove the options=-b line, and mark all devices as good:

options=-g

is non comment out while options b is comment out: (as rescue from balcklist)

# If you normally don't need scsi id's, or might be attaching devices of
# an unknown functionality, black list everyone. This is the default
# behaviour (if no -b or -g is specified).
#
# options=-b
ossupport55
Frequent Advisor

Re: scsi_id

Hakki,

my scsi_id.config is as below.

options=-g

# some libata drives require vpd page 0x80
vendor="ATA",options=-p 0x80

and the commands that i executed were:

scsi_id -g -u -d /dev/cciss/c0d0
scsi_id -g -u -d /dev/cciss/c0d0p1
scsi_id -g -u -d /dev/cciss/c0d0p2
scsi_id -g -u -s /block/cciss\!c0d0/cciss\!c0d0p1
scsi_id -g -u -s /block/cciss\!c0d0

but the return code is 1 for the above commands. what am i doing wrong?

cheers

Hakki Aydin Ucar
Honored Contributor

Re: scsi_id

as far as I understand you do not have dev type scsi_id understand; when I check in my Red Hat Linux;

# scsi_id -g -u -s /block/cciss\!c0d0
/sys/block/cciss!c0d0 is not a scsi device


so if you go to the directory:

cd /sys/block
and make
ls -al

can you see

sdd ?

According to docs. need an sdd type to see WWID of the SCSI device:

# scsi_id -g -u -s /block/sdd

if you check version of RHEL :

cat /proc/version

I believe,you have to own RHEL 5.X to use scsi_id , since I have Red Hat 3.4.6-3 I cannot test for you . .


ossupport55
Frequent Advisor

Re: scsi_id

Hi

Yes it's RHEL 5.3. I have no sdd devices. But, there should be some way i can get the WWID for a scsi device.

cheers
Hakki Aydin Ucar
Honored Contributor

Re: scsi_id

Apparently you do not have scsi dev created somehow; additionally you can check these:

# hdparm -i /dev/hda

if it works you have ide not scsi like my server. .

# hdparm -i /dev/sda

if it works you have a scsi as far as I got

also a useful command:

# ls /dev/disk/by-path
pci-0000:00:1f.1-ide-0:0
dirk dierickx
Honored Contributor

Re: scsi_id

i think cciss devices don't have a wwid (however i could be mistaken).
Hakki Aydin Ucar
Honored Contributor

Re: scsi_id

>Dirk: i think cciss devices don't have a wwid (however i could be mistaken).

Probably u r right. At least it is not a scsi id asker is looking for..