From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Blount, Adrian" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Recreating tape/disk devices after replacement Date: Wed, 06 Nov 2002 12:02:40 +0800 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <8B3E38F81B06D411B8AC00D0B720EC5701679C15@hercules.vgo.wa.gov.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1036555299 29691 80.91.224.249 (6 Nov 2002 04:01:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 04:01:39 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 189HNp-0007if-00 for ; Wed, 06 Nov 2002 05:01:37 +0100 Original-Received: (qmail 4874 invoked by uid 5); 6 Nov 2002 04:02:54 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4865 invoked by uid 49493); 6 Nov 2002 04:02:54 -0000 Original-Received: from A.Blount@vgo.wa.gov.au by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.1/5.0):. Processed in 0.465327 secs); 06 Nov 2002 04:02:54 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 6 Nov 2002 04:02:53 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5400DTOZ8RHE@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-unix-managers@ornl.gov) ; Tue, 05 Nov 2002 23:02:53 -0500 (EST) Original-Received: from scorpio.vgo.wa.gov.au ([203.17.92.194]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5400M11Z8I35@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-unix-managers@ornl.gov) ; Tue, 05 Nov 2002 23:02:44 -0500 (EST) Original-Received: from hercules.vgo.wa.gov.au (unverified) by scorpio.vgo.wa.gov.au (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Wed, 06 Nov 2002 11:58:51 +0800 Original-Received: by hercules.vgo.wa.gov.au with Internet Mail Service (5.5.2653.19) id ; Wed, 06 Nov 2002 12:02:41 +0800 Content-return: allowed Original-To: "'Tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:2336 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2336 Thank you to RedHatCat. The solution was not about re-creating, but moving the device you end up with, back to what you require. I'd been fiddling with dsfmgr -e (for exchange) which requires both units to exist. dsfmgr -m (for move) tapeX tape0 did the trick. This will presumably also be handy for other devices such as disks or network interface devices. -----Original Message----- From: Blount, Adrian [mailto:A.Blount@vgo.wa.gov.au] Sent: Wednesday, 6 November 2002 11:12 To: 'Tru64-unix-managers@ornl.gov' Subject: Recreating tape/disk devices after replacement Hello, Got an hwmgr/dsfmgr problem. Tru64 5.1, AS4100, TL891 and HSZ70/RA7000s. We recently had the TZ89 drive replaced in a TL891 library and I attempted to get the OS to recognise the tape drive post replacement, without rebooting. /dev/ntape/tape0_d1 is what Legato had been writing to previously, but I managed to create a tape2 when I did an hwmgr -scan scsi. After trying a few other incantations of hwmgr and dsfmgr, I used hwmgr to delete tape0, tape1 and tape2 and rebooted the machine after hours, hoping for tape0's return.... which is when tape3 appeared :) This is somewhat of a Solaris approach - I'm now painfully familiar with how Tru64 enumerates a distinct Device ID to each SCSI device, but haven't sussed out exactly how the status database works. I tried recreating the special files for /dev/tape/tape0* and /dev/ntape/tape0* with mknod and then trying: dsfmgr -e tape3 tape0 but unsurprisingly dsfmgr can't find device records for tape0 in its status database. What I'd really like is to be able to recreate /dev/?tape/tape0* so that I don't have to reconfigure Legato. I've been wrestling hwmgr and dsfmgr for a day or so now, to no avail. Any hints? Adrian Blount Security Engineer Alphawest 6 Pty. Ltd. Phone: +61 8 9429 6100 Fax: +61 8 9429 6130 http://www.alphawest6.com.au =========================================================== This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by return e-mail or telephone +61-8-9429 8400. Information in this message not relating to the official business of DOLA shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DOLA liability is limited to re-supplying affected attachments. =========================================================== =========================================================== This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by return e-mail or telephone +61-8-9429 8400. Information in this message not relating to the official business of DOLA shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DOLA liability is limited to re-supplying affected attachments. ===========================================================