From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Shaun.Racine@intier.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: hwmgr delete - HWMGR_REQ buffer contains bad parameters Date: Thu, 08 Jul 2004 16:14:35 +0000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089303345 28210 80.91.224.253 (8 Jul 2004 16:15:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jul 2004 16:15:45 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 08 18:15:28 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BibYU-0004JV-00 for ; Thu, 08 Jul 2004 18:15:27 +0200 Original-Received: (qmail 20130 invoked by uid 5); 8 Jul 2004 16:15:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 20044 invoked by uid 49501); 8 Jul 2004 16:15:11 -0000 Original-Received: from Shaun.Racine@intier.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-4.7/5.0):. Processed in 0.828685 secs); 08 Jul 2004 16:15:11 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 8 Jul 2004 16:15:10 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I0J0008OJT71S@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 Jul 2004 12:15:09 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I0J00002JSONZ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 Jul 2004 12:14:53 -0400 (EDT) Original-Received: from smtp2.msi-it.com (smtp2.msi-it.com [213.150.229.10]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I0J00NEAJSM2I@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 Jul 2004 12:14:48 -0400 (EDT) Original-Received: from msifrahub01ds.msi.intranet ([213.150.229.253]) by smtp2.msi-it.com (8.11.6/8.11.6) with ESMTP id i68GTFX32176 for ; Thu, 08 Jul 2004 18:29:15 +0200 Original-Received: from miskhill01ds ([172.28.44.3]) by msifrahub01ds.msi.intranet (Lotus Domino Release 6.5.1) with ESMTP id 2004070818143638-410771 ; Thu, 08 Jul 2004 18:14:36 +0200 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 X-MIMETrack: Serialize by Router on MISKHILL01DS/SVR/MISKHill(Release 5.0.12 |February 13, 2003) at 08/07/2004 17:14:36, Itemize by SMTP Server on MSIFRAHUB01DS/SVR/MSI-HUB(Release 6.5.1|January 21, 2004) at 07/08/2004 06:14:36 PM, Serialize by Router on MSIFRAHUB01DS/SVR/MSI-HUB(Release 6.5.1|January 21, 2004) at 07/08/2004 06:14:42 PM, Serialize complete at 07/08/2004 06:14:42 PM Xref: main.gmane.org gmane.os.tru64.managers:7241 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7241 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