From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: problem with vrestore Date: Wed, 30 Apr 2003 14:16:32 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9D592DB37A92234AB635C5585D2D081917113B@cobra.pc.cognex.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1051726550 21235 80.91.224.249 (30 Apr 2003 18:15:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2003 18:15:50 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Apr 30 20:15:44 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19Aw7L-0005VV-00 for ; Wed, 30 Apr 2003 20:15:43 +0200 Original-Received: (qmail 17439 invoked by uid 5); 30 Apr 2003 18:16:45 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 17402 invoked by uid 49493); 30 Apr 2003 18:16:45 -0000 Original-Received: from Andy.Cohen@cognex.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.2/5.0):. Processed in 0.611011 secs); 30 Apr 2003 18:16:45 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 30 Apr 2003 18:16:44 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HE600JER5FTF0@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 30 Apr 2003 14:16:43 -0400 (EDT) Original-Received: from cambridge1-smrly1.gtei.net (cambridge1-smrly1.gtei.net [199.94.215.245]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HE600K5H5FR5I@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 30 Apr 2003 14:16:41 -0400 (EDT) Original-Received: from cognex-nk (cognex-cp.cognex.com [198.232.30.75]) by cambridge1-smrly1.gtei.net (Postfix) with SMTP id 21775135DE for ; Wed, 30 Apr 2003 18:16:37 +0000 (GMT) Original-Received: from cognex-gw.cognex.com ([198.232.25.129]) by cognex-nk; Wed, 30 Apr 2003 14:12:55 -0400 (EDT) Original-To: "Tru64-Unix-Managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:4102 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4102 Thanks to everybody who helped me with this. It does seem to be a hardware problem as evidenced most by: uerf -R -o full|more: ----- EVENT INFORMATION ----- EVENT CLASS ERROR EVENT OS EVENT TYPE 199. CAM SCSI SEQUENCE NUMBER 2362. OPERATING SYSTEM DEC OSF/1 OCCURRED/LOGGED ON Wed Apr 30 13:59:35 2003 OCCURRED ON SYSTEM loki SYSTEM ID x0006001B SYSTYPE x00000000 ----- UNIT INFORMATION ----- CLASS x0001 TAPE SUBSYSTEM x0000 DISK BUS # x0000 x0030 LUN x0 TARGET x6 ----- CAM STRING ----- ROUTINE NAME ctape_ready ----- CAM STRING ----- ERROR TYPE Hard Error Detected ----- CAM STRING ----- DEVICE NAME DEC TLZ09 (C)DEC0167 ----- CAM STRING ----- Active CCB at time of error ----- CAM STRING ----- CCB request completed with an error ERROR - os_std, os_type = 11, std_type = 10 and 'tcopy /dev/rmt0h' gave read error, file 0, record 0: I/O error' Suggestions were: =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Are you up to date on your patch kits, such as they are? I do recall some problems with vrestore, though I don't recall the exact details. That message you gave does indicate some sort of error, usually attributed to hardware. You've run a cleaning tape thru the drive? It's not impossible that you have a read problem, though everything with a magnetic head does a read after write as part of the error checking, so it would be a low percentage for that possibility. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ what happens if you run a tar/cpio/dd operation to the tape drive? also do you see anything in your binary errlog or syslog pertaining to tape drive errors? low level driver errors are not always indicated on stderr but should hopefully pop up in your system errlogs. you may just need to run a tape cleaner cartridge through the drive - may need to use a couple of fresh cleaners. we have had "good" tape cleaner cartridges cop an attitude for some random unexplicable reason. you may also have a defective new DDS tape. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ I have seen problems with a TLZ09 where I could write a tape using the maximum blocking factor but not read it back correctly. The /usr/field/tapex utility (part of the system exercisers optional software) can do a pretty decent diagnostic test on a tape drive and its media; it has a reference page. You could try something like "tar" to write the tape and read it, but the cam_status does suggest you have a hardware problem of some kind. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ If the SCSI driver got an error reading the original tapes, then it would have logged in the binary event log. Depending on the system, it may be readable with uerf(8), which can format SCSI errors well enough. You will want to use the "-o full" option. Some tape drives have read-after-write built in. Some don't. The TLZ09 could be in the "don't" group, which means it can't notice content problems. A simple test would be to write some known data with a comparible tape, then read it back to see if it is the same or different. The tape exerciser in /usr/field has this as one of its tests. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Running tcopy is a good way to see if any data got onto the tape. You should see blocking information and size for each tape file set. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ This is the script we use on version 4. mt -f /dev/rmt0h rewind /sbin/vdump -0uf /dev/nrmt0h / /sbin/vdump -0uf /dev/nrmt0h /usr mt -f /dev/rmt0h rewoffl When you list the tape you have to mt -f /dev/rmt0h rewind /sbin/vdump -tvf /dev/nrmt0h <-- repeat this command for every save set on the tape. mt -f /dev/rmt0h rewoffl <-- to rewind and unload the tape. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ I don't see you using the norewind device, however I add another disk and vdump piped into a vrestore /, usr and var. I then have a backout plan or a bootable disk during upgrade disasters. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Do you have more than one tape device on the system/cluster? An mt stat may show if it's your drive that is faulty. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Try just one file-set. BTW, is that "vrestore" from 5.1A? That might be totally incompatible... Try TAR. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Probably a bug. Try two things: 1) Back up only ONE file system to the tape, and don't mess with the no rewind thing. 2) Try sending the backup to a file on disk and see if you can read that, or pipe the vdump output to vrestore -t directly; if you can do the vdump to a disk file or a pipe and read it with vrestore, then it is almost certainly a bug that you can't read the tape. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ You may need to rewind the tape to the correct position. =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Can you try to tar a short file to the drive and then tar it back as a test? Thanks to: Eric Tang Tom Blinn Nikola Milutinovic Rich Glazier Pat O'Brien Rich Copeland Oisin McGuinness Alan Rollow Bluejay Adametz Mark Deiss Bryan Lavelle Brian Staab ORIGINAL QUESTION: ================== I'm preparing to upgrade a 1000A to 5.1A (from 4.0E). I backed up some filesets by issuing: mt rew vdump -N -v -0 / vdump -N -v -0 /usr vdump -N -v -0 /home mt rew However when I went to double-check it's validity I issued: vrestore -t and got: vrestore: unable to use save-set; invalid or corrupt format ************* PROGRAM ABORT ************** vrestore: can't obtain fileset attributes Is this user error or some sort of bug? ============================ Thanks again! Andy