Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#593 closed defect (worksforme)

bug in mindi rcS file concerning OBDR detection

Reported by: vicgat Owned by: bruno
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)

rcS (26.9 KB) - added by vicgat 5 years ago.
mindi 2.1.0 and 2.1.1 rcS file (/usr/lib64/mindi/rootfs/etc/init.d/rcS)

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by vicgat

Sorry, it's not mindi 3.0.1, it's mindi 2.1.0 ;-)

comment:2 Changed 5 years ago by vicgat

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 Changed 5 years ago by vicgat

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 Changed 5 years ago by vicgat

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 Changed 5 years ago by vicgat

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
...

Changed 5 years ago by vicgat

mindi 2.1.0 and 2.1.1 rcS file (/usr/lib64/mindi/rootfs/etc/init.d/rcS)

comment:6 Changed 5 years ago by bruno

  • Milestone set to 3.1.0
  • Resolution set to worksforme
  • Status changed from new to 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.

comment:7 Changed 3 years ago by bruno

  • Milestone 3.1.0 deleted

Milestone 3.1.0 deleted

Note: See TracTickets for help on using tickets.