SUMMARY: hwmgr delete - HWMGR_REQ buffer contains bad parameters

From: Shaun.Racine@intier.com
Date: Thu Jul 08 2004 - 12:14:35 EDT


All,

Many thanks to;
Chris Eckert
Roberto Romani
Michael Polnick
Dave Burden
Shawn Cromer

Solution:

hwmgr delete -did 10

There was a further problem when I tried to move tape1 to tape0, gave
 message;
MARS:root> dsfmgr -m tape1 tape0
dsfmgr: ERROR: second device status is active: tape0
dsfmgr: ERROR: move failed: Device is in use

secondary solution:
MARS:root> grep tape 0 /etc/dfsc.dat
grep: can't open 0
/etc/dfsc.dat:I: tape 7
/etc/dfsc.dat:A: 0 13000b1 64 19 18 c ""
/dev/ntape/ tape 0 ""
/etc/dfsc.dat:A: 0 13000b5 64 19 8 c ""
/dev/ntape/ tape 0 _d0
/etc/dfsc.dat:A: 0 13000b7 64 19 9 c ""
/dev/ntape/ tape 0 _d1
/etc/dfsc.dat:A: 0 13000b9 64 19 10 c ""
/dev/ntape/ tape 0 _d2
/etc/dfsc.dat:A: 0 13000bb 64 19 11 c ""
/dev/ntape/ tape 0 _d3
.
.

MARS:root> dsfmgr -R hwid 64
 -tape0 -tape0_d0 -tape0_d1 -tape0_d2 -tape0_d3 -tape0_d4 -tape0_d5
-tape0_d6 -tape0_d7 -tape0c
MARS:root> dsfmgr -m tape1 tape0
  tape1=>tape0 tape1_d0=>tape0_d0 tape1_d1=>tape0_d1 tape1_d2=>tape0_d2
tape1_d3=>tape0_d3 tape1_d4=>tape0_d4 tape1_d5=>tape0_
d5 tape1_d6=>tape0_d6 tape1_d7=>tape0_d7 tape1c=>tape0c

Answers
=======
from Chris Eckert follows;

Try deleting that device using the device id.
hwmgr delete -did 10

#hwmgr show comp (To get the tape0 hardware id)
#hwmgr -delete comp -id 25 (Remove the tape0)
Now the dsfmgr -m command should work.

from Roberto Romani follows;

hwmgr -delete scsi -did DID (device ID)

with secondary communication of (for further problem);

grep tape 0 /etc/dfsc.dat <- note the spaces between tape 0 a they have to
be there.
/etc/dfsc.dat:I: tape 4
/etc/dfsc.dat:A: 0 1300073 61 14 18 c ""
/dev/ntape/ tape 0 ""
/etc/dfsc.dat:A: 0 1300077 61 14 8 c ""
/dev/ntape/ tape 0 _d0
/etc/dfsc.dat:A: 0 1300079 61 14 9 c ""
/dev/ntape/ tape 0 _d1
/etc/dfsc.dat:A: 0 130007b 61 14 10 c ""
/dev/ntape/ tape 0 _d2
/etc/dfsc.dat:A: 0 130007d 61 14 11 c ""
/dev/ntape/ tape 0 _d3
/etc/dfsc.dat:A: 0 130007f 61 14 12 c ""
/dev/ntape/ tape 0 _d4
/etc/dfsc.dat:A: 0 1300081 61 14 13 c ""
/dev/ntape/ tape 0 _d5
/etc/dfsc.dat:A: 0 1300083 61 14 14 c ""
/dev/ntape/ tape 0 _d6
/etc/dfsc.dat:A: 0 1300085 61 14 15 c ""
/dev/ntape/ tape 0 _d7
/etc/dfsc.dat:A: 0 1300075 61 14 19 c ""
/dev/ntape/ tape 0 c
in this case the HWID for tape 0 is 61

so

dsfmgr -R hwid 61
this should remove the entries for tape0 then you can remap tape1 to tape0

from Michael Polnick follows;

It's not possible to delete a HWID=0. Just use the
SCSI device id:

  hwmgr -delete comp -did 10

from Dave Burden follows;

Try using these two commands:

# hwmgr -del comp -id 0
# hwmgr -del scsi -did 10

I've found the first one usually works best, but you may have to do it
twice
to have it work.

from Shawn Cromer follows;

To make the tape and CD-ROM change from null to actual devices do the
following:
# /sbin/dn_setup -install_tape
Then show devices again
# hwmgr -v d
This will correct the tape drives. Have not seen the CD-ROM as null. But
give it a try.

----- Forwarded by Shaun Racine/MISGroup on 08/07/2004 16:59 -----
                                                                                                                                      
                      Shaun Racine
                                               To: tru64
                      08/07/2004 14:28 cc:
                                               Subject: hwmgr delete - HWMGR_REQ buffer contains bad parameters
                                                                                                                                      

Hi All,

ES40, HSG80
TRU64 V5.1A, patch kit 4. (T64V51AB21AS0004-20030206 OSF520)

I am trying to delete a device which does not exist on our system, but get
error;
hwmgr: HWMGR_REQ buffer contains bad parameters or sizes are invalid.

We have 2 ES40 which are connected to HSG80. Only one ES40 is booted at a
time, the other is on standby (redundancy). Periodically we down the live
ES40, at the HSG we disconnect and associate the disks to the alternate
ES40 and boot this. Hence we get null devices for tape and cdrom, and I
normally just delete these, then use dsfmgr to reassign to normal device
file. But this one wont go.... all suggestions welcome.

Here are the commands I've used;

MARS:root> hwmgr -show scsi

        SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
 HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
    0: 10 MARS tape none 0 1 (null)
   48: 1 MARS disk none 2 5 dsk0 [4/3/11]
   49: 2 MARS disk none 2 5 dsk1 [4/3/12]
   54: 0 MARS raid none 0 5 scp0 [4/3/0]
   55: 3 MARS raid none 0 5 scp1 [4/1/0]
   68: 7 MARS cdrom none 0 1 cdrom0 [2/0/0]
   69: 6 MARS tape none 0 1 tape1 [1/6/0]
MARS:root> hwmgr delete -id 0
hwmgr: HWMGR_REQ buffer contains bad parameters or sizes are invalid.
MARS:root> hwmgr -show scsi -full -id 0

        SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
 HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID PATH
-------------------------------------------------------------------------
    0: 10 MARS tape none 0 1 (null)

      WWID:03100032:" SONY SDX-300C **********"

      BUS TARGET LUN PATH STATE
      ---------------------------------
      1 0 0 stale

Thanks
Shaun



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:03 EDT