#593 closed defect (worksforme)
bug in mindi rcS file concerning OBDR detection
Reported by: | victor gattegno | Owned by: | Bruno Cornec |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | mindi | Version: | 3.0.0 |
Severity: | major | Keywords: | OBDR mindi hpsa_obdr_mode |
Cc: | victor.gattegno@… |
Description
It seems that there is a bug in mindi 3.0.1 rootfs/etc/init.d/rcS concerning OBDR detection.
rcS executes :
hpsa_obdr_mode -m query /dev/cciss/* 2>&1 | grep "is an OBDR device"
but that hpsa_obdr_mode command returns nothing, it needs "-v" to return the information.
So it has to be :
hpsa_obdr_mode -v -m query /dev/cciss/* 2>&1 | grep "is an OBDR device"
Attachments (1)
Change History (8)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Probably the same problem for
/usr/bin/hpsa_obdr_mode -m query -l $lun /dev/cciss/* 2>&1 | grep -q "is in CD-ROM mode"
which should be
/usr/bin/hpsa_obdr_mode -v -m query -l $lun /dev/cciss/* 2>&1 | grep -q "is in CD-ROM mode"
I cannot test all that, because we sent our DAT drive to you...you'll be able to test it with the DAT drive.
Rgds.
comment:3 by , 12 years ago
Example, on our test server cq56 (DL360 with Smart Array E200i) with hpsa_obdr_mode-1.03
# /usr/bin/hpsa_obdr_mode -m query /dev/sg* # # /usr/bin/hpsa_obdr_mode -v -m query /dev/sg* /dev/sg0: Not a smart array
comment:4 by , 12 years ago
Sorry again, in mindi 2.1.0 and 2.1.1 rootfs/etc/init.d/rcS it's not sg, it's cciss (I used sg too for my tests).
So, in mindi 2.1.1 rootfs/etc/init.d/rcS file :
Line 659: /usr/bin/hpsa_obdr_mode -m query /dev/cciss/* Line 660: /usr/bin/hpsa_obdr_mode -m query -l $lun /dev/cciss/*
should be modified as following
/usr/bin/hpsa_obdr_mode -v -m query /dev/cciss/* /usr/bin/hpsa_obdr_mode -v -m query -l $lun /dev/cciss/*
comment:5 by , 12 years ago
Example
# /usr/bin/hpsa_obdr_mode -m query /dev/cciss/* # # /usr/bin/hpsa_obdr_mode -v -m query /dev/cciss/* /dev/cciss/c0d0: Device is not a RAID controller device /dev/cciss/c0d0p1: Device is not a RAID controller device ...
by , 12 years ago
mindi 2.1.0 and 2.1.1 rcS file (/usr/lib64/mindi/rootfs/etc/init.d/rcS)
comment:6 by , 12 years ago
Milestone: | → 3.1.0 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
in hpsa_obdr_mode.c line 369 you have:
if ((debug) || (mode == QUERY))
so indeed using -v prints the message but using the query mode (-m query as well) so IF you have an OBDR device a message will be printed even without -v. And else nothing will be printed.
Sorry, it's not mindi 3.0.1, it's mindi 2.1.0 ;-)